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
on run {input, parameters} | |
set didThese to {} | |
repeat with f in input | |
set f to (f as text) | |
if f ends with ":" then | |
if f is in didThese then --check to see if we did this already | |
--ignore | |
else | |
tell application "Terminal" | |
do script "cd " & quoted form of POSIX path of f |