Brad, this converts the document to greyscale, just in case you haven't tried it. Tested on CS6.
Regards
Santa
tell application "Adobe Illustrator" activate tell application "System Events" to tell process "Illustrator" try click menu item "Convert to Grayscale" of menu 1 of menu item "Edit Colors" of menu 1 of menu bar item "Edit" of menu bar 1 end try end tell end tell
On 21/11/2012, at 4:58 AM, "Houston, Brad" < email@hidden> wrote:
Greetings
I’ve been tasked to write a script that does a number of things with Illustrator (CS5.1) art, all of which I’ve managed to figure out (with some struggle), excepting only converting the art on certain layers to grayscale. There’s an easy command under “Edit”
to do it, but I’ve been unable to figure out a way to do it via applescript. There are commands dealing with converting colors during export, but I need to change it in the document itself, and only for page items on specified layers.
Anyone have a clue? I’m exhausted.
Brad
The information contained in this message is intended only for the recipient, and may be a confidential attorney-client communication or may otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, please be aware that any dissemination or copying of this communication is strictly prohibited. If you have
received this communication in error, please immediately notify us by replying to the message and deleting it from your computer. The McGraw-Hill Companies, Inc. reserves the right, subject to applicable local law, to monitor, review and process the content
of any electronic message or information sent to or from McGraw-Hill e-mail addresses without informing the sender or recipient of the message. By sending electronic message or information to McGraw-Hill e-mail addresses you, as the sender, are consenting
to McGraw-Hill processing any of your personal data therein.
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
|