Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'iTerm Script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
iTerm Script
Authored by: Tomnibus on Sep 01, '05 12:06:11PM
With the help of "wgscott" I used the example of the scripts he pointed me to to come up with this:

on run {input, parameters}
  set the clipboard to "cd \"" & (POSIX path of 
     (input as string)) & "\""
  tell application ""
    tell application "System Events"
      keystroke "t" using command down
	  keystroke "v" using command down
	  keystroke return
    end tell

  end tell
  return input
end run
This will always open up a new tab and then CD to the directory. It works nicely for me.

[ Reply to This | # ]