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)
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.
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?
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 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.
I have a network of 18 computers that I currently send Network rendering jobs to whilst on the same network whilst being in the same room as them.
I would like to be able to join the network from a remote location through broadband internet, through the router on that network and submit a job to the manager and access all the files on the network from the remote machine as if I was plugged into the ethernet hub on the network.
Any way to allow a user to choose a folder from a default location. I thought I had found the solution but it's not quite working as I wanted:
#target illustrator
//Example 1 var output_folder = Folder.selectDialog ('Choose PDF output folder.');
//Example 2 var myFolder=Folder(app.activeDocument.path).selectDlg("Choose PDF output folder:");
If I use the code in example 1 the choose folder dialog appears and the 'Open' button is available and when I press the button the location is chosen as expected. However if I use the code in example 2, although the choose window opens in the path of the active documents location the 'Open' button is not able to be pressed until I select a folder., which means that the chosen location is not correct. I should indicate that I'm running this code on a Mac.
Any way to have a choose folder dialog window specify a location and be able to select that.
Using 2011 on W7 64 bit machine. When I try to set the location for the "Autosave File Location" or the "Temp Dwg File Location", I get the attached error message. I've done everything I know to fix it to no avail. I am on my personal laptop, I am an admin will full control rights of course, I've made sure the folders are not read only...
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.
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); }
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.
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?
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.
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.
I'm using Creative Suite CS5 in Windows Pro 64, and would like to set a default location for files in Illustrator and Photoshop when I execute the File > Open or File > Save commands.
Yes, the program defaults to the location of the last file opened, but sometimes that file is gone, or I'm creating a new one from scratch, and the program looks for files in a distant place in my file structure.
Is it possible to set a default file location for opening and saving in Illustrator CS5 (and in Photoshop CS5)?
I'm working on building an action in Illustrator CS5 that will do the following..Delete the layer "original artwork"Select AllCreate OutlinesSave as PDF "content.pdf" to the current working folder with specific settings in the Save PDF prompt..Up to step 4 this is pretty simple, but so far when trying to record the saving step it insists on using the directory that I'm building the action in - not the relative one based on where the current file is opened. Also, unlike the 'Save For Web JPEG' default Illustrator action, the PDF saving step doesn't retain any of the specific settings within the action.
I added CS6 COM reference in my VB.NET application and after that I have the following basic object creation in order to convert a eps file to svg. But for some reason when I create this COM object it is launching the Adobe Illustrator application. Why it is doing like this? It’s a simple COM object why it is interacting with Illustrator Editor?
My problem is to display graphic arts in "read only mode". That means when I'm done developing graphics in my .eps file, I want to display this graphics to other user without giving him option to edit it or delete it.
I'm trying to accomplish this true Visual Studio 2005, C# .net
i install autodesk remote to try it out from home. when i went to my office to the actual work station i rebooted my machine and now im getting a popup box that says my menu file is write protected. i uninstalled the file, and rebooted my machine and im still getting this warning that my menu is write protected,. no other work station is getting this error, the menu file is a shared file running off a network and no other versions exists on my hard drive.
I have just upgraded from CS3. My workflow when preparing files for the printer is to print to postscript file, then use distiller to convert the file to pdf for sending.
CS3 retained the file location, so that each time I performed the same action, it went straight to the previous folder where the postscript file (for the current AI file) was created.
Now, in CS6, it takes me back to 'My Computer' (equivalent in Windows 7) every time... which is really, really frustrating to have to re-navigate back to the same server path every time I output the file. (Which I do a lot as I do final checks and proofing within acrobat, so need to perform this process frequently).
I've got an issue with Adobe CS3 illustrator not displaying the full UI when used via Microsoft Remote Applications (RDS Windows Server 2008 R2). When connect to the server via a normal RDP interface the connection UI is displayed correctly. The Other Adobe CS3 MC application work fine in either connection method.
I have logged a call with MS and we have tried a varierty of RDS Fixes however we do seem pointing to a illustrator issue over a RDS issue.