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: joeyGibson on Apr 11, '07 11:31:03AM
Someone sent me a modified version that is all in one file (he had changed it to open a new window, but I modified it to still open in a tab. Here it is:
#!/bin/bash

if [[ $# == 0 ]] ; then
        echo "Usage: $0 " >&2
        exit 1
fi

osascript -e 'on run argv
        tell application "iTerm"
                activate

                tell the first terminal
                        launch session (item 1 of argv)
                end tell
        end tell
end run' $@


[ Reply to This | # ]