Illustrator Scripting :: How To Check Color Profile For Current Document

Oct 16, 2012

I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.
 
It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction.

View 11 Replies


ADVERTISEMENT

Illustrator Scripting :: Check If A Word / Phrase Exists In Document?

Aug 5, 2013

how would I go about to check if a textframe with specific content exists in a document and if it does then procede with a function?
 
if ("word" exists) { make a new layer}
 
I just need it to check if one instance of the word exist

View 8 Replies View Related

Illustrator Scripting :: Syntax To Check Pantone Color?

Aug 16, 2013

Syntax to check pantone color

eg (list.fillColor=="[CMYKColor]")

like that how to find pantone color and how to get the name of the pantone used

View 3 Replies View Related

Illustrator Scripting :: Create New Document With Profile And Multiple / Named Layers?

Mar 27, 2013

I can't figure out the proper commands to fill out and complete the script below. What I am trying to do is:
 
- Create a new document using one of the Profile presets (or have the New Document dialogue open so I could select the profile, size and bleed)
- Make 3 layers, each with a diferent name
- Create a rectangle the size of the artboard on the bottom layer, with a swatch stroke and no fill
- Create a rectangle the size of the bleed on the middle layer, with no stroke or fill
 
Like I said, I haven't gotten far at all. I've read through the basic scripting guides and I'm just not understanding all of the language needed to string things together.
  
tell application "Adobe Illustrator"
make new document
set topLayer to make new layer ¬
at beginning of document 1 with properties {name:"Vector"}
set bottomLayer to make new layer ¬
at end of document 1 with properties {name:"Through Cut"}
end tell

View 6 Replies View Related

Illustrator Scripting :: Apply Current Fill Color To Stroke Then Adjust That Stroke Color's Build?

Apr 9, 2013

I'm trying to figure out a way to automate a simple, yet repetative process I do countless times a day. Ideally, I'd like to tie it to a keystroke to speed up my workflow.
 
I work on line art and colorways for footwear, so the way I'm coloring these shapes and strokes break apart the different materials and pieces of the shoe.
 
While coloring line art, I work with Pantone spot colors as fills for closed path objects. I then have to manually apply that same color to the stroke, set the stroke to 0.5px weight, convert that spot stroke color to CMYK, and add 15% to the K value.
 
I found some code in an older post for applying the actively selected object's fill color to the stroke, but I'm having but I'm having trouble with the next step of figuring out how to take that spot stroke color and convert it to a CMYK build that I can then add 15% black to. Is this something that's even possible? I've spent about an hour playing with the script and have only had luck matching the fill color or turning the stroke white.

View 13 Replies View Related

Illustrator Scripting :: Select All Paths Of Specific Color In One Document

Jan 7, 2009

I'm on Illy CS2, windows xp.

I want to open a doc, run a script that selects all paths of a color, say 255,0,0 or 50,0,20,4 and changes that color to black or another color I specify and also changes the stroke. Is this possible? I can't see how i would do it?

View 6 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 :: Select Objects That Fill Color In Document

Oct 14, 2013

If i want select objects that same fill color in document, I can use 'select - same - Fill color' function in Illustrator.
 
It's so fast. below 1 second.
 
But, If i want make it in Javascript, I can't do it like fast.
  
for(i=0; i<activeDocument.pathItems.length; i++){...}
  
If document have 10,000 objects, above script can't finish in even 60 seconds.
 
How Illustrator can traversal fast?
 
Is there something other way?

View 2 Replies View Related

Illustrator Scripting :: How To Use Action Script To Save PDF File With Color Profile

Apr 16, 2013

I tried following action script code to save PDF file with color profile attached:
 
                   var saveOps: PDFSaveOptions  = new PDFSaveOptions();
                   saveOps.colorConversionID  = ColorConversion.COLORCONVERSIONTODEST;
           saveOps.colorDestinationID = ColorDestination.COLORDESTINATIONWORKINGCMYK;
           saveOps.colorProfileID = ColorProfile.INCLUDEDESTPROFILE;
                                       
           doc.saveAs(pdfFile, saveOps);
 
But got following errors: error an Illustrator error occurred: 1346458189 ('PARM').  What is the correct way to save PDF file with color profile?

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Check Current Plotter Name For Current Tab

Sep 3, 2013

Technique that can check the current plotter name for the current tab and assign it to a variable?  i.e. can it be assigned to a variable to check if if equals "myplotter1".  The next step  - is there a technique to change the plotter name to "myplotter2.pc3".

I have partially done the latter part of this in the past using the -plot command line to ASSIGN a  new plotter but I would really like to only run the routine if it really needs to.  

View 9 Replies View Related

Photoshop :: Check To See If Multi-page Document Is In Black And White Or Color Using CS5?

Jan 10, 2013

I am a Graphic Designer for a print shop and we just had a large document printed that looked to be in black and white but must have been in color somewhere (gray boxes) and used more clicks on the printer than we wanted. I'm wondering if there is a quick way to check a document like this in CS5 programs to see if it is truly in black and white or if there is something in there that is RGB or CMYK.

