Any way to create a Mac LC background app?
Richard Gaskin
ambassador at fourthworld.com
Wed Mar 12 17:07:22 EDT 2014
Your app could use the shell function to set up a cron job, and once
that's in place it could handle command line arguments so it can be
called with -ui to run facelessly.
When run with -ui, the environment() function will return "command
line", so you can use a startup handler to determine if it's been
launched from the command line, and if so check the value of $# to get
the number of arguments passed to it so you can parse them out as #1,
#2, etc.
For cron:
<http://hints.macworld.com/article.php?story=2001020700163714>
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
Richard Miller wrote:
> What I need is a way to have a Mac LC (desktop) app run once every 12
> hours, complete a brief 15-second routine, shut down, then repeat
> every 12 hours... all without user interaction.
>
> On 3/12/14 3:52 PM, Richard Miller wrote:
>> Is there any way for a LC app to run in the background on a Mac, so
>> the user won't see it listed when they cycle through their open
>> programs? I know how to make it invisible, but it still shows up
>> when you Apple Key-Tab through running apps.
More information about the use-livecode
mailing list