Illustrator Scripting :: Deleting Unused Swatches?

Jul 27, 2009

Because I'm unable to invoke the "Select All Unused" menu item of the Swatches panel menu I'm trying to attack it programmatically.
 
What I'm trying to determine is if it's sufficient to compare the Fill and Stroke Color of each Path Item (every path item of current document) or are there other items that should be examined to achieve the same results as the command in the Swatches panel menu? Page Items doesn't appear to contain a Fill Color property. I've got AppleScript code that appears to do the trick, but I'd like to get input so as to make sure I'm not missing something that my testing might not have uncovered.

View 11 Replies


ADVERTISEMENT

Illustrator :: Unused Deleted Swatches Come Back After Deleting / Clicking Add Used Swatches

Jul 12, 2013

I am proficient in Illustrator, but this has been one of a few enigmas. Every once and a while in a file, I have noticed that after deleting a color that is definitely not in use(ie there are no strokes, fills, stray paths etc) using these colors. I have made sure of it. I will delete the color from the swatches and as a final pass I like to add used colors and sure enough that color will come back. I tried making sure it's not checked global, didn't work, some I don't even think are global colors, and in fact they are generally CMYK. I often notice that Black and C:0 M:0 Y:0 K:100 don't like to delete from the swatches among some other colors when you delete unused swatches. I thought perhaps they were in guides or something but it's truly unexplainable, and generally with a fresh file if all colors are deleted it'll still leave black white and gray.

Or ways to troubleshoot better other than creating a debug file and deleting lines of code as recommended in the older forums?

View 6 Replies View Related

Illustrator :: Remove Unused Swatches In CS6?

May 21, 2013

I just moved from CS4 to CS6 illustator. I'm trying to remove the unused swatches in my swatch pallet but do not see this as an option when I click on the menu in the upper right corner of the window.

View 2 Replies View Related

Illustrator :: Button That Removes All Unused Swatches?

Nov 12, 2013

Just wondering is there a button that removes all unused swatches in an illustrator file?

View 3 Replies View Related

Illustrator Scripting :: How To Rename Colour Swatches

Aug 19, 2013

In Illustrator Javascript, you can use the following to rename layers:
 
var doc = app.activeDocument;
// loop through all layers
for (var i = 0; i < doc.layers.length; i++) {
 
[Code]....

Is there anyway to rename colour swatches.
 
For example, I have 20 swatches named Yellow -(Keyword). (The keyword is different for each swatch).

I would like to replace yellow with the word colour1 while replacing the -(keyword) part in tact.
 
Is this possible? My swatches are in groups, so I am not sure if it makes it more complicated.

View 4 Replies View Related

Illustrator Scripting :: How To Find Darkest Color In Document Swatches

Oct 15, 2012

Is it possible to find out how bright is an color? I need to find the darkest color in document's swatches. My solution would be to convert (script internally, without actually making any changes in document) swatches to grayscale, compare them and pick the darkest. But how to convert  swatch defined in undefined mode (they might be in lab or cmyk) to grayscale?
 
I found in 'js scriping reference' a method "convertSampleColor", but I have no idea how to use it. Any examples?

View 2 Replies View Related

Illustrator Scripting :: Deleting And Replacing Layers?

May 1, 2013

So I'm trying to create a fairly simple script that will measure the size of art on the artboard for making printing plates. That part I have working. But once I have made one file, I have to delete the measurements layer manually (which is where the script puts them) so that I can make the next one. I need the script to check and see if there is a layer called "measurements" delete it and then create a new one called "measurements" in which to put the dimensions of the (new) artwork. This way I can keep making files and "saving as" with a new name.

View 1 Replies View Related

Revit :: Deleting Unused Viewport

Jan 30, 2013

Deleteting unused viewport types from Revit Arch 2013? I have a project that had some detail views imported from another project and brought along some unwanted viewport styles. Purge Unused does no good. There are no instances of the unwanted viewports in the project either.

View 4 Replies View Related

Illustrator Scripting :: Deleting Used Symbol Generates Error

May 31, 2012

I'm having difficulty writing a script that deletes all of the symbols in the document (as opposed to just breaking links or expanding which I apparently cannot do). app.sourceDocument.symbols.removeAll();When it reaches a symbol that's used in the document somewhere it spits out this error: Error 1200: an Illustrator error occurred: 1346458189 ('MRAP')

View 11 Replies View Related

AutoCad :: Deleting Unused Dimension Styles

Jul 23, 2012

I received a file (exported from datacad) with apx. ~1000 dimension styles. I selected all dimensions and changed their style to a new style. Now I want to delete the old styles, but Autocad says they are used. I tried purging, but it doesn't work.

View 8 Replies View Related

Illustrator :: Colour Swatches Disappeared When Clicked On Show All Swatches?

Mar 1, 2014

My colour swatches disappeared although I clicked on "show all swatches". What do I have to do to appear regularly when opening Illustrator?

View 3 Replies View Related

Illustrator :: Pantone Swatches Won't Appear In Swatches Panel?

Sep 11, 2012

Im in the process of converting a logo to spot colors. When I open the swatches panel and choose any one of the pantone books, the panel opens to what you see below. This same thing happens with all color books except for the basic illustrator books.

View 4 Replies View Related

Illustrator Scripting :: Deleting Text From Text Frame

Apr 8, 2013

What is the best way or anyway to remove text from a text frame? Say if you want to remove anything in () in a text frame or any * symbols.
 
52(one on both sides) //you have this in a text frame
 
52 // and you want to change it to this by deleting (.)
 
or
 
40* //you have this in a text frame
 
40 // and you want to change it to this by deleting the *

View 25 Replies View Related

Illustrator :: Action For Unused Swatch Removal Broken In CC?

Mar 4, 2014

I have an action set up from CS6 that simply selects all unused swatches and deletes them. Useful to keep production files clean. However in CC it doesn't work. I have tried re-recording the action, simple enough, but when I run it I get a message telling me, "The object "Swatches" is not currently available." Why is this not working in CC.

View 13 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

View 8 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

Photoshop :: Illustrator Swatches

Feb 4, 2006

i need to be able to two-tone some text. like swirl green and white or red and blue... or purple and green, etc. (or stripe text watever)

View 3 Replies View Related

Illustrator :: Color Swatches In CS6

Jul 19, 2012

I can only load some of the swatches for the color books into the swatches pallet. Most importantly I cannot load the pantone swatches. I just get a blank pallet.

View 17 Replies View Related

Illustrator :: No Color Swatches In AI6?

May 4, 2013

I don't have any color swatches on my Ai6 in painting or for gradents. On my Ai CS4 it came with lots of color swatches.

View 1 Replies View Related

Illustrator :: How To Add PMS 2027C To Swatches

Feb 11, 2014

It's part of the 2013 PMS Solid Coated Formula Guide, but unsearchable in the CC PMS Solid Coated Color Book.

View 1 Replies View Related

Illustrator :: Why Do Swatches Disappear

Feb 28, 2014

Why do my swatches disappear in cs6 and how do I get them back?

View 1 Replies View Related

Illustrator :: Swatches Are Not Syncing In CC

Jun 19, 2013

I have it checked, and when I sync my swatches do not show up.

View 4 Replies View Related

Illustrator :: How To Remove ASE Swatches

Jan 3, 2014

I am trying to clear up my ASE library. I am having problems locating it on Finder on Mac despite trying to find it on the same path that AI shows when saving a new ASE.

View 2 Replies View Related

Illustrator :: How To Use Gradient Swatches

Oct 17, 2012

"This library cannot be used because it does not have enough solid color swatches. Gradients and patterns cannot be used." What does this error message mean when I am trying to use gradient swatches and how to do I stop it?

View 3 Replies View Related

Illustrator :: Can Handle Swatches Defined In LAB

Dec 14, 2012

I have a set of process color swatches which I defined as LAB colors. I use them mostly in InDesign. This morning I opened them as a swatch library in Illustrator for the first time. The CMYK numbers are significantly different from what they are in InDesign. Both documents have the same color management policies/rendering intent. I know that there is no "LAB mode" in Illustrator but I'm surprised that it translates the LAB>CMYK in a different fashion than does InDesign. I guess the solution would be to remake my swatches defining them as CMYK colors. However, that somewhat defeats my original plan: define the swatches in LAB so they will get translated as accurately as possible in different programs.I'm using CS4 on a Mac.

View 4 Replies View Related

Illustrator :: Change Swatches From CMYK To RGB?

Jun 25, 2013

Okay so I've just realised that my documents are CMYK and have changed the settings to RGB (File > Document color mode > RGB and from the colour fly out menu) although I notice that when I hover my mouse over the colors in the swatches panel that it shows me the CMYK values.

View 5 Replies View Related

Illustrator :: How To Delete Self Defined Swatches

Dec 3, 2012

I work with Adobe Design Std CS5 Illustrator (German version), newly installed - not migrated from an older model! - on iMac27, i7, SSD and OS X 10.8:
 
I have created my own "Swatches" (Farbfelder) and saved (too) many of them.

Now I want to delete the majority, but I cannot find the directory "Benutzerdefiniert" or "User created?" on the path as hinted by the Illustrator Help (German version: Adobe Illustrator/Vorgaben/de_DE/Farbfelder). I only find the various Color Collections stored during Illustrator installation.

Are Illustrator procedures to blame - or again Apple OS X 10.8 (Mountain Lion) intricacies?

Apple started to confuse even long term users with Snow Leopard (OS X 10.6). Every new version offered many surprises or caveats and endless calls to Apple...
 
Shall I reinstall Illustrator and create the user defined "Swatches" again from the relevant Illustrator files? A sledge hammer method...

View 7 Replies View Related

Illustrator :: Why Swatches Not Used Merge Into Document

Aug 2, 2012

Do color swatches 'stick' to an  Illustrator file even after you delete them? I have to use the same spec box on all my documents to relay info to my printer which is in it's own Illustrator doc. BUT when I copy it and paste it into any file I am working on Illustrator always asks me about merging the swatches even tho there is only ONE color being used in my spec box file. My printer is losing patience b/c they think my files are a mess when I send them but my swatch pallet is clean and tidy on my end!

View 2 Replies View Related

Illustrator :: Pantone Swatches Out Of Order

May 16, 2013

Problem in AICS6 trying to find a certain Pantone color. Why Adobe, Pantone or both have never learned to count? Here is a sample of the Pantone list in the "Swatches" palette: PANTONE 133, PANTONE 1205, PANTONE 1215, etc. and it gets worse. Is there a way to tell them to go into numerical order? Why aren't they already in numerical order? That is the whole point of giving anything a number: order.
 
In the totally unrelated and incompatible application InDesign you at least have the option of typing in the number you want. In AI you have to scroll through the random swatches until you stumble on it. Now, they are in order. There are rules to this sort of thing just that there are rules for grammer and spelling. If Adobe claims they are in order that is the same as saying they have invented their own language and grammer. Worse, they have invented their own number system. Is there any way to make them go in numerical order using

View 4 Replies View Related

Illustrator :: Swatches Are Associated With Piece Of Artwork

Apr 23, 2013

I think I am having trouble with how a certain system font displays in Illustrator. I am not sure which font it is. Why I am getting a swatch list that looks like this:
 
All these "mystery" swatches are associated with a piece of artwork that was obtained from a stock image website.

View 3 Replies View Related

Illustrator :: Replace All Ghost Swatches?

Oct 4, 2012

Is there a way to replace all "ghost" colors in the doc (colors that don't exist in the swatches palette) with a global process color?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved