• 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
GUI Scripting Illustrator's "Reader for DXF" plug-in DXF/DWG Options dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI Scripting Illustrator's "Reader for DXF" plug-in DXF/DWG Options dialog


  • Subject: GUI Scripting Illustrator's "Reader for DXF" plug-in DXF/DWG Options dialog
  • From: Paul Otmanski <email@hidden>
  • Date: Thu, 22 Jul 2004 14:50:14 -0500

Has anyone had success using Apple's OS X GUI Scripting
(http://www.apple.com/applescript/uiscripting/index.html) on a dialog that
is displayed by an Adobe Illustrator (or Photoshop) plug-in module? I'm
trying to use it to click the OK button in the DXF/DWG Options dialog which
is displayed by the "Reader for DXF" plug-in, and I can't get it to work. I
have "access for assistive devices" turned on in the Universal access system
prefs. With the dialog displayed, I run the following script:

tell application "Illustrator CS"
activate
end tell

tell application "System Events"
tell application process "Adobe Illustrator CS"
click button "OK" of window "DXF/DWG Options"
end tell
end tell

And I get and error that says:

"AppleScript Error

System Events got an error:
NSReceiverEvaluationScriptError: 4"


I've run the UIElementInspector app to get the object hierarchy and I think
I have that right. GUI scritping Illustrator application dialogs, such as
the "Open" dialog works fine, so I think it has something to do with the
fact that the dialog is being displayed by a plug-in module. Has anyone
found a way to make this work?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Problem getting position of desktop items
  • Next by Date: Re: Problem getting position of desktop items
  • Previous by thread: Re: "do shell" vs. Plain old AppleScript nomenclature
  • Next by thread: Disconnecting...
  • Index(es):
    • Date
    • Thread