Advertisement
bocciaman

Get Current Path

Aug 16th, 2022
1,021
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Finder"
  2.     set theWin to window 1
  3.     set thePath to (POSIX path of (target of theWin as alias))
  4.     display dialog thePath buttons {"Clipboard", "OK"} default button 2
  5.     if the button returned of the result is "Clipboard" then
  6.         set the clipboard to thePath
  7.     end if
  8. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement