• 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: kai <email@hidden>
  • Date: Fri, 13 Oct 2006 10:06:18 +0100


On 13 Oct 2006, at 09:04, Axel Luttgens wrote:

Perhaps could something like this do the trick:

   property GotActivated : false

   on open names
       (* Add your script to process the names here. *)
       if not GotActivated then quit
   end open

   on activated theObject
       set GotActivated to true
   end activated

Quick tests tend to show that it is indeed the case.
But is that ordering of events firing reliable?
And anyway, I may have forgotten something else...

I thought activated might have been a possibility too, Axel. In certain circumstances, though, the method doesn't behave quite as intended for our current purpose.


For example (from a pre-launch drag and drop):
--------

property GotActivated : false

on open names
display dialog "GotActivated: " & GotActivated --> "GotActivated: false"
display dialog "GotActivated: " & GotActivated --> "GotActivated: true"
if not GotActivated then quit --> no quit
end open


on activated theObject
	set GotActivated to true
end activated

--------

---
kai


_______________________________________________ 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: Axel Luttgens <email@hidden>)
 >Re: App and droplet (From: Philip Aker <email@hidden>)
 >Re: App and droplet (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: App and droplet
  • Next by Date: Re: App and droplet
  • Previous by thread: Re: App and droplet
  • Next by thread: Re: App and droplet
  • Index(es):
    • Date
    • Thread