Background process
Klaus Major
klaus at major-k.de
Fri Mar 25 17:06:34 EST 2005
Hi Simon,
> It's been a while since I fired up MetaCard but I would like to do the
> following if possible...
> Can I run a metacard exe (mac/pc - linux if possible) as a
> *background* process which takes screenshots every xNum of minutes?
> How would I do that?
Hmm, at least for the mac this would work, just tested :-)
on mouseUp
send "doit" to me in 5 secs
end mouseUp
I clicked and switched to "Mail.app", so MC was in the "background"...
on doit
export snapshot from rect (the screenrect) to file "sc1.jpg" as JPEG
end doit
I am sure you will figure out how to adopt this to your app...
If in doubt drop a line :-)
And then i found this nice and big (1600*1200) jpg in the
defaultfolder...
You can set "the jpegquality" first if you like...
For OS X there might be a chance to put your app into the "background",
read no dock icon, by adding something to the "Info.plist"...
This is from Ken's wonderful and helpful RR page, i hope he won't
mind...
Just for your convenience ;-)
Please bookmark:
http://www.sonsothunder.com/
Look for -> Developer Resources -> Revolution
##########################
Hiding a Process (Making a Backgrounded App)
(Mac OS X Only)
To hide an application process in OS X 10.2 and earlier, open the
Info.plist file in the
Contents folder of the application package. Add this to the <dict>
section (it doesn't seem to matter where):
<key>NSBGOnly</key>
<string>1</string>
In OS X 10.3 and later, add this instead:
<key>LSUIElement</key>
<string>1</string>
Doing this will remove the process from the Dock, and from any menus
that list active (visible) processes.
To show it again, you can either put in a 0 instead of a 1 for the
<key>, or you can remove the whole thing.
Cross-posted from the SuperCard List
Updated 8/25/04 by Ken Ray from a tip posted by Devin Asay to the
Use-Revolution list
###########################
Hope that helps...
> Sincerely,
> Simon
Regards from germany
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the metacard
mailing list