Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

This example was shown earlier:

tell application "System Events"
    set ss to screen saver "Random"
    start ss
end tell

Is there an incantation instead of "Random" to display a slideshow from the selected folder in the screen saver preferences?

share|improve this question
    
Can you please add a link to the earlier question? –  patrix Dec 19 '12 at 19:55
    
Linked it in above in "This example" –  Ken Dec 20 '12 at 17:29

1 Answer 1

On Mountain Lion (10.8)

This AppleScript will start the screen saver with the selected folder.

tell application "System Events"
    set ss to screen saver "iLifeSlideshows"
    start ss
end tell

Lion (10.7) and earlier

First select the appropriate sources/folders by clicking the Shuffle item in the screen savers list, then checking one or more items in the dialog that appears.

Then start the screen saver as as in the Mountain Lion section, but change iLifeSlideshows to screensaver.shuffle.

screen saver prefs

share|improve this answer
    
Shuffle isn't valid/available in Mountain Lion –  Ken Dec 20 '12 at 3:21
    
Oh, my bad, on Lion at the moment, that escaped my notice. I don't have a 10.8 machine handy at the moment, but you can get the names of the available screensavers with tell application "System Events" to get name of screen savers, which may reveal something useful. –  robmathers Dec 20 '12 at 3:40
    
Thanks!! The answer is iLifeSlideshows. Oddly, screensaver.shuffle is listed as valid in the "get name of screen savers" output, but when that is used on Mountain Lion I get a flickering, floating text box stating "You cannot use the Shuffle screen saver with this version of Mac OS X. Please contact the vendor to get a newer version of the screen saver." Again, thanks for your help!! –  Ken Dec 20 '12 at 14:25
    
You're welcome, glad you found something that worked. I integrated that into my answer, let me know if I missed anything. –  robmathers Dec 20 '12 at 17:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.