• 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
Get name of desktop image. Is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get name of desktop image. Is this a bug?


  • Subject: Get name of desktop image. Is this a bug?
  • From: Joe <email@hidden>
  • Date: Mon, 16 Jun 2008 10:26:46 -0700

The following script was copied from the Scriptable System Preferences page. I cannot get it to return the name of the current desktop image unless the desktop image is set to be static. If the "Change picture" checkbox in the "Desktop and Screen Saver" prefs pane is checked, the script returns an incorrect image name (it returns the name of the last user selected image).

tell application "System Events"
-- GET DESKTOP PICTURE SETTINGS
tell current desktop
get properties
--> returns: {display name:"Color LCD", random order:false, pictures folder:file "Mac OS X:Library:Desktop Pictures:", picture rotation:0, class:desktop, change interval:60.0, picture:file "Mac OS X:Library:Desktop Pictures:Aqua Blue.jpg"}
end tell
end tell


Joe
_______________________________________________
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: Get name of desktop image. Is this a bug?
      • From: Ian Goos <email@hidden>
  • Prev by Date: Re: Sort don't return what I wait
  • Next by Date: Re: Sort don't return what I wait
  • Previous by thread: Re: Sort don't return what I wait
  • Next by thread: Re: Get name of desktop image. Is this a bug?
  • Index(es):
    • Date
    • Thread