• 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: RE: System Events OK Button Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: RE: System Events OK Button Problem


  • Subject: RE: RE: System Events OK Button Problem
  • From: email@hidden
  • Date: Thu, 23 Feb 2012 14:20:47 +0100

hi Rick, what exactly does not work... does this not do the trick?


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

delay 2

keystroke "U.S. Web Coated (SWOP) v2" & return

delay 2

keystroke return 

end tell

end tell

end tell


best regards,jan





This finally seems to have emerged here today after having been sent out last week. I've had conversations concerning it on the InDesign AppleScripting list, and after trying different System Events-based approaches that didn't work, finally got QuicKeys to do what I couldn't script.------------------On 2/21/12 at 1:28 PM -0800, Rick Gordon wrote in a message entitled"System Events OK Button Problem":>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
 _______________________________________________
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: RE: System Events OK Button Problem
      • From: Rick Gordon <email@hidden>
  • Prev by Date: RE: System Events OK Button Problem
  • Next by Date: RE: RE: System Events OK Button Problem
  • Previous by thread: RE: System Events OK Button Problem
  • Next by thread: RE: RE: System Events OK Button Problem
  • Index(es):
    • Date
    • Thread