• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Picture not aways replaced
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Picture not aways replaced
      • From: Christopher Stone <email@hidden>
References: 
 >Picture not aways replaced (From: Robert Poland <email@hidden>)
 >Re: Picture not aways replaced (From: Neil Laubenthal <email@hidden>)
 >Re: Picture not aways replaced (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Picture not aways replaced
  • Next by Date: Re: AppleScript-Users Digest, Vol 11, Issue 5
  • Previous by thread: Re: Picture not aways replaced
  • Next by thread: Re: Picture not aways replaced
  • Index(es):
    • Date
    • Thread