Skip to main content
Known Participant
June 17, 2009
Question

How to apply the Convert to Grayscale?

  • June 17, 2009
  • 2 replies
  • 1836 views

Hi all,

I need to convert all the objects & text as Grayscale through Scripting. And also is it possible to apply the Convert to Grayscale(Edit->Edit Colors->Convert to Grayscale) for the selected items in illustrator cs3. Kindly advice me the possiblities.

Thanks for looking into this.

This topic has been closed for replies.

2 replies

Inspiring
August 30, 2009

Hi - Unfortunately, this is not possible through straight scripting.

The only option I'm aware of is using actions and calling them from a script.

1. Record an action that changes the selection to grayscale

2. Use AppleScript to select  all

3. Use the do script command in AppleScript (or javascript...) to run the action.

I used this successfully.

Hope that helps.

Larry G. Schneider
Community Expert
Community Expert
June 17, 2009

Look at the GrayColor in the JS Scripting reference. Probably as close as you can get.

Known Participant
June 18, 2009

Thanks Larry.