Author Topic: Applescript to round off the shade % of graphic in Illustrator.  (Read 1161 times)

0 Members and 1 Guest are viewing this topic.

Offline Star123

  • Visitor
  • Posts: 3
  • Karma: 0
Hi Guys,

 I am using MacIntosh X, Adobe Illustrator CS6 (version 16) and Applescript Editor (version 2.5).

I have more than 200 files with Bar charts and Pie charts. Every Time I have to convert the color mode to GrayScale through Menu Bar. (Edit > Edit colors > Convert to GrayScale). After doing that I have to select each and every bar of the chart with Direct selection tool and to round of the Shade Percentage.

For example
70.40% to 70% (the value after the dot is below 50)
70.60 to 71% (the value after the dot is above 50)

Is there a way, to do this using applescript?
It will saves me a day.

Thanks in advance.

Offline Jean-Marie Schwartz

  • Sr. Member
  • ****
  • Posts: 436
  • Karma: 6
  • Gender: Male
Re: Applescript to round off the shade % of graphic in Illustrator.
« Reply #1 on: May 04, 2015, 04:20:53 AM »
Hi! Sorry to answer so late. I was focused on the Illy thing. Rounding numbers can be done this way:

Code: [Select]
set a to 74.5
set b to round a rounding as taught in school

HTH.
Jean-Marie Schwartz
May the Schwartz be with you :-)

= Mac Pro Quad-Core Intel 2.8 GHz 10 Go 1066 MHz DDR3 Mac OS 10.8.5 QuarkXPress 9.5.4.1 Adobe CS5 =