The name of the script file is okay, but is it a script or a compiled script. If it's not compiled you'll have to call it pdf1.scpt and change the SmartExec function to match. If it's a compiled script (compiled to a MAC application) then you can keep everything the way it is. I prefer compiling scripts to applications, but that's just me.