• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: App and droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


Philip Aker
email@hidden


 _______________________________________________
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

  • Follow-Ups:
    • Re: App and droplet
      • From: kai <email@hidden>
References: 
 >App and droplet (From: Craig Stanton <email@hidden>)
 >Re: App and droplet (From: kai <email@hidden>)
 >Re: App and droplet (From: Craig Stanton <email@hidden>)

  • Prev by Date: Re: Human Readable Time snipit
  • Next by Date: Re: [ANN] XMail 3.7.0
  • Previous by thread: Re: App and droplet
  • Next by thread: Re: App and droplet
  • Index(es):
    • Date
    • Thread