Re: Second Call to Non-Stay-Open Script App Fails
Re: Second Call to Non-Stay-Open Script App Fails
- Subject: Re: Second Call to Non-Stay-Open Script App Fails
- From: Shane Stanley <email@hidden>
- Date: Wed, 04 Jun 2014 23:31:12 +1000
On 4 Jun 2014, at 6:52 pm, S. J. Cunningham <email@hidden> wrote:
> I'm a Snow Leopard die-hard.
My commiserations. The term "die-hard" wasn't coined from those two words for no reason ;-)
> What I was trying to do was to use properties in a script library to pass data between "client" scripts to avoid reading and writing to separate files. As far as I can tell, l if I just load the script library, each client script get's it's own copy and a change to the library's properties is only seen by that client script.
Generally, yes. But there are ways around it -- abusing user defaults might do the trick. But probably more work than it's worth in SL.
> To do what I want, it seems the script library needs to be a stand-alone, stay-open app. I'm not sure what problems that will cause other than cluttering up the Dock, randomly becoming the frontmost application, and eventually dying from a memory leak or something :)
The first couple are easily solved: make it a background-only app. Once you've saved it, edit the bundle's Info.plist file by adding:
<key>LSBackgroundOnly</key>
<true/>
You can probably have it reboot regularly, too.
> PS: I'm still trying to save up enough money to buy your book ;)
Hey, it's not that expensive. Although I'd probably have to go hunting for a Snow Leopard version...
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden