• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator


  • Subject: Re: Illustrator
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 18 Dec 2000 21:27:08 +1100

On 18/12/00 7:08 PM +1000, Peter Mathiessen, email@hidden,
wrote:

> Does anyone know how to remove swatches in Illustrator that is unused?
>
> I know how to remove them if I know the name of the swatch, but in most
> cases I don4t know that.
>
> I want to make a script that opens a lot of Illustrator files and remove all
> unused swatch colors.

You will probably have to loop through the swatches, seeing if a path item
exists with a fill color or stroke color of each, as well as checking the
color of the contents of text art items. There's no single command to do it
for you.
>
> Also, I having some trouble to acces the "do script" in Illustrator, the
> script is working fine in Photshop but in Illustrator nothing happens.
> I have recorded a script in Illustrator but can4t reach it by my script.
>
> The script:
>
> tell application "Adobe Illustrator. 9.0" to activate
> set searchFolder to "Macintosh HD:files_in:"
> set myList to list folder alias searchFolder without invisibles
> repeat with myFilename in every item in myList
> set myFile to alias (searchFolder & myFilename)
> tell application "Adobe Illustrator. 9.0"
> try
> open myFile
> do script "Save01"
> end try
> end tell
> end repeat

If you look in the dictionary, you will see that the do script command has a
"from" parameter that is required; it won't work without it.

--
Shane Stanley, email@hidden


References: 
 >Illustrator (From: Peter Mathiessen <email@hidden>)

  • Prev by Date: Re: AppleScript Extension not in Extension Manager?
  • Next by Date: Timeout -1712 error on segment script
  • Previous by thread: Illustrator
  • Next by thread: Month/Day Conundrums
  • Index(es):
    • Date
    • Thread