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: Ofiuco on Aug 26, '09 03:54:35PM

I also tried that; it does the same thing (echoes back the path of the file instead of actually doing anything).



[ Reply to This | # ]
Set desktop pictures using AppleScript
Authored by: tedw on Aug 26, '09 04:40:55PM
well, in that case I suggest you shift gears. If you look at the Finder's scripting dictionary, you'll see that desktop picture is part of the Legacy suite. The Apple preferred way to do this nowadays is to use System Events, as (for example):
tell application "System Events"
	set picture of every desktop to file "path:to:picture"
end tell
(note that if you're using a rotating pictures setup, this will work, but the change won't be visible until you turn picture rotation off)

[ Reply to This | # ]