Re: App and droplet
Re: App and droplet
- Subject: Re: App and droplet
- From: Philip Aker <email@hidden>
- Date: Thu, 12 Oct 2006 00:33:02 -0700
On 2006-10-11, at 23:16:46, Craig Stanton wrote: So as soon as I drop something on it, the really_quit is made true and when it reaches the end of the loop is quits, even if I had set it to false in the on-run handler. I need some other way of holding a variable during the session :-/
Hi Craig,
I think there was a miniscule typo in kai's example. The following works OMM:
property really_quit : true
on open theFileList set f to item 1 of theFileList display dialog (f as string) if (really_quit is true) then quit end open
on reopen display dialog "Quit this application?" set really_quit to true quit end reopen
on run set really_quit to false end run
|
_______________________________________________
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