My problem comes when I want to quit the script. I have to force quit.
It makes my shutdown hang.
Any advice warmly welcomed :-)
if n = 0 then
display dialog "The camera is empty."
eject disk diskname
"return" only terminates the execution of the current handler -
namely, the "idle" handler. I think what you want is "quit" but if
you replace your "return" with "quit" you will really be telling
Finder to quit, which it will probably do. You've got to slightly
amend your script and have a conditional "quit" outside the tell app
Something like (pseudo script): if n = 0 then set willQuit to true,
else set willQuit to false, with timeout of 600 seconds move the
files, end if, end tell, if willQuit then quit.
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden