Get name of desktop image. Is this a bug?
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