Re: Scripting the Colors palette
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