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: thyvillageidiot on May 19, '09 06:53:42AM

I very much like this hint. However, I took it a step further and made the Tiger "Aqua" background as the variable instead of just boring solid colors. You'll need
[a href="http://img530.imageshack.us/img530/2777/aquared.jpg"aquared[/a] and will have to rename it to Aqua Red and drop it off in Macintosh HD:Library:Desktop Pictures.

Then use this modified code:
set buttonList to {"Neutral", "Creative", "Detail"}
set colorList to {"Aqua Graphite", "Aqua Blue", "Aqua Red"}
display dialog "Which environment?" buttons buttonList default button 1
set selectedButton to the button returned of the result

repeat with index from 1 to 3
if item index of buttonList = selectedButton then exit repeat
end repeat

set selectedColor to item index of colorList

tell application "Finder"
set desktop picture to {"Macintosh HD:Library:Desktop Pictures:" & selectedColor & ".jpg"} as alias
end tell



[ Reply to This | # ]