Re: Scripting Illustrator 10
Re: Scripting Illustrator 10
- Subject: Re: Scripting Illustrator 10
- From: Jay Young <email@hidden>
- Date: Mon, 12 Jan 2004 21:44:26 -0600
I'm having similar problems with this too. I've noticed in OS 10.2.6
with Illustrator 10 that if I use this syntax:
-----
tell application "Adobe Illustrator 10"
open file "File Name"
end tell
-----
it opens the file without ever bringing up the 'Font Problems' dialog
(when there are indeed fonts missing). But opening the Illustrator
file by use of the Finder makes the dialog appear:
-----
tell application "Finder"
open file "File Name"
end tell
-----
I'm curious if there's a way to have the script hit the 'Cancel' button
on the 'Font Problems' dialog (or any error dialog that may appear).
System Events doesn't seem to be able to properly click this button.
It would be ideal to be able to click the 'Cancel' button in order to
skip this file with missing fonts and move onto the next file. Is
there any possibilities through a 'Do Shell Script'? I'm sure
'killing' the process wouldn't be a good idea, but can Unix see any of
this GUI interface?
Thanks.
Jay
=====================
>
> 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"
>
To by-pass these dialogs, the right way should be:
>
tell application "Adobe Illustrator 10"
>
set user interaction level to never interact
>
open file "File Name"
>
...
>
set user interaction level to interact with all
>
end tell
>
--
>
Olivier
_______________________________________________
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.