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.
So I deal with a lot of files each day that need to be saved according to their lead code, meaning that there is a folder that holds thousands of sub folders that have the same name as this lead code on a server.
So since I have the lead code in the file name I'm trying to use that in conjunction with the file path to tell illustrator where to save it with Javascript. Also the idea of a dynamic save path is useful.
Here's what I've got so far, it's not working yet but I feel like I'm close.
/*///////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// Dynamic Save Path//////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////*/ #target illustrator
I want to save Current open Document on remote location (on server).
I am able to save it on my local machine(the machine i am presently working on).
Now I want to save it on some remote server.
I am using following code for that:
var doc=app.activeDocument(); var aiSaveOptions1=new IllustratorSaveOptions(); var aiFile1 = File( '/osn-pc-16/adobe/1/Original.ai' ); doc.saveAs(aiFile1,aiSaveOptions1)
I'm trying to set up an action to save a batch of files I creating using the variables tool (as detailed in this video: [URL]), I'll go into the Actions window, and record myself saving the current file in .Ai format, and then stop recording. Seems pretty simple, but when I set that action to run a batch on my dataset it saves all the files without an extension. Am I missing another step where I set the file format that the action is supposed to save with? I'm confused. I've tried this using a few different file formats and they all come up the same.
When I record a save for web action that exports my artboard in 3 file sizes. 100%, 200% and 400% it works for the first few files.
Then suddenly after a while the first export changes its width and height from 100% to 111%, but not just 111% width and height equally. No it pulls it out of proportion too.
When I manually enter 100% again it all pops back to the correct aspect ration.The 200% and 400% still behave as expected.
If I rerecord it it starts working again. But that defeats the purpose.
I want to open a "Save File Dialog " with some default path.Like when user run that script I want to open a "Save As" dialog box with default path "/Volumes/<shared name>/<folder name>/.. ."I am using File.SaveDialog(prompt, filter);
but it doesn't open to the location by default that I want to open.
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 .
I have a large list of custom colors in Excel that has the color name and CMYK breakdown of each color. I'm looking for a way to import this information to create a custom Color Swatch Library. That will have the name of the color and the CMYK breakdown. So that I can easily use in Illustrator and Photoshop. Is there any way or application in doing this with out manually entering the information and creating a new library?
I cannot seem to find where to ID an Illustrator (AI) file's assigned color profile (CS6). I looked in Bridge's Metadata panel, the File Info inside Illustrator, but don't see a color profile anywhere. I can bring up the "assign profile" dialog but it doesn't reveal what the CURRENT color profile is.
I frequently record Illustrator Actions. My actions are quite long, but they all involve three common steps:
-Assigning Notes to shapes -Assigning Swatches to shapes -Selecting shapes that have a specific notes
I often need to re-record my actions to repeat all the steps, but to change the notes/swatches that are selected/assigned during the action.
Illustrator has a re-record command. This command is great for changing the value of the note in number 3 of my list. However, it does not work for items 1 & 2 in my list. For these items I have to delete the old step in the action and then record a new step with the new swatch/note.
I know macros in Microsoft Office have an editor which allow you to change values in actions. Is there anything similar for Illustrator actions?You can save an Illustrator action and open it in Text Edit. However, all the attribute/swatch values are saved as weird strings, so I don't know how to change them.
I've seen on this forum a lot people saying that in CS6 you can now call an action from JavaScript. However, I haven't been able to find what the syntax is to do that in the reference or the guide. Can you actually do this now with Javascript?
I need to create an action. A simple one. The idea: One path is selected, a user runs the action, it makes a copy of that path, moves the copy, select both the path and its copy and makes a blend.
I tried to record that action, but Illustrator does not record the paths selection/selecting.
Even a simplier task: How, in general, having one path selected, select an item/path above or below it? And how to select them both?
I can make a script for that, but the requirement is to keep it as simple as possible: have an Action only without any scripts, if possible.
I created an action to change the width of an image. I execute the action using DoScript javascript method.
The first action Obj1 will select the whole image and second action Obj2 will open the transform panel and change the width of the image.
app.Open("D:LWW_Castoff45991_09_03.eps") app.DoScript("Obj1", "LWW") While (app.ActionIsRunning) Thread.Sleep(500)
[Code]...
In the above code, the second action 'Obj2' is not getting executed. Both the actions are getting executed individually. Let me know the problem and how to execute both the actions.
I need to do a form of automation, but wanting to execute this from another process (self-made application). Adobe Photoshop has this mechanism called "Droplets" that are executable based upon Actions defined in Photoshop (as far as I can understand). Is it possible to let AI do some work for you from an external application as with Photoshop (assuming you are able to execute the executable once it has been created)?
I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)
I'm using cs5 on a mac. As far as format goes I have hundreds of eps files that all have at least one raster bitmap tif which was imported as a linked file and then grouped with vector art. So I will like to run a batch script command that will select only that bitmap raster image (because I want to maintain the present vector art in the file) and convert that bitmap tif to vector- and save the file which will hopfully be in vector format.
Is it possible to trigger actions from the actions panel using javascript? I see that you can do this with AppleScript but I've written everyting so far in javascript and don't know AppleScript, though could learn it if I need to.
I'm writing a script that creates a lot of complex graphic files and have all the prototypes done except for wanting to change the color of a few of the points in a mesh object. Apparently this can't be done in javascript, so I was hoping to mid point in the script, trigger an action from the panel to edit the mesh, then let the script carry on its way.
I am operating on a Mac Air Book with the new Adobe Creative Cloud. I am new to Illustartor, so do not know how to use it well. I saved my document as a pdf, however, in the preview, it does not have the background color, but is jjust plain white. How can I save my document so that the color will show onto the pdf?
I created an Action to batch export a folder of .ai files to create 300dpi .png's of the .ai file's artboard. I did this by simply recording "Export...as png" with my desired settings then Batch running the Action on desired folder of .ai files. The files were successfully exported, the trouble is that the exported files lack a .png file extension. My intent is to take these PNG files and merge them into a single PDF using Acrobat Pro. Unfortunatly, without the .PNG extension, Acrobat Pro does not recognize the file types and does not let me use the Combine Files feature on them. Going back and manually adding a .png at the end of the exported files defeats the time-saving purpose of Batch Processing all together. Is there something I am missing or doing incorrectly? I have included screenshots of 1) My Batch Action settings 2) folders showing files without .png extension and 3) visual of what I see when I am trying to combine PNGs into a PDF.
I did a search around, and did not find the answer. Basically I have attempted to create an action in Photoshop CS6 which will save a file in the tiff format after i crop the image. I want the file name to be the name of the image (which is supposed to change depending on name of the image) like this:
1280x720_MGXXX.tiff, where, in my case the XXX represents DIFFERENT NUMBERS.
I want to apply the action to one image at a time. Each image has a different number (name). I record the action, add the 1280x720 text to the image name in the Save dialog. I am saving the image in a different folder from the source file. The source file name is _MGXXXX.tiff (again XXXX is a number like 2220...).
When I run the action on a file, say "_MG2221.tiff" it adds the 1280x720, and saves the file. When I apply the action on the next file (_MG2222.tif), the action overwrites the existing file, 1280x720_MG2221.tif, with the image. The action always uses the name I entered in the Save dialog!! I think I was able to do this in CS4 and CS5.
I want to be able to open a file, crop and adjust it, and then save in a diff location with 1280x720 pretended to the file name.
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
Working from Lightroom in PS - trying to record action to simply flatten layers and File Save back to Lightroom. PS records specific file path of original image used when action was recorded. Is there a way to eliminate this specific path?
I've got Photoshop CS4 and have created an action. However, for the life of me, I can't figure out how to save the action to a file so I can share it with others. The action converts a PSD to JPG and exports it for the web. How do you save an action so you can share it? I don't want to share all of my actions -- just this one.
I deisgn large numbers symbols in emf format and then batch convert these to svg files. I have over 22,000 images at the moment, so being able to automatically batchnconvert is vital.
Currently I to use CS3 to batch with no problems. In CS4 when you open the emf the artboard is the default document size, not the artwork size. So there is a lot of extra white space in the batched svg.
I have just downloaded a trial of CS5 to see if this is now possible as I hate being stuck on an old version. CS5 has the option to fit the artboard to the selected art (object/artboard/fit to selected art) but you cannot seem to save this to an action list.
The actions I want to include are 'open' 'select all' 'fit to selected art' 'save as svg' 'close' . But the artboad step isn't saved.
So normally when I'm drawing I always save a copy of my work to my external. Sometimes I'm paranoid and want to save one to my dropbox folder as well. So I made an action to save a copy to both places but it always names the file with whatever filename I used to set the action. I didn't rename or anything.