• 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: Requesting help with illustrator problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting help with illustrator problem


  • Subject: Re: Requesting help with illustrator problem
  • From: "Stockly, Ed" <email@hidden>
  • Date: Mon, 09 Mar 2015 17:36:20 +0000
  • Thread-topic: Requesting help with illustrator problem

Hmmm, you script runs here. Anything special about the text frames you're adding?

Here's an idea, print your document from the UI with color management settings that work. Then save those setting to a file, and load color stettings before printing from your script, if that doesn't work, maybe turn color management off.

load color settings

load color settings (verb)load the color settings from the file. If the file is an empty file spec, the color management will be turned off. (from Core Suite)

command syntax

load color settings from file

parameters

Parameter
Required
Type
Description
from required file file spec for the color settings


From: Brian Christmas <email@hidden>
Date: Friday, March 6, 2015 at 7:53 PM
To: AppleScript Digest <email@hidden>
Subject: Requesting help with illustrator problem

G'day

 

I'm adding two text boxes to an illustrator CS6 document with Applescript, but when I go to print, I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.'

 

The error message is not error trappable.

 

I have to barcode thousands of documents a year, and this is a big deal breaker. Is there any fix, please?

 

Regards

 

Brian Christmas

 

try
  set printerName to my theLargePagePrinter as string
  set paperOptions to {class:paper options, name:largePaperSize}
  set jobOptions to {class:job options, designation:all layers} # , print options:printOptions}
  set colorOptions to {class:color management options, profile kind:printer profile}
  set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360}
  set printOptions to {class:print options, printer name:printerName, paper settings:paperOptions, flattener settings:flatOpts, job settings:jobOptions, color management settings:colorOptions}
  try
  set p to 17
  tell application "System Events" to tell process "Adobe Illustrator"
  click menu item "Fit to Artwork Bounds" of menu 1 of menu item "Artboards" of menu 1 of menu bar item "Object" of menu bar 1
  end tell
  end try
  set p to 18
  say 7
  print document 1 options printOptions
  say 8
  on error errmsg number errnum
  tell application "System Events" to display dialog "Error in printing illustrator document. " & errmsg & " number " & errnum giving up after 40
  end try
 _______________________________________________
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

  • Prev by Date: Re: Error handling?
  • Next by Date: Re: How Can I Access Properties of Script Applications?
  • Previous by thread: Requesting help with illustrator problem
  • Next by thread: Questions About Bundled Scripts
  • Index(es):
    • Date
    • Thread