Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Set desktop pictures using AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Set desktop pictures using AppleScript
Authored by: gregarios on Jul 23, '09 09:45:13PM

Assuming someone had their Desktop Pictures set to rotate every 15 minutes, in order...

How would someone cause the pictures to rotate prematurely, via the command-line?

osascript -e 'tell application \"Finder\" ..... ?



[ Reply to This | # ]
Set desktop pictures using AppleScript
Authored by: wallybear on Jul 24, '09 08:17:06AM

It is sufficient to change one of the parameters.
I use the following script that change and then reset the random order parameter:

tell application "System Events"
tell current desktop
set random order to false
set random order to true
end tell
end tell

the only drawback is that it changes the desktop picture twice (one for the "false" setting and one for the "true"); at the moment I've not found other tricks that fix this glitch.



[ Reply to This | # ]
Set desktop pictures using AppleScript
Authored by: tedw on Jul 24, '09 08:58:38AM
if you just use "osascript -e 'tell application "System Events" to set picture of desktop 1 to new/picture/path' it will change the picture without doing anything else. this picture will change again at the next normal change time.

[ Reply to This | # ]