osascript and argv

Mac OS X Hints shows that with 10.4 you can create an on run argv AppleScript handler to retrieve extra arguments that are passed to osascript.