Re: Get name of desktop image. Is this a bug?
Re: Get name of desktop image. Is this a bug?
- Subject: Re: Get name of desktop image. Is this a bug?
- From: "Nigel Garvey" <email@hidden>
- Date: Mon, 16 Jun 2008 22:53:41 +0100
Joe wrote on Mon, 16 Jun 2008 10:26:46 -0700:
>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
That must be a new one in Leopard. In Tiger, you can get the name of the
current picture like this:
set pFile to (path to preferences as Unicode text) &
"com.apple.desktop.plist"
tell application "System Events"
get value of property list item "LastName" of property list item 1 of
property list item "Background" of property list file pFile
end tell
NG
_______________________________________________
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