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


Click here to return to the 'Open iTerm bookmarks from the iTerm command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open iTerm bookmarks from the iTerm command line
Authored by: craigw on Apr 11, '07 09:52:17AM
Cool Script! Thanks.

I got it all to work in 1 shell script:

#!/bin/sh

if [ "$#" = "0" ]; then
    echo "Usage: it bookmarkname" && exit 1
else
osascript <<ENDSCRIPT
on run argv
  tell application "iTerm"
    activate
    tell the first terminal
      launch session "$1"
    end tell
  end tell
end run
ENDSCRIPT
fi


[ Reply to This | # ]
OOps
Authored by: craigw on Apr 11, '07 10:58:49AM
oops it doesn't need this line:
on run argv

[ Reply to This | # ]
OOps
Authored by: craigw on Apr 11, '07 11:01:27AM
or this one either obviously:
end run



[ Reply to This | # ]