Scripting Illustrator 10
Scripting Illustrator 10
- Subject: Scripting Illustrator 10
- From: "Lincoln D Grant" <email@hidden>
- Date: Mon, 12 Jan 2004 14:32:39 -0600
When I open an Illustrator file I have three different types of errors that
I can encounter.
They are "Font Problems", "Convert Color Mode" and "Missing Linked File"
The dialog boxes that are produced when I encounter these errors contain
buttons that can be
selected using System Events scripts but when they are selected nothing
happens.
Prefab's UI Browser 1.2 also allows you to pick these buttons but again
they do not do anything.
When you select one of these buttons using script it lights up as if it was
selected but the dialog
box remains.
Below is the code I have created so far. I have found a way around the
"Font Problems" and the
"Convert Color Mode" dialog boxes by pressing return. The "Missing Linked
File" dialog box is
the stopper. If I can get some assistance with the final piece or a method
that works with all
Illustrator 10 dialog boxes it would be greatly appreciated.
Using - OS 10.3.2 and Illustrator 10.0.3
Thank You,
Lincoln
tell application "Finder"
open alias "File Name"
end tell
delay 3
tell application "System Events"
tell application process "Adobe Illustrator 10"
if exists window "Font Problems" then
keystroke return
delay 5
set gErrorType to "FONT"
end if
end tell
end tell
tell application "System Events"
tell application process "Adobe Illustrator 10"
if exists window "Convert Color Mode" then
keystroke return
delay 5
set gErrorType to "COLORMODE"
end if
end tell
end tell
delay 5
tell application "System Events"
tell application process "Adobe Illustrator 10"
if (exists "Ignore") and (exists "Cancel") and (exists
"Replace") then
-- THE NEXT LINE IS THE CRITICAL ONE (IT DOESN"T
WORK)
--click UI element "Ignore" of window ""
delay 5
set gErrorType to "LINKED"
end if
end tell
end tell
_______________________________________________
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.