Skip to content

Instantly share code, notes, and snippets.

@lancebecker
Created October 7, 2010 19:47
Show Gist options
  • Save lancebecker/615758 to your computer and use it in GitHub Desktop.
Save lancebecker/615758 to your computer and use it in GitHub Desktop.
(* Gets the current path from a shell *)
tell application "Finder"
set pwd to do shell script "pwd"
set pwd to (POSIX file pwd) as string
-- Replicate the open command for example
open folder pwd
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment