Re: Illustrator
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>) |