Last active
May 27, 2016 16:20
-
-
Save toph-allen/f5d408baeb6445220006afcc666dc520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
tell application "Finder" | |
set myWin to window 1 | |
set theWin to (quoted form of POSIX path of (target of myWin as alias)) | |
tell application "Terminal" | |
activate | |
tell window 1 | |
do script "cd " & theWin | |
-- do script "cd " & theWin & ";ls -al | more" | |
end tell | |
end tell | |
end tell | |
return input | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment