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


ADVERTISEMENT

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 View Related

Illustrator Scripting :: How To Save DXF As AI File Using VBScript

Oct 9, 2013

I have a VBA script that opens a .DXF file in Illustrator, and want to save it as an AI file. How do I do this?

View 14 Replies View Related

Illustrator Scripting :: Save A File That Is Already Open In Same Directory With Different Name

Nov 7, 2013

I'm trying to create a script to save a file that is already open in the same directory with a different name.
 
Example: nome_0000_art to nome_0000_closed
 
I tried to create from another script that saves EPS but as I am new to the subject could not make it work
 
how do I perform the command saveas automatically without showing the dialog window by changing the file name?

View 7 Replies View Related

Illustrator Scripting :: Dynamic Save File Path

Jan 14, 2014

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
 
[Code] ......

View 1 Replies View Related

Illustrator Scripting :: Save File On Remote Location

Oct 8, 2012

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)

View 7 Replies View Related

Illustrator :: Setting Up Action To Save Files In CS4 - File Saving Without Extension

Sep 4, 2012

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.
 
this is what my Output looks like:

and my simple action:

View 2 Replies View Related

Illustrator :: When Record Save For Web Action - Export Artboard In 3 File Sizes

Oct 4, 2013

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.

View 2 Replies View Related

Illustrator Scripting :: Open Save File Dialog With Default Path

Oct 8, 2012

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.

View 2 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

Illustrator Scripting :: Importing Color To Swatch Library From Text File

May 19, 2010

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?

View 7 Replies View Related

Illustrator :: CS6 - Identify File Color Profile?

Feb 15, 2013

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.

View 3 Replies View Related

Illustrator Scripting :: Change Values In Action

Sep 13, 2012

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.

View 4 Replies View Related

Illustrator Scripting :: Execute Action From JavaScript In CS6

Jul 10, 2013

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?

View 2 Replies View Related

Illustrator Scripting :: How To Select 2 Paths With Action

Jul 17, 2013

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.

View 2 Replies View Related

Illustrator Scripting :: Action To Change Width Of Image?

Jun 8, 2012

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.

View 5 Replies View Related

Illustrator Scripting :: Attaching Action To A Button In JavaScript

Sep 9, 2013

I'm playing around with attaching an action to a button in javascript but I'm just not getting it
 
I've tried putting it into a function like so
 
function deleteSwatches () {
= app.doScript("Delete Unused Swatches", "Custom Art Actions");
}
 
Then calling the action with said function but it doesn't respond.

View 2 Replies View Related

Illustrator Scripting :: How To Rename Layer Like Filename (with Action)

Dec 20, 2012

rename a layer of illustrator like document file name? (with an action)

View 12 Replies View Related

Illustrator Scripting :: Can Execute Action From Command-line Using AI?

Oct 9, 2012

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)?

View 4 Replies View Related

Illustrator Scripting :: Automate Action Set - Selecting Raster Images

Mar 8, 2013

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.

View 2 Replies View Related

Illustrator Scripting :: How To Trigger Actions From Action Panel Using JavaScript

Jun 3, 2012

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.
 
Is this possible?

View 5 Replies View Related

Illustrator Scripting :: CS5 - Action Or Script To Move Selection To Specified Layer?

May 17, 2013

I have a piece of art on "Layer 1" that i need to shrink and duplicate to "Layer 2". The two layers are always named the same. I'm working in CS5.

View 6 Replies View Related

Illustrator :: How To Save Background Color With File

Nov 22, 2013

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?

View 6 Replies View Related

Illustrator Scripting :: Action To Batch Export Folder Of AI Files To Create 300dpi PNG

Oct 3, 2011

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.

View 4 Replies View Related

Photoshop :: Action To Save File Overwrites Existing File

Nov 18, 2012

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.

View 2 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

Photoshop :: Action File Save

May 11, 2012

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?

View 1 Replies View Related

Photoshop :: Save An Action To File

Feb 25, 2009

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.

View 1 Replies View Related

Photoshop :: Save A File In A Certain Format Through An Action?

Sep 16, 2005

way to save a file in a certain format through an action?

Like I want an image to be always saved in tiff when I run an action.

View 9 Replies View Related

Illustrator :: Cannot Save Fit To Selected Art To Action

Apr 5, 2012

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.

View 4 Replies View Related

Illustrator :: Using Action To Save A Copy

Jul 20, 2012

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.

View 1 Replies View Related







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