Re: Picture not aways replaced
Re: Picture not aways replaced
- Subject: Re: Picture not aways replaced
- From: Neil Laubenthal <email@hidden>
- Date: Sun, 05 Jan 2014 13:01:44 -0500
On Jan 5, 2014, at 12:35 PM, Robert Poland < email@hidden> wrote: Neil,
Maybe we could help if we saw your old script.
Yeah, I guess that would help, wouldn’t it…:-)
Here’s what used to work…and I’m way not smart enough about Applescript to know why it doesn’t work anymore. IIRC it broke about the same time Spaces came out so that was probably Lion I guess.
tell application "System Events" set my_desktop to value of (property list item "LastName" of ¬ property list item "default" of property list item ¬ "Background" of property list file ¬ ((path to preferences as Unicode text) & ¬ "com.apple.desktop.plist"))
display dialog my_desktop end tell
Here’s the error I get when running the script. error "System Events got an error: Can’t get property list item \"default\" of property list item \"Background\" of property list file \"Brilliant3:Users:honeybear:Library:Preferences:com.apple.desktop.plist\"." number -1728 from property list item "default" of property list item "Background" of property list file "Brilliant3:Users:honeybear:Library:Preferences:com.apple.desktop.plist”
-----------------------------------------------
There are only three kinds of stress; your basic nuclear stress, cooking stress, and A$$hole stress. The key to their relationship is Jello.
neil
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden