Re: Quitting an applet?
Re: Quitting an applet?
- Subject: Re: Quitting an applet?
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 29 Nov 2000 21:30:59 -0500
On 11/29/2000, Carl West commented on "Quitting an applet?":
I want my script to quit if the user presses a particular button. It's
not happening.
Sorry, I can't offer any suggestions because I'm having a similar
problem with the following script (droplet):
For the record, /r = continuation character
-------------------------------------------
on open fileList
set itemCount to count items in fileList
tell application "Finder"
open file "Screenshots.sit" of disk "Win 95"
end tell
tell application "StuffIt Deluxe"
repeat with i from 1 to itemCount
stuff alias i of fileList into archive item /r
"Screenshots" of archive "Screenshots.sit" /r
compression level maximum
end repeat
quit
end tell
end open
-------------------------------------------
This script will stuff the first item in fileList and then just quit
doing anything, with StuffIt Deluxe remaining the frontmost
application. If I activate the script again via the Application Menu,
it finishes executing as written and quits. The weird thing is that
when it is activated this way, StuffIt Deluxe does not come to the
front again, even though it is still finishing its tasks.
Any ideas why the script is losing control of things? Any ideas on
how to fix it?
FYI - OS 9.0.4 and AppleScript 1.4.3.
Thanks for any insight you might offer.
Later,
Rob Jorgensen
Ohio, USA