System Events OK Button Problem
System Events OK Button Problem
- Subject: System Events OK Button Problem
- From: Rick Gordon <email@hidden>
- Date: Tue, 21 Feb 2012 13:28:42 -0800
I'm trying to script an InDesign dialog response for which there is no direct application access (the "Convert to Profile.." command), so I'm using System Events. I've got everything working, except that none of the approaches for accepting and dismissing the dialog is working (as commented below).
What's my problem here? (OS 10.6.8)
--
tell application "Adobe InDesign CS5.5"
activate
end tell
tell application "System Events"
tell application process "Adobe InDesign CS5.5"
set vEditMenu to menu "Edit" of menu bar 1
set vConvertToProfileMenuItem to menu item "Convert to Profile..." of vEditMenu
click vConvertToProfileMenuItem
set vConvertToProfileDialog to window "Convert to Profile"
tell vConvertToProfileDialog
set vAppliedCMYK to pop up button 2
click vAppliedCMYK
keystroke "U.S. Web Coated (SWOP) v2" & return
keystroke enter key --NOT WORKING
--OR
key code 36 --NOT WORKING
--OR
perform action "AXPress" of button "OK" --NOT WORKING,
--CONFIRMED THAT BUTTON AND ACTION EXISTS
end tell
end tell
end tell
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
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