Re: App and droplet
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