• 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: Scripting the Colors palette
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting the Colors palette


  • Subject: Re: Scripting the Colors palette
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 15 Mar 2009 23:54:31 +0100


Le 15 mars 2009 à 23:28:09, Fass-Holmes Barry a écrit :


tell application "Mail" to activate tell application "System Events" tell application process "Mail" keystroke "c" using {command down, shift down} delay 1 tell window "Colors" tell radio group "Maraschino" tell radio button "Maraschino" click end tell end tell end tell end tell end tell

Given <AXApplication: “Mail”> <AXWindow: “Colors”> <AXGroup: “Maraschino”> -- forgotten <AXGroup: “Maraschino”> -- forgotten <AXRadioGroup: “Maraschino”> <AXRadioButton: “Maraschino”>


I would code:

tell application "Mail" to activate
tell application "System Events"
	tell application process "Mail"
		keystroke "c" using {command down, shift down}
		delay 1
		tell window "Colors"
                        tell group "Maraschino" -- added
			tell group "Maraschino" -- added
			tell radio group "Maraschino"
				click radio button "Maraschino"
end tell  -- added
end tell  -- added
			end tell
		end tell
	end tell
end tell

Yvan KOENIG (from FRANCE dimanche 15 mars 2009 23:52:11)



_______________________________________________
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
References: 
 >Scripting the Colors palette (From: Fass-Holmes Barry <email@hidden>)

  • Prev by Date: Re: Stock Quotes using AppleScript
  • Next by Date: Re: Is this a bug?
  • Previous by thread: Re: Scripting the Colors palette
  • Next by thread: Re: Scripting the Colors palette
  • Index(es):
    • Date
    • Thread