opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 13 January 2006 • 8:37AM -0500

Re: desktop picture
by Nigel Garvey

REPLY TO AUTHOR
 
REPLY TO GROUP




Martin Orpen wrote on Thu, 12 Jan 2006 19:25:36 +0000:

>> Is there a reliable way to _get_ the current desktop picture?
>
>My lazy way uses the last line of this script:
>
>
>tell application "Finder"
> set foo to folder "Desktop Pictures" of folder "Caches" of folder  
>"Library" of startup disk
> set bar to POSIX path of (first item of (get files of foo) as alias)
>end tell
>do shell script "strings " & quoted form of bar
>
>-->"/Library/Desktop Pictures/ideaDesktop01.pdf"

That doesn't work here, Martin. It returns a lot of interesting
information about the inside of the wrong file.

NG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.