This example script checks if an instance of Seamonkey is running with the remote ping() function. If so, it opens a new tab in this running process with openURL(someURL,new-tab). Otherwise, it initiates a completely new Seamonkey process with the given URL as its one and only tab

(Note that the argument referenced by $1 must be a proper URL; that is, file:///home/hanumizzle and http://www.vectorlinux.com are both halal, but plain /home/hanumizzle isn't)