I am using iTerm on OSX. A nice alternative to the Terminal application delivered as part of the OS. well I use both happily anyway.
I fell of this script called ‘it’ at Mac OS X Hints, which I am using constantly. iTerm has been upgraded on several occasions since and I still use ‘it’.
At some point I cleaned up my bookmarks listing and to my surprise, ‘it’ was still showing old bookmarks. After brief googling I found out that the resource file had changed it’s name from: iTerm.plist to: net.sourceforge.iTerm.plist.
So I changed the script a little and it worked again, check it out if you are using iTerm.
- #!/bin/bash
- #http://www.macosxhints.com/article.php?story=20070409141256538
- arg=$1;
- if [[ “$#” = “0” ]]; then
- echo “Usage: ‘it bookmarkname’ or ‘it list’” && exit 1
- elif [[ “$1” = “list” ]]; then
- defaults read ~/Library/Preferences/net.sourceforge.iTerm|grep Name|awk ‘{$1=“”;$2=“”; print $0}’|tr -d ‘;’
- else
- osascript <<ENDSCRIPT
- on run argv
- tell application “iTerm”
- activate
- tell the current terminal
- launch session “$1”
- end tell
- end tell
- end run
- ENDSCRIPT
- fi



Check out iTerm2. The resource is now com.googlecode.iterm2.plist