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
ADVERTISEMENT
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
Mar 24, 2012
I'm using Illustrator for work and I love it, I never needed scripts yet. Now I have couple houndred svgs coming in per day, I would like to have a script that opens every svg one by one in the selected directory and add them to a pdf as pages of the same size and than save it.
How many files I could put in 1 pdf this way?
I'm using Illustrator CS5 on Win7 x64.
View 7 Replies
View Related
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
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
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
Aug 22, 2012
When I open a PDF file I get the following warning:
The document contains PDF objects that have been reinterpreted.
- The font is missing
Can I somehow open the file without showing that error, or simply automate and click OK on that window? I am using C# with COM reference. See code below:
var iapp = new Illustrator.Application();
var idoc = iapp.Open(file, Illustrator.AiDocumentColorSpace.aiDocumentRGBColor, null);
View 2 Replies
View Related
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
Sep 18, 2013
var doc = app.activeDocument;
var destFolder = Folder ("~/Documents");
if (destFolder) {
var fileName = activeDocument.name;
var destFile = new File(destFolder + '/' + fileName);
[Code] .....
This code I created exports my current Ai document as a PSD with set options. It also names the new file what it is called in Ai.
How can I call the created file and open it directly in Photoshop? Keep in mind I would be working on multiple files, so file names would change every time I ran this Export Script.
I could call a specifically named file and open that, but that's not what I need this script to do. I just need it to open the newly created PSD file.
View 2 Replies
View Related
Sep 23, 2011
I am trying to use this code to take the flat pattern and save it to a specified directory ("X:Burn Files" ) but I can't get the path to work. I can save the file just fine but not where I would like it to go.
Public Sub WriteSheetMetalDWG()
' Get the active document. This assumes it is a part document.
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oCompDef As SheetMetalComponentDefinition
[code]...
View 1 Replies
View Related
Jul 15, 2013
How do I save an illustrator cc file to open in cs6? I get an error when I send the file to a colleague and they cant open it.It doesn't give me any options.
View 2 Replies
View Related
Oct 24, 2013
when i go to open or save a file in illustrator, the pop up box will only last 2 seconds? i just recently installed the new maverick osx but it was working fine yesterday.
View 1 Replies
View Related
Oct 17, 2013
I've downsaved the file as an ai file for CS6 in CS7, however when I go to open it in CS6 it forces me to open each artboard as a separate file. How can I save it so the file will open normally?
View 4 Replies
View Related
May 3, 2010
I am just trying to save a PDF from my illustrator file. However, when I go to Save as, and select PDF, no dialog box opens to allow me to set how I want the file outputted. IF I just hit enter, the file does save.. its just like the Dialog box is hidden or not appearing. The reason I need the dialog box is because I need to add bleeds to the PDF and my default save doesn't do that.
View 3 Replies
View Related
Aug 17, 2012
I am currently working on the schematics of a quite big document and I am using Illustrator. I work on the .ai version of the figures but I want to save them in a very quick way as pdf files with personal setting (super compression, no preview...). What I am doing now is that I have my .ai file open, and when I want to save a pdf version of it I go to "File" then "Save a copy" then "Type: pdf" and I enter a name, I click on "Save" and a window pops up with some options. Here, I select a personal preset and then click on "Save pdf" and I am happy with the final saved pdf.
The thing is that it is a quite long process when you have to do it several times per figure. I tried to automatized it through a script (or action) but the available options are quite limited (it is hard to make Illustrator understand that if the current file is myfig.ai, I want a myfig.pdf and that I want to save it in the working folder). Under "File", I also tried the "SaveDocsAsPdf" script but once again, I have to select the folder where I want to save the figure and so on. Maybe I missed something. Any efficient way to save my figures as pdf by clicking a the F9 key (for instance).
View 1 Replies
View Related
Oct 19, 2012
every time when I want to open a file, Illustrator keeps showing the same directory (for example HD Macintosh/workfolder).
Normally Illustrator would show the last directory I used. For that matter, Illustrator also does this when I want to save an Illustrator file. It's a bit annoying when I have several documents I want to save into the same directory or folder and I have to click to the right directory for every document I made, because normally Illustrator shows up the last directory I used.
I use Illustrator CS5.5 on an Imac running iOS 10.8.2.The second problem I have (with Illustrator as well as InDesign) is that after my iMac hasn't been used for a while and it goes to sleep, after waking up, both Illustrator and InDesign crashed. This problem doesn't occur every time, but every now and then.
View 8 Replies
View Related
Mar 1, 2011
I have autocad civil 3d 2008 in my pc. From last 2 days I got a different problem i.e. when I am selecting open / save command from File menu graphical file select explorer is not opening just message in the command window . Previously I used to select files using graphical file explorer.
View 6 Replies
View Related
Dec 11, 2012
I'm having a problem throught CS6 with the Open, Save, or Save As dialog boxes not opening for a period of time after clicking on the desired functions. It can take over a minute just to get the Open dialog box up to browse for a file. Eventually, the dialog boxes open, but during the time that it's trying to open, the program is unresponsive. It is happening with all of my CS6 programs. I have unistalled and reinstalled with no fix. The programs are updated.
View 4 Replies
View Related
Jul 9, 2013
When I save the file as EPS , I want to enable all the options in EPS Options Pallet. I have enabled all options except setting high resolution in Transparency option.
View 2 Replies
View Related
Oct 26, 2013
I'm trying to make an action that would perform some operations on images and save them to two different folders (as PDF and as JPG). Here's what my action looks like:
I make a droplet out of this action, and run it on a directory with a bunch of jpg files. However, all files are saved the same two locations: "archivepages_c.pdf" and "archivejpeg600pages_c.jpg".
View 2 Replies
View Related
Jun 27, 2013
I have the student version of AutoCAD 2012 on an HP laptop with Windows 7 Home Premium OS. I originally installed AutoCAD in June of 2012. It worked fine for 9 or 10 months but now whenever I select File/Open, File/Save, or File/Save As, AutoCAD stops responding and the spinning blue donut appears. AutoCAD never comes back and I have to close it from Task Manager. I uninstalled AutoCAD and reinstalled it, and the process went smoothly. However I still have exactly the same problem with the File operations. I apply Windows updates, but other than that have not made any changes to the software on the laptop. AutoCAD works fine for everything except the File operations. I am able to save with CTL/S and am able to open AutoCAD files from File Manager.
View 3 Replies
View Related
Sep 19, 2012
I am working on a plugin application, in that saving Image files on a specific location by using JSX file.I have done with that but it works only with local drive.I want to save that file on my Network Share by using JSX.
View 10 Replies
View Related
Mar 13, 2013
I recently found the following jsx script, which saves a multi-layered IL file into 1-layer-per-file with PNG format.
This file is very useful, but i'm currently working on a project that requires the files to be saved into SVG format.
Is there anyway to edit this script to save the files as SVG instead of PNG?
// *** Export Layers as PNG files (in multiple resolutions) ***
//
// Version: 1.0 (29 Aug 2012)
// Copyright Arcticmill 2012
// www.arcticmill.com
// Developed by: Johan Otterud
//
// This script will export all layers that have a name starting with "#", or "%" into a subfolder of the current .ai document.
// These options can be configured below:
// *** Config options ***
var subFolderName = "Export";
[Code]...
Remember that you must add a "" + exportLayersStartingWith + "" (when exporting the layer cropped to it's bound) or "" + exportLayersWithArtboardClippingStartingWith + "" (when layer should be clipped to artboard) to the beginning of the layer name. Also make sure that they layers you want to export are not locked or hidden.");
} else {
// Show a completed message
alert(layersToExportCount + " layer(s) was successfully exported to:
" + exportDirectoryPath);
}
[Code]....
View 4 Replies
View Related
Sep 12, 2012
So I'm using a script that I wrote to bring in files that were converted from CorelDraw to EPS (this is the best conversion process to preserve text and drawing assets). Basically the script takes the art in the EPS, groups it, places a rectangular border around the art and centers them. We do this so that they come into InDesign correctly sized. The problem is, it used to be 100% automated, just about, however now the saveas action command will not remember that "Save as PDF Compatible" needs to be set to true. When I do a saveas command, it's check by default, but when the saveas command is batched, it does NOT do it that way. When I try to bring batched AIs into InDesign, it's text that says it was not saved as PDF Compatible. Am I going to have to script a save function to get control of the saveas settings? I don't understand why PDF compatible is checked by default, yet batching saveas saves as if it unchecked it.
View 5 Replies
View Related
Jul 10, 2012
I have created this script for selecting open paths in illustrator cs6 as the graffix plugin is not working under CS6.
Just save the following text in /Applications/Adobe Illustrator CS6/Presets/en_US/Scripts/Select Open Paths.js
if (documents.length > 0 && activeDocument.pathItems.length > 0){
var allPaths = activeDocument.pathItems;
var allPathsCount = allPaths.length;
var openPathsAreLocked = false;
[Code] ........
View 4 Replies
View Related
Jul 19, 2012
Is it possible to save illustrator XMP thumbnail previews by artboard? It seems like Illustrator saves a single thumbnail with all art regardless of the number of artboards.
If there is a property that can be set to save multiple thumbnails to the XMP packet by artboard when saving to a native Illustrator file?
View 3 Replies
View Related
Oct 14, 2013
Is there any chance to assign values to an artboard?
I've experimented with “tags”, but they only work for pageItems. (if the item which includes the stored data is deleted, the data is also deleted)
It is simple data like v1=true, v2=false, … I want to assign. And it needs to be saved within the illustrator document.
View 4 Replies
View Related
Mar 18, 2014
i would like to live trace (vectoriser) a pdf drawing but i can't open the dialog box live trace(vectorisation de l'image) on version 17,1.
View 1 Replies
View Related
Jun 1, 2012
I'm batch exporting JPGs of AI files in CS5, but many of the files are as old as AI10, so I'm getting the "Convert to Artboard" dialog box. I've set open options (below), but they seem to just pre-populate the checkboxes in the dialog. Any way to do this without user interaction? userInteractionLevel doesn't seem to apply here)
var optRef = new OpenOptions();
optRef.updateLegacyText = true;
optRef.convertCropAreaToArboard = false;
optRef.preserveLegacyArtboard = true;
optRef.createArtboardWithArtworkBoundingBox = false;
View 2 Replies
View Related
Jun 21, 2012
if there is a way to open any menu item by script (Javascript) in illustrator CS5/5.1? perhaps something like this:
"app.menuActions.itemByID(0123).invoke()".
I looked at the scripting reference, but i didn't found it.
View 4 Replies
View Related
Mar 28, 2012
I'm new to scripting What I want to do and don't know how to go about it is to run a script that collects the saved file name and the full path where the file is saved on the network and displays it on my document.
View 2 Replies
View Related