• 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
Re: Illustrator CS 3 'open' command sometimes throws error 8700
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Illustrator CS 3 'open' command sometimes throws error 8700
      • From: Shane Stanley <email@hidden>
References: 
 >Illustrator CS 3 'open' command sometimes throws error 8700 (From: Hamish Sanderson <email@hidden>)

  • Prev by Date: Re: Open folders in new window
  • Next by Date: Re: Open folders in new window
  • Previous by thread: Illustrator CS 3 'open' command sometimes throws error 8700
  • Next by thread: Re: Illustrator CS 3 'open' command sometimes throws error 8700
  • Index(es):
    • Date
    • Thread