Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Get the name of the current desktop image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get the name of the current desktop image
Authored by: virius on May 13, '06 01:02:51PM
Full service solution:

tell application "Finder"
	set dp to get desktop picture of application "Finder"
	set dpn to name of dp
	set rep to display dialog "The current Desktop Picture is named " & return & "\"" & dpn & "\"" buttons {"Copy to Clipboard", "Open File", "OK"} default button 3
	if button returned of rep is "Copy to Clipboard" then set the clipboard to dpn
	if button returned of rep is "Open File" then open dp
end tell
It displays the name, offers to copy it to clipboard, or to open it.
AppleScript is great for stuff like this...

[ Reply to This | # ]
Get the name of the current desktop image
Authored by: JimMueller on May 14, '06 07:15:22PM

Very elegant implementation, and at least it runs in Panther (though it does not copy the filename to the clipboard), but it is not giving the filename of the current rotating desktop.

When I run it in Tiger it only displays the filename of the last desktop I had directly selected.



[ Reply to This | # ]