edit: Sorry for getting the hope up, but it doesn't seem to work as stable as I thought. Though maybe someone can take a look and think of a way to let it work better?I'm not sure where to put this post, so correct me if I'm wrong.
I was looking for a way to use a processing file as my screensaver on Mac OS X but couldn't find a way to do this on the forums, so I started trying some things and I found a way that works. It's not the tidiest way to do it: you can't really put it online for others to install or something, but it works if you want to use a processing app on your own system.
1) Make sure you've got this in your processing code:
Code:void keyPressed(){
exit();
}
void mouseMoved(){
exit();
}
2) Export your file as a Mac OS X application. Make sure to check 'Full Screen'.
3) Save the following text as an applescript (replace the myApp.app with your filename):
Code:
tell application "ScreenSaverEngine" to quit
tell application "omg_glowing_fishies_hd"
activate
end tell
and save it in the same folder as your app.
It will stop the screensaver and start your app (when trying this using hot corners you'll see the menu bar).
4) Download ScriptSaver (by Matt Swann); it allows you to run a applescript file when the screensaver starts and stops. Choose the previous applescript as startup script in the ScriptSaver settings. Set 'screensaver' to none and leave the endscript empty.
You can find ScriptSaver here: http://swannman.wordpress.com/projects/scriptsaver/
You're all set.
As said before, it might not be the best way, but it does the job.
**maybe it's also possible to quit the screensaver app with an applescript instead of the keyPressed/mouseMoved codes, but it didn't work for me (the screensaver would start, the app would open, but closed immediately**