• 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 00:28:55 +0100


On 12 Oct 2006, at 08:33, Philip Aker 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?

--------------

On 12 Oct 2006, at 21:41, Philip Aker wrote:

On 2006-10-12, at 06:20:24, Axel Luttgens wrote:

[...]

Seems to work here, as a stay-open applet.

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, perhaps the dearth of cigars around here isn't too surprising. ;-))


Something like this should work for both a regular (stay-open) droplet - and one produced in AppleScript Studio:

--------

property really_quit : true

on open some_list
	(* do something with some_list *)
	if really_quit then quit
end open

on idle
	set really_quit to false
	days
end idle

--------

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

  • Prev by Date: Re: Human Readable Time snipit
  • 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