View 7 Replies View Related

Illustrator Scripting :: How To Check Resolution Of The Image

Jun 26, 2012

How to check the raster image resolution in illustrator through script?

View 15 Replies View Related

Illustrator Scripting :: How To Check For The Existence Of XML Files

Mar 8, 2013

I'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?

View 6 Replies View Related

Illustrator Scripting :: Missing Profile - Doc Does Not Have Embedded CMYK Profile

Apr 2, 2012

Each time I open a file in AI - CS3 I get the same message: "Missing Profile - The doc does not have an embedded CMYK profile". I looked in library>colorsync>profiles and sure enough they were gone? I downloaded new profiles from Adobe, installed them in library>colorsync>profiles - and still the same thing with each file I open. I dragged AI to the trash, re-installed AI from my disc repeated the process with the same results .

View 10 Replies View Related

GIMP :: Current Color Profile When Opening As Layers

Oct 6, 2011

I'm importing several hundred .png files to be played back as a gif and get this window popup several hundred times:

How do i go about disabling the message? it gets tedious "okaying" after just a few.

View 2 Replies View Related

Illustrator Scripting :: How To Center Current Selection To Artboard

Feb 17, 2014

how do I center my current selection to the artboard? just like hitting the "horizontal align-center" and "vertical align-center" buttons. I've been searching for the last two hours and before my head hits the keyboard.
 
What I'm struggling with: in my init function i create a new document and then copy all layers from the previous document step by step to the new document and then save it as SVG.
 
// Init
(function(){
          destination = Folder.selectDialog('Select folder for SVG files.', docPath);
          if (!destination){return;}
          holderDoc = app.documents.add();
          stepThroughAndExportLayers(docRef.layers);
}());
 
my problem is that holderDoc = app.documents.add(); always creates a document that is not the same size as my initial document where the layers get copied from.
 
so I want the exact same artboard size as in my initial document.I'm fine with either doing it as fixed values or taking directly the values of the inital doc. i tried this in the segment where I create the new document:
 
// Init
(function(){
  destination = Folder.selectDialog('Select folder for SVG files.', docPath);
  if (!destination){return;}
  holderDoc = app.documents.add();
  holderDoc.artboards[0].artboardRect = [0,0,128,128];
  stepThroughAndExportLayers(docRef.layers);
}());
 
and get this error message: "Error 1200: an Illustrator error occured: 1346458189 ('PARM')

Line: 83
-> holderDoc.artboards[0].artboardRect = [0,0,128,128];"
 
which from what I've read on the web means that illustrator doesnt know what document to pick. but i have called it directly. I do not want to fit the artboard to the images/layer. the artboard should always have a certain size. (for me 128px by 128px)
 
// edit: workaround
(function(){
          destination = Folder.selectDialog('Select folder for SVG files.', docPath);
          if (!destination){return;}
          var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveAr tboardIndex()];
          var ABRect = activeArtboard.artboardRect;
          holderDoc = app.documents.add();
          holderDoc.artboards.add(ABRect);
          holderDoc.artboards.remove(0);
          holderDoc.artboards.setActiveArtboardIndex(0);
          //stepThroughAndExportLayers(docRef.layers);
}());
 
i now added a new artboard to the new document with the same size as the artboard on the initial document.i remove the predefined artboard on the new doc and set the new artboard as active the artboard is now not centered into the window. which lets illustrator place my image with ctrl+c -> ctrl+v somewhere outside the artboard.
 
i now need to align my selection to the center of the artboard. but i cant find any reference on how to center a selection to the artboard.

View 7 Replies View Related

Lightroom :: Embedded Color Profile Not Match Current RGB Working Space

Jun 16, 2013

I installed LR5 from LR4 yesterday and each time I open an image in CS5 from my LR5, I get the following message:
 
The document "IMG_9082.CR2"has an embedded color profile that does not match the current RGB working space.
 
Embedded:  Adobe RGB (1998)
 
  Working  sRGB  IEC61966-2.1
 
What would you like to do?

-Use the embedded profiel (instead of the working space)
-Convert documents's colors to the working space
-Discard the embedded profile (don't color manage)
 
My camera's settings have it set with sRGB, LR4 and LR5 have sRGB and I have CS5 workspace as sRGB.  This did not happen before.
 
Is it possible that when LR5 updated the LR4 catalogue, it changed the profile of all my photos?  I don't know, maybe I've done something, but I can't see what as I don't remember changing anything.

View 1 Replies View Related

Illustrator SDK :: How To Make Duplicate Copy Of Current Document

Mar 11, 2011

How to make a duplicate copy of current document?

so that i can do the modification with duplicate document without changing the status of original document.

View 2 Replies View Related

Illustrator Scripting :: Change Folder Current To Location Of Script (JSX) File?

Jan 6, 2012

I'm trying to use some images in my ScriptUI dialog, but I want to use a "relative" path name, and I can't seem to get it to work.For example, this myScript.jsx works just fine, but as you can see, I'm using an "absolute" path name to transparencyGrid.jpg:
 
var w = new Window ("dialog");
var f = new File ('~/Desktop/transparencyGrid.jpg');
w.add ("image", undefined, f);
w.show ();
 
However, I want to be able to use a relative (to myScript.jsx) path to point at transparencyGrid.jpg, like this:
 
var w = new Window ("dialog");
var f = new File ('../../../transparencyGrid.jpg');
w.add ("image", undefined, f);
w.show ();
 
But, I can't seem to get this to work because relative paths seem to be relative to the current folder, Folder.current, not the location of the currently executing script.I say that because when I do this:
 
alert(Folder.current);
 
The only thing the alert message shows is a backslash (/), indicating to me that the current folder is the root of my OS, but I thought it would be the folder where myScript.jsx resides.
 
So, is there a way of setting Folder.current to the location of the actual script?

View 2 Replies View Related

Illustrator Scripting :: JavaScript To Send Selected TextFrame To Current Layer?

Feb 20, 2013

Is there a way to send a selected textFrame item to a layer using javascript?
 
I don't mind if it is send to current layer or some other way to accomplish the task.
 
(Using Adobe Illustrator CS4)

View 5 Replies View Related

Illustrator Scripting :: Delete Document Using JSX?

Jan 8, 2013

I want to delete an Image File using JSX .
 
I explored the functions in File but there is nothing like Delete().

View 2 Replies View Related

Photoshop :: The Document Architecture.jpg Has An Embedded Color Profile ..

Jul 14, 2004

I try and open any of my old images (or new ones for that matter) I get this dialog box:

The document "Architecture.jpg" has an embedded color profile that does not match the current RGB working space. The embedded profile will be used instead of the working space.

Embedded: sRGB IEC61966-2.1

Working: Adobe RGB (1998)

View 5 Replies View Related

Illustrator Scripting :: Create JS Script To Move Objects Away From Common Center Based Upon Their Current Position

Jan 17, 2014

I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
 
Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them. 
 
// Example failed code, nonworking concept
var docID = app.activeDocument;
var s0 = docID.selection[0];
pID = docID.pathItems;
var xn, yn;
var stepNum = 20;

[Code]....

View 13 Replies View Related

Illustrator Scripting :: How To Export Properties From Document To XML

Dec 8, 2012

I'd like to export certain properties from an ai-document to XML. The XML will be post-processed using XSLT. Secretly, I'm hoping that I can invoke the Reflection-system (as mentioned brifely, I might add) in the ExtendedScript Toolkit CS6 Core JavaScript Classes.

How to get reflection working for JavaScript objects (both built-in and the ones I've created in code my self)? Are there any guides that are relevant in my case? (Try googling "illustrator script reflection" and you get a bunch of flip object scripts ...)

View 1 Replies View Related

Illustrator Scripting :: Copy Artboard (and Art) To Another Document

Jan 25, 2012

Is there a way to write a script to copy a selected/chosen artboard (and it's contents) to another opened document, placing it in exactly the same place on the global x/y coordinates?  I'm either unable to find this feature built in to Illustrator, or it's simply missing. 

View 35 Replies View Related

Illustrator Scripting :: How To Convert EPS To Word Document

Nov 28, 2013

I have around 300+ files in eps format but i need them to convert it to word format.
 
Any options availble.
 
I have tried the eps to pdf and convert the pdf to word, but this doesnt worked for me.

View 1 Replies View Related

Illustrator Scripting :: How To Convert AI Document Into HTML / CSS

May 10, 2013

I am writting in extended javascript to convert .ai document into HTML/CSS.  for Placed image item i want to wirte css data. but the url of image path i am getting from the  placedItem is  : '~/Desktop/AdobeIllustrator/home.jpg'  when the same path i am  using in my css like :
 
.imageParameter
{
background-image: url('~/Desktop/AdobeIllustrator/home.jpg');
}

but the browser is not able to locate the image.

View 2 Replies View Related

Illustrator Scripting :: Add Artboard To Existing Document?

Mar 2, 2014

What is the javascript to add a new artboard to an existing Illustrator document?

View 2 Replies View Related

Illustrator Scripting :: Listing All Fonts Used In A Document?

Jun 5, 2012

As I understand it, TextFonts is a collection of all fonts available to Illustraot.  Is there a collection of all fonts used in the open document?  Or would I have to step through every textFrame an create that list myself?

View 8 Replies View Related

Illustrator Scripting :: How To Lock Items In A Document

Nov 19, 2013

how to lock items in a document?, I saw lots of tips on how to know if the object is locked, but I did not find tips like locking them.

View 2 Replies View Related

Photoshop :: Change Default Color Profile In New Image Document?

May 12, 2013

I've looked and looked, and even Googled. how to change the default color profile when you start a New image file? In CS5 mine defaults to sRGB (Under the Advanced drop down) but my CS6 is ProPhoto RGB which means I have to change it manually nearly every time I paste an image copied via right click in a web browser. 

View 8 Replies View Related







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