Skip to content

Instantly share code, notes, and snippets.

@ManUtopiK
Created May 24, 2012 05:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManUtopiK/2779604 to your computer and use it in GitHub Desktop.
Save ManUtopiK/2779604 to your computer and use it in GitHub Desktop.
Open TotalTerminal on the current folder
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