Wednesday, March 21, 2018

#1 2012-01-08 12:52:11 pm

Registered: 2011-12-09
Posts: 15

Save as "stay open script"?

I have a script that I have to save as "stay open script" on the web I saw that I can use "on idle" but it doesn't work for me:(

Please tell what other ways of saving it as stay open script:|

Filed under: Stay open script



#2 2012-01-08 03:51:53 pm

Adam Bell
From:: Nova Scotia, Canada
Registered: 2005-10-04
Posts: 4660

Re: Save as "stay open script"?

The structure of an "on idle" script is:


on run
-- do stuff only needed at first run
-- on run not required
end run

on idle
-- runs immediately after "on run" anyway and then repeats
-- do periodic stuff
return n (seconds between repeats as a number)
end idle

on quit -- not required
-- do stuff only when quitting, e.g. clean up or save data
continue quit -- absolutely essential last command
end quit

Save the result as a bundle application. Double click to start, stop from Dock.

iMac running OS X 10.13.1



#3 2012-01-09 01:34:18 am

Registered: 2011-12-09
Posts: 15

Re: Save as "stay open script"?

But can I solve this problem using on idle?



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)