Illustrator Scripting :: Getting Used Spot Colors In Color Legend On MAC JS Or Applescript
Mar 23, 2012
I've been looking around for a script that will take the used spot colors in a document and place them in a predetermined spot. I've came across several posts about this, such as the COLOR CHIPPER although I think it's focus was on swatches. What is confusing is the part of making New CMYKColor or RGB or if I even need to do that. I've looked at other posts and the Adobe docs, but none seem to work. Adding the text isn't difficult, it's getting these spot colors to reflect what's in the document that is. From what I'm seeing now:
I may have to use some other type of script such as Applescript to get rid of unused swatches first throught the actions panel, but I'm not sure.I could possibly use the getByName method to call out the specific rectangle and the and relative callout with the appropriate color instead of having to position everytime.
View 9 Replies
ADVERTISEMENT
Jul 17, 2012
color value of spot colors cannot be adjusted via javascript?
View 5 Replies
View Related
May 4, 2012
I want to overprint a PMS colors using Applescript. I though if I changed the property of the selected items fill color from (fill overprint:false) to (fill overprint:true) it would work. This doesn't seem to change a thing.
This is the script I am currently using:
script ChangeOverprint
tell application "Adobe Illustrator"
local docRef
[Code]....
This is the picture of a simple document I created. The elipse has fill overprint:true. The polygon has filr overprint:false. The original value for the property fill overprint was false. I changed it in the script to true. Which the log shows it changed.
View 1 Replies
View Related
Feb 24, 2012
I've been looking for scripts online that would create a color swatch legend to list the colors used in my illustrator file. I found this (see below) and tweaked it to place properly on my particular page, but it adds everything in my swatches panel to the legend. Ideally, I'm looking for a piece of script to add that would only add used swatches to the legend, or a script that would only add spot colors to the legend.
var docRef=app.activeDocument;
var SwatchBoxSize=24;
var swatchBoxSize=parseFloat(SwatchBoxSize);
var swatchBoxTop=swatchBoxSize+314;
[Code] ......
View 2 Replies
View Related
Dec 2, 2013
I am trying to create a script that adds custom spot colours to the swatch pallet. I've manage to put together something that works (I've adapted an existing script), but the colours added are not spots, just CMYK colour swatches.Also, I need the script not to error if the swatch already exists.
//Add Custom Swatches
var docRef = app.activeDocument;
function cmykColor(c, m, y, k) {
var newCMYK = new CMYKColor();
newCMYK.cyan = c;
newCMYK.magenta = m;
newCMYK.yellow = y;
newCMYK.black = k;
return newCMYK;
[code]....
View 2 Replies
View Related
Jul 4, 2012
I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
View 4 Replies
View Related
Oct 10, 2013
I am trying to grab specific spot colors and move them to separate layers for our cutting software. In this case I am trying to grab "perimeter cut" and move it to a layer called "tc 1" I get the following error when I try to run the script.
#target Illustrator
var idoc = app.activeDocument;
var ipath = idoc.pathItems;
if (ipath.typename == "SpotColor") {
if (ipath.spot.name == "perimeter cut") {
ipath.move(tc 1, ElementPlacement.PLACEATBEGINNING).
}
}
View 5 Replies
View Related
Apr 3, 2012
I need to convert javascript to Apple script.
try {
app.activeDocument.layers.getByName( '.ARD' ).remove(); } catch (e) {};
View 1 Replies
View Related
May 25, 2013
How can i export only the artboard as PSD? When i use this script a lot more is exported.
with timeout of (10 * 60) seconds
tell application "Adobe Illustrator"
activate
set dpi to 90 as text
set documentnaam to name of current document
[Code] ....
View 1 Replies
View Related
Mar 6, 2014
I am trying to add spot color in illustrator using javascript, TRY CATCH is not woking, it is adding again and again same color value with name of "spot color 1" and "spot color 2" ...
try {
var myDoc = app.activeDocument;
var spotName = "FINISHING";
var spot = myDoc.spots.add();
[Code] .......
View 1 Replies
View Related
Sep 20, 2012
I have a PDF file with 25 pages that I need to get into the form of an Illustrator file with 25 layers. I found the example of opening a particular page of a PDF file (using CS6), and that works. And I can create layers. But I can't figure out how to place a particular page of a PDF file into the new layer. Where/how do I provide the page info?
(I have a PostScript program that generates artwork for signs that are to be laser etched at the TechShop. The laser interface uses Illustrator and a special Print driver. I notice that opening a page from a PDF file positions the contents slightly differently than placing that page, when I do it manually, so I figured I'd create the multilayered Illustrator file by opening one page (which works) then placing all the pages in their own layers, then deleting the first page. Then the positioning will be consistent. But I'm stuck at placing a PDF page...)
tell application "Adobe Illustrator" to activate
-- This function opens the file passed as
-- a file reference parameter, at page myPage.
-- fileToOpen is a reference to a multi-page PDF file
-- and needs to be set up before calling this function.
on openMultipageFile(fileToOpen, myPage)
tell application "Adobe Illustrator"
set user interaction level to never interact
[Code].....
View 2 Replies
View Related
Sep 27, 2012
I have been trying to mess with and target "tints" via javascript but either I am not understanding something or it cant be targeted as I had hoped, so I am looking for direction and guidance. I have a spot color assigned in the color swatches palette, and have drawn a few boxes on the page using this spot swatch. I then try to alter the tint using JS code.
sel[i].tint = // whatever number
alert(sel[i].tint) // This alerts fine
The alert shows a change taking place but it never gets applied to the item, the actual item never gets changed. I know things are properly targeted as I can change other attributes fine. When I look in the JS documentation it just shows for when creating a new spot, not for ones that already exist on items, I cant seem to find an example otherwise.
Can tint be adjusted for items on the page that have a spot color applied?
View 8 Replies
View Related
Mar 20, 2012
trying to have an applescript place a PDF as an Illustrator Link at the PDF's Media Box using "make new placed item". The only result possible as far as I can tell is a link at the PDF's Art Box.
I've seached around and have seen others with the same issue, but no answers as to whether it is actually possible. As with most Applescript stuff, I am either way overthinking it or it is not possible directly.
Currently I have a workaround using an Applescript script controlling Acrobat to sidestep the problem by setting the Art and Crop box to Media box, then place as a link in Illustrator, but it is not a direct route into illustrator.
I have also noticed that in the "Adobe Illustrator CS5 Scripting Reference" that the "PDF options object properties" do not honor the PDF crop bounds (except for the default value of Media Box). Is this an inherent problem with Applescript/Illustrator and PDF crop boxes? Could it be that the options for Open PDF and Place PDF are crossed?
View 7 Replies
View Related
Dec 4, 2013
Is it possible to automate the rounding of font sizes if they are in decimal form? I have a few thousand files I have to prepare for upload and they can't have font sizes such as 8.214 which several do. With AppleScript would it be possible to identify and then round up or down such font sizes?
View 2 Replies
View Related
Mar 12, 2013
I'm using a mac running illustrator cs5 and have about 4 thousand eps files (all vector paths filled with black) that need to be assigned colors randomly from a defined color palette (25 custom swatches). The first 2 swatches should be omitted- they aren't relevant to this task.
The script should open the file select all vector elements and assign a random color form the defined custom swatch palette then save the file and move on to the next.
View 22 Replies
View Related
Mar 21, 2013
Using CS6 on a MacBookPro Is there a way to find the closest matching Pantone spot colors to the cmyk colors I've created in Illustrator? I know it's easy in Photoshop using the color picker, but there must be a way to do this in Illustrator.
View 4 Replies
View Related
Apr 9, 2012
I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this? Looping current artboard and exporting them to JPG or something. Or maybe there is someway to force the "save multiple artboards:true" in JPG?
export document currentDoc to file exportFolder as JPEG with options ¬
{class:JPEG export options ¬
, quality:100 ¬
, artboard clipping:true ¬
, artboard range:1 - 2 ¬
, save multiple artboards:true}
View 3 Replies
View Related
Mar 8, 2014
Spot colors such as Pantone colors didn't download with Adobe Illustrator. I have them in Photoshop. How do I get them in Illustrator?
View 2 Replies
View Related
Oct 9, 2012
I'm still working on changing a document I didn't create. It needs to be CMYK, but I keep getting error messages when I save it that there is a spot color. I saw one spot color in the Swatches (at least I seem to remember that's what the little dot in the corner means) and I double clicked it and changed it to CMYK. And I selected the one item that seems to have that color and I changed it to the CMYK version. But the swatch still has the corner dot and I still get the error message when I save.
View 2 Replies
View Related
Oct 11, 2012
I created two PDF's from identical files in Illustrator CS6 using spot colors but the colors came out different when printed although I couldn't find any apparent differences in the settings of the two documents.
I also noticed that when importing an eps file that contains spot colors in Indesign CS6, and export as PDF the colors in the PDF are sensibly different to the eps. It never happened with CS4.
View 9 Replies
View Related
Jan 5, 2013
I have a doc that contains alot of logos from auto manufactureres. I am having it printed professionally and when I save the doc as a pdf my summarry has the warning telling me I have spot colors and that it does not match color profile. How can I QUICLY find the spot colors and do I need to trap these colors? Working in printing and proofing workspace.
View 2 Replies
View Related
Nov 8, 2013
I'm printing some spot colors on colored paper, and wondering if there is a way in illustrator (CS6) to approximate the ink/paper interactions. Im worried about the ink color (greens) shifting to brown on a yellow/peach paper. I've approximated the paper color in Illustrator, and designated the pantone colors. I tried Multply- and the ink color definitely shifts to what I think it would- but not sure if that is the best way.
View 8 Replies
View Related
Sep 3, 2013
I've been told that I need to change my spot colors (illustrator CS6) to Process colors, but for some reason, sometimes this feature won't work and is greyed out.
View 2 Replies
View Related
Nov 20, 2013
I work at a printing company. Everything I know about Adobe Illustrator, Photoshop, and InDesign, I learned on the job with no classes or prior knowledge. I handle all the graphics that come through our shop, and every now and then I get artwork that when I try to save it in Illustrator, I get an error message that says Illustrator can only support a maximum of 27 spot colors. I don't even know what that means.
View 2 Replies
View Related
Jan 10, 2013
I'm a print designer. I have this Action I use to batch Illustrator files convert all spot colors to process. The problem I found recently in some instances where an object is black & white bitmap the Action converts to CMYK and that causes an issue for product representation because it does change drastically. I process a lot this files daily basis. As far as I know I don't think using an Action will prevent this from happening because it does work but I just want to confirm that in this forum. I can Insert a Stop in the Action to see what kind of image has been embeded but that defeat the purpose of running a batch.
here are the stepson the Action:
Unlock all
Select all
Convert to CMYK (Using Edit colrs)
deselect
See attached jpg (before & after)
View 12 Replies
View Related
May 24, 2013
While creating the company logo and branding in Illustrator, I've taken the CMYK values of our color palette and created custom CMYK spot swatches for each of our brand colors. This was for consistency, because a spot's color numbers do not shift as you move between Adobe apps or from CMYK to RGB docs.
My question is — is it OK to hand off a document that contains these CMYK spots to a printer for 4-color offset or digital printing? Will it mess with the colors or will they simply igore the "spot" status of the color and use the CMYK values behind it?
View 8 Replies
View Related
Sep 17, 2013
I'm having an issue where I can't convert spot colors to CMYK in the swatches panel. Currently to fix I have to copy elements using the spot colors in to a new blank document, then convert them, then paste back into the original document.
Also if I try to delete the spot color, it doesn't fully delete the swatch.
I'm using Illustrator CC 17.0.0
I've attached a video [URL] ......
View 3 Replies
View Related
Jul 16, 2013
Surprisingly i can't find any mention of this anywhere on the intertubes - very often I have a placed (photoshop/tiff) graphic with transparent background overlaying (on top of) a spot color area, the spot color prints out completely different from how it should be (and how it is on non-overlapped areas).
I've tried everything i can think of, including making an opacity mask to 'hide' the supposedly transpararent areas of the placed grahic. I know a clipping path might work, but some art is too complex for that.
View 5 Replies
View Related
Feb 24, 2014
Some of the lighter, saturated colors in the PANTONE+ swatches library appear to be a different color in the swatch list than they are when applied to a design. see below for screen shots.
i can duplicate this situation on calibrated NEC MultiSync monitors and uncalibrated laptops. We are running on Mac OS X.8x and above.
Designers are complaining about not being able to pick a color from the Swatch Library in AICS6 or AICC. InDesignCC does not seem to have the same issue.
View 1 Replies
View Related
Nov 24, 2013
I need to change the default text color to a pantone spot color.
View 5 Replies
View Related
May 8, 2013
Everytime i open the drawing the legend colors have either disappeared or all changed to one color.
View 3 Replies
View Related