Re: App and droplet
Re: App and droplet
- Subject: Re: App and droplet
- From: Philip Aker <email@hidden>
- Date: Sat, 14 Oct 2006 13:43:05 -0700
On 2006-10-12, at 16:28:55, kai wrote:
I think there was a miniscule typo in kai's example. The following
works OMM:
So miniscule, Philip, that it continues to escape me - not to
mention my Mac (on which it runs as intended).
I can see only 3 differences between your version and mine: a
changed variable label, the insertion of an action in the open
handler - and a variation of the Boolean test; <if really_quit then
quit> vs. <if (really_quit is true) then quit>. Are you saying the
former test fails on your machine?
It was the boolean test that did not work when I first tried your
script. When I changed that then it worked. Normally I would have
changed it anyway because:
if (some_property) then …
makes me think either:
if (some_property exists) then … //always true in the case of a
existing property
or
if (some_value is not equal to 0) then … // 'true' and 'fals' are
not 0 enums
But that's just me trying to coordinate my writing as much as
possible between various languages.
The problem was (as I discovered from a post Craig sent me off-
list) is that he was in an AppleScript Studio droplet…
To be fair to Craig, he did mention the fact - albeit after I'd
posted my suggestion. (In view of that, and since this isn't the
applescript-studio list,
I didn't see it at the time. Anyway, I suggested he use 'on launched'.
perhaps the dearth of cigars around here isn't too surprising. ;-))
I move the list start a "Virtual Cigars" applescript website for the
purposes of housing excellent scripts.
And of course, its complimentary site, the "Virtual CigArse" page
which will carry SPOTMs (Stupidest Post Of the Month category).
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