• 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: name of the current desktop picture
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name of the current desktop picture


  • Subject: Re: name of the current desktop picture
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 11 May 2014 17:34:05 +0200


Le 11/05/2014 à 16:23, Robert Poland <email@hidden> a écrit :

Hi,

I know I asked this before but I can’t seem to find the replies.

I want th find the name of the current desktop picture.

Something like this;

tell application "Finder"
tell "System Preferences"
tell "Desktop & Screen Saver"
set x to name of "background picture"
end tell
end tell
end tell
x

TIA,


Hello Bob

Try this one :

tell application "System Events"
tell application "System Preferences"
activate
(* 
# Code used to grab the anchor's names
tell pane id "com.apple.preference.desktopscreeneffect"
name of its anchors
--> {"DesktopPref", "ScreenSaverPref"}
end tell
*)
reveal anchor "desktopPref" of pane id "com.apple.preference.desktopscreeneffect"
delay 0.5
end tell -- application "System Preferences"


tell process "System Preferences"
tell window 1 -- "Desktop"
set currentBackgound to value of first static text of first tab group
end tell
end tell -- process "System Preferences"
tell application "System Preferences" to quit
end tell -- application "System Events" 

currentBackgound

Yvan KOENIG (VALLAURIS, France) dimanche 11 mai 2014 17:33:32



 _______________________________________________
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

  • Follow-Ups:
    • Re: name of the current desktop picture
      • From: Robert Poland <email@hidden>
References: 
 >name of the current desktop picture (From: Robert Poland <email@hidden>)

  • Prev by Date: name of the current desktop picture
  • Next by Date: Re: name of the current desktop picture
  • Previous by thread: name of the current desktop picture
  • Next by thread: Re: name of the current desktop picture
  • Index(es):
    • Date
    • Thread