Created
May 24, 2012 05:16
-
-
Save ManUtopiK/2779604 to your computer and use it in GitHub Desktop.
Open TotalTerminal on the current folder
This file contains hidden or 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 | |
tell application "Finder" | |
try | |
activate | |
set frontWin to folder of front window as string | |
set frontWinPath to (get POSIX path of frontWin) | |
tell application "Terminal" | |
activate | |
tell application "System Events" | |
keystroke "`" using {control down} -- bring down visor | |
--keystroke "t" using {command down} -- open on a new tab | |
end tell | |
do script "cd \"" & frontWinPath & "\"" in front window | |
end tell | |
on error error_message | |
beep | |
display dialog error_message buttons ¬ | |
{"OK"} default button 1 | |
end try | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment