Finderの最前面のWindowで表示中のフォルダをTerminalでオープンするAppleScriptです。
AppleScript名:Finderの最前面のWindowで表示中のフォルダをTerminalでオープン |
tell application "Finder" set wCount to count every window if wCount = 0 then return tell front window set aTarg to target as alias end tell end tell set targPOSIX to quoted form of (POSIX path of aTarg) set aCom to "cd " & targPOSIX tell application "Terminal" set tCount to count (every window whose visible is true) if tCount = 0 then do script aCom else do script aCom in front window end if end tell |
More from my site
(Visited 58 times, 1 visits today)