To those fiddling with this script.... There is an error arising whenever there is only one argument in the script. Since the osascript command understands "$1" and "$2", would it be easier to set these two variables at the beginning of the script, before it has a chance to act on them in the Tell Finder bit, then use variable names? Call them, say, opt and app? Kirk My latest book: How to Do Everything with Mac OS X Panther http://www.mcelhearn.com/htde.html . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . kirk at mcelhearn.com | http://www.mcelhearn.com . . . . . . . . Kirk McElhearn | Chemin de la Lauze | 05600 Guillestre | France . .