You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(* "Open Terminal Here" A toolbar script for Mac OS X 10.3/10.4 (Originally) Written by Brian Schlining (Soon to be) Tweaked by Greg Cardoni *)propertydebug : false-- when the toolbar script icon is clicked --onruntellapplication"Finder"trysetthis_folderto (the target ofthefront window) asaliason errorsetthis_folderto startup disk
end trymy process_item(this_folder)
end tellend run
-- This handler processes folders dropped onto the toolbar script icon --on open these_items
repeatwithifrom1tothecountof these_items
setthis_itemtoitem i of these_items
my process_item(this_item)
end repeatend open
-- this subroutine processes does the actual work -- this version can handle this weirdo case: a folder named "te'st"ö te%s`t"onprocess_item(this_item)
setthePathtoquoted formofPOSIX pathof this_item
settheCmdto"cd "& thePath &";clear;"tellapplication"iTerm"activate-- just open a terminal and cd to thePath--set newWindow to (create window with default profile)setaWindowto current window
if aWindow is equal tomissing valuethensetaWindowto (create window with default profile)
elsetell aWindow
settto (create tabwith default profile)
end tellend iftell current session of aWindow
writetext"cd "& thePath &";clear;"end tellend tellend process_item
The text was updated successfully, but these errors were encountered:
A Quick Tutorial:
"Open in iTerm 3" icon in Finder menubar.
Souces
The text was updated successfully, but these errors were encountered: