Last active
December 16, 2015 16:19
-
-
Save xenatt/5462529 to your computer and use it in GitHub Desktop.
Finder To Terminal License GPL
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
try | |
tell application "Finder" to set fdir to (target of front Finder window) as text | |
tell application "Terminal" | |
do script "cd " & (quoted form of POSIX path of fdir) | |
end tell | |
tell application "System Events" | |
set visible of process "Terminal" to true | |
set frontmost of process "Terminal" to true | |
end tell | |
on error errorMessage number errorNumber | |
log ("errorMessage: " & errorMessage & ", errorNumber: " & errorNumber) | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment