We’re running OSX 10.2 on an old G4 that is providing content to a plasma screen, advertising various projects that we’re working on. We use the Apple Screensaver, selecting a pictures folder that cycles through the pictures.
We have four programs, and want to change from one to another every hour on the hour. I’m using the following script to acheive this:
tell application “Finder”
activate
set name of folder “active” of folder “Desktop” of folder “will” of folder “Users” of startup disk to “inactive”
set name of folder “set 1” of folder “Desktop” of folder “will” of folder “Users” of startup disk to “active”
set name of folder “set 2” of folder “Desktop” of folder “will” of folder “Users” of startup disk to “set 1”
set name of folder “set 3” of folder “Desktop” of folder “will” of folder “Users” of startup disk to “set 2”
set name of folder “inactive” of folder “Desktop” of folder “will” of folder “Users” of startup disk to “set 3”
end tell
The slides for the four programs are contained in folders named active, set 1, set 2, and set3.
This is working well enough. I saved the script as an application and call that application every hour using iCal. The application, thankfully, doesn’t wake the computer from screensaving.
The problem I’ve run into is that the screensaver seems to get stuck where it was during the change. Following the change, the screensaver will only display the last two slides it showed form the previous program, and it repeats those two slides until it wakes.
Anyone know of a good workaround? I’m thinking I might wake and then restart the screensaver immediately following each folder swap. But I’m not sure how to do this. I tried
tell application “ScreenSaverEngine” to deactivate
end tell
tell application “ScreenSaverEngine” to activate
end tell
to see if it might do the job (I don’t think deactivate is valid applescript, however). But I couldn’t compile the script, because the system (and I) couldn’t find the ScreenSaverEngine application, and it required me to locate it. I also don’t know if this will work, because we require a password on wake…
Any ideas? Any ideas for a different approach?
Thanks, and apologies for being so ignorant in advance,
Will