• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get name of desktop image. Is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Get name of desktop image. Is this a bug?
  • Next by Date: How can I simplify the math in this script?
  • Previous by thread: Re: Get name of desktop image. Is this a bug?
  • Next by thread: Re: Get name of desktop image. Is this a bug?
  • Index(es):
    • Date
    • Thread