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: Ian Goos <email@hidden>
- Date: Mon, 16 Jun 2008 17:19:21 -0400
Actually did find the file:
~/Library/Preferences/com.apple.desktop.plist
I don't have a plist editor installed on my machine but apparently
there is one included with the Developers Toolkit install. I think
there is a command line version of that which might return info for
the plist to a do shell script command.
Hope this helps
Ian
On Jun 16, 2008, at 5:05 PM, Ian Goos wrote:
I'd think there is a plist somewhere with the current picture...
Especially since the OS can proceed in order (or did in the past)
and change pictures at login.
Perhaps you can do a comparative search in your ~/Library directory
for changed files after the picture changes.
I tried to search contents of files with the name of my current
desktop picture, searching both visible and invisible files and got
back nothing.
I'm on 10.4.11 and your script didn't run. Are you on 10.5?
Ian
On Jun 16, 2008, at 1:26 PM, Joe wrote:
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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40link33.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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