Re: Illustrator CS 3 'open' command sometimes throws error 8700
Re: Illustrator CS 3 'open' command sometimes throws error 8700
- Subject: Re: Illustrator CS 3 'open' command sometimes throws error 8700
- From: Simon Topliss <email@hidden>
- Date: Thu, 24 Sep 2009 16:23:10 +0100
Hi Hamish,
On 24 Sep 2009, at 13:51, Hamish Sanderson wrote:
Hi all,
Writing an Illustrator CS 3 script which opens an .ai file off a
previously mounted AFP share to do some processing on it. Bog-
standard stuff:
tell app "Adobe Illustrator"
set user interaction level to never interact
open alias "path:to:file.ai" without dialogs
Is the alias above a 'file path as string' stored in a variable? I've
has problems in the past with AI preferring the string to be coerced
as an alias directly before being used in the AI 'open' command. Eg.
"open (filePathAsString as alias) without dialogs" seems more
reliable, especially with files on servers.
*The above is actually required in Snow Leopard. "open alias
filePathAsString" will always error in SL.*
Most times this works without problem, but sometimes the file
doesn't appear in AI and it raises an error 8700 ('the operation was
cancelled') instead. If I re-run the same command myself, it works
the second time around.
The 'the operation was cancelled' error is probably the result of the
"set user interaction level to never interact" and "open … without
dialogs" commands. This may be hiding the actual error (probably a
'file not found' error). Do you get a different error without those
options?
Anyone have any ideas what might be causing this? AI's error message
is not exactly helpful. (AI 13.0.2, OS X 10.5.7 Intel)
Any reason for still being on 10.5.7? I know Apple did quite a bit
with AFP bug fixes on 10.5.8 (particularly with 10.5.8 server).
p.s. Don't suppose anyone knows if there's a publicly available list
of all AI error codes for reference?
Not that I've ever found.
Simon
_______________________________________________
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