Advertisement
bocciaman

Get Current Path

Aug 16th, 2022
3,222
0
Never
1
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
Comments
  • Avery75
    103 days
    # text 0.26 KB | 0 0
    1. To find the current directory in your terminal or command prompt, you can use the "pwd" command in Unix-based systems or "cd" command without any arguments in Windows. It will display the full path of the directory you are currently in.https://buyghostgunskit.com/
Add Comment
Please, Sign In to add comment
Advertisement