• 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 CS5.1 color conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator CS5.1 color conversion


  • Subject: Re: Illustrator CS5.1 color conversion
  • From: "Houston, Brad" <email@hidden>
  • Date: Tue, 20 Nov 2012 20:16:32 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Illustrator CS5.1 color conversion

Title: Re: Illustrator CS5.1 color conversion
Hey Brian, thanks.

Other work overwhelmed me, thus I just caught up with your ever more developed responses. The system events approach I was not familiar with, but I’ll be all over it now. The holes in the applescript for Illustrator was driving me nuts; this approach can plug them all. Awesome!

Brad


On 11/20/12 4:39 PM, "Brian Christmas" <email@hidden> wrote:

Brad, I've been mucking about, and this script will turn all objects in all in-between first & last layers into greyscale.

Regards

Santa

tell application "Adobe Illustrator"
activate
tell
current document
set theCount to (count of layers) as text
set theProperties to {}
repeat with EachLayer from 1 to theCount
if EachLayer > 1 and EachLayer < theCount then
set
theProperties to page items of layer EachLayer
repeat with EachItem from 1 to count of theProperties
set selection to item EachItem of page items of layer EachLayer
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
repeat
end
if
end
repeat
end
tell
end
tell




On 21/11/2012, at 4:58 AM, "Houston, Brad" <email@hidden> wrote:

Illustrator CS5.1 color conversion
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



 _______________________________________________
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 CS5.1 color conversion
      • From: Brian Christmas <email@hidden>
    • Re: Illustrator CS5.1 color conversion
      • From: Brian Christmas <email@hidden>
    • Re: Illustrator CS5.1 color conversion
      • From: Brian Christmas <email@hidden>
References: 
 >Re: Illustrator CS5.1 color conversion (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Illustrator CS5.1 color conversion
  • Next by Date: Re: Illustrator CS5.1 color conversion
  • Previous by thread: Re: Illustrator CS5.1 color conversion
  • Next by thread: Re: Illustrator CS5.1 color conversion
  • Index(es):
    • Date
    • Thread