GUI Scripting Illustrator's "Reader for DXF" plug-in DXF/DWG Options dialog
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.