This results in an AppleScript error -2706
Then is DOES quit, can anyone explain why/how to fix it? I want to clean up some temp files my ASS app produced before quitting, so I do this…
on should quit theObject
do shell script "/bin/rm /private/tmp/*txt > /dev/null 2>&1 &" user name adminName password adminPass with administrator privileges
tell me
quit
end tell
end should quit
Note that if I either remove the “Tell me quit” or don’t backgroud the preceding “do shell script,” the Applicaition won’t quit. I know I can trap the error, but I’m wondering if I’m doing this wrong…