Illustrator Scripting :: Choose Folder Default Location
Oct 5, 2012
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.
View 20 Replies
ADVERTISEMENT
Jan 23, 2014
Is it possible to change the location of where illustrator looks for scripts, or is it possible to add a location?
View 9 Replies
View Related
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
Apr 30, 2013
Is there any way to make the catalog display the pictures by Folder Location, rather than by Thumbnail view, every time I reopen it?
View 4 Replies
View Related
Nov 8, 2013
I work with PDFs generated in AutoCAD.When opening these files in Illustrator, the default font is always set to Myriad Pro.
How can I substitute my desired font for Myriad when opening EXISTING files, short of copy/pasting into a new file? That workaround is just as time-consuming as resetting the font every time I work on a new document.Illustrator has to be referencing something when defaulting to this font. It seems unbelievable that this setting cannot be altered.
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
May 17, 2013
How do I get the location of horizontal and vertical guides?
I'm halfway through by using some calculations on geometric bounds and subtracting it from the document height but can't I just do something like
nextGuide =mydoc.guides[x].location;
Also, why does it seem that Indesign scripting has more access to properties and methods?
View 5 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
Feb 26, 2013
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)?
View 1 Replies
View Related
Mar 12, 2013
Since Lion or Mountain Lion, we have had an annoying problem where the last folder location is not remembered in Illustrator. For example when updating links on multiple files, would like for the folder location to return to the last one used, but this would go to some folder 3 levels higher/
URL....Also the software seems to not have bneen updated in a long time, adn don't wnat a solution that won't last. Am on 10.8.2.
View 11 Replies
View Related
Jun 13, 2013
It is supposed to change hyphens to en-dashes in a ai files in a folder. However, when I run it, it only works on one file. After it makes the change and closes the first file, it stops.
var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts;
sourceFolder = Folder.selectDialog;
if ( sourceFolder != null )
{
files = new Array();
fileType = "*.ai";
files = sourceFolder.getFiles( fileType );
if ( files.length > 0 )
[code]....
View 6 Replies
View Related
Mar 19, 2013
I have some +900 legacy pdf's that need to have a title and date change. The pdf's where generated in ArcMAP 10 so the text appears as individual letters. So I wrote a script that creates a knockout and adds the required text. I can get this to work for an individual file but I can't figure out is how to have the script perform it for all the pdf's in a folder.
Set appRef = CreateObject("Illustrator.Application")
Set docRef = appRef.Open("C:WorkCity_Wide_Zoning�_Spring_2013TestA001.pdf")
' *************************
'Knockout
[Code]....
View 4 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
Apr 10, 2012
How do I set a folder as a relative path to where the script is running?
is there any easy way like in unix, starting without / ?or for example
"~/Desktop/"
"/users/<login>/desktop/"
seems that path to me is the only way...
is there an easy way to change posix paths to applescript??
I have this code:
tell application "Finder" to set templateFile to (container of (path to me) as string) & "Graficas FINAL ADQAT.ai"
with this error: error "No se ha encontrado el archivo Macintosh HD:Users:Vibra:Desktop:Graficas FINAL ADQAT.ai." number -43 from "Macintosh HD:Users:Vibra:Desktop:Graficas FINAL ADQAT.ai"
the file is there how I change the filepath to be compatible with applescript?
View 3 Replies
View Related
Mar 4, 2012
How i can create DWG using .Net.
While creating DWG file, i have to choose one of the dwg template and location for created DWG file.
View 5 Replies
View Related
Aug 9, 2009
I'm despriately trying to figure out a way to display the lightroom secondary display on my monitor to the right of my main display. I'm working in Windows 7 RC which seems to have the same monitor properties as Vista. No matter what I do Lightroom will always choose the display to my left as secondary, I've even tried physically switching my cables for the monitors and it still figures out which display is on the left and displays it there. Is there any way to pick which display is secondary?
View 15 Replies
View Related
Aug 7, 2013
Is there a way to assign one of the default layer colors with javascript? like light blue, light red, or green.
View 3 Replies
View Related
Jul 27, 2013
When I open Elements 9 in Folder Location the images displayed are not those in the highlighted folder. Similarly if I select another folder I see another selection of images from elsewhere in the structure.
View 1 Replies
View Related
Dec 9, 2012
I'm new to Elements 10 and I'm having a hard time figuring things out but 1 thing in particular. I'm on a PC and use Windows 7.I already import a lot of pic's to Elements or so I thought.
When I'm in "Folder Location" and click on a folder it doesn't display any pictures and says "No files from this folder have been imported into Elements Organizer. To add any files, right click on the folder and select "Import to Organizer"
So I do as I'm told and then i get this error."Nothing was imported. The files or folders selected to import did not contain any supported file types or the files are already in this catalog."
View 2 Replies
View Related
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
May 28, 2013
I Would like to change the default Templates folder that opens when i click "New From Template". Is there a way of doing this?
View 2 Replies
View Related
Dec 19, 2011
How to make the following script for adding serial numbers apply to multiple files in a selected folder?
var docRef = app.activeDocument;
with (docRef) {
var docName = name.substring(0, name.lastIndexOf('.'));
var artRight = visibleBounds[2];
[Code] .....
View 6 Replies
View Related
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 1, 2012
I have several Illustrator JavaScripts that I've written with the ESTK. A lot of these scripts involve resizing the artboard or artwork to specific sizes. Instead of forcing the user to manually input the dimensions they want into text fields, I just stored a half-dozen or so "presets" in an array.
Then they can select one of the presets from a dropdownlist, or go ahead and input a custom size. These presets are the same for multiple "resize" scripts, so it would be nice to store those presets in a separate file (i.e. presets.jsx) that my resize scripts could reference, so when I need to add or change a preset, I could just go to that one shared file, and all the scripts would be updated.
Is it possible to do that? If it is, a quick example of how to load the variables from another file.
View 1 Replies
View Related
May 30, 2012
the whole box cant be widened...if i go to te edge i get arrows to widen the box but they don't work...i can't choose a destination folder..
View 1 Replies
View Related
Apr 20, 2012
Whenever I try to open a new blank file in it, it gives me an error message saying I don't have a "default template", and I needed to choose a file and save it as a "default template". So I did, but now, I'm stuck with that template - I can't choose a letter-sized blank page to work on because that choice is no longer on the list under "New". What the heck is going on? I just want a blank page to draw on, and now it's not available.
View 9 Replies
View Related
Jul 20, 2013
I moved the folder where all the brushes and stuff into the overall gimp folder. Originally the folder with the brushes and stuff was in Documents Settings, however now after I moved it. My brushes don't work. How do I make it so that gimp targets the new location of the folder?
View 2 Replies
View Related
Aug 4, 2012
Found one more problem with Save For Web in Photoshop CS6.
Example:
1. New Document
2. Choose - Save for web
3. In dialog window Photoshop CS6 offer to save in - os My Document Folder
4. Ok, every time I don't really need to save in os folders - I save files to my folders. So, change folder ...for example to disc D
5. Create another New document
6. Choose Save for web
7. And.... - Photoshop CS6 offer to save my file in os My Documents AGAIN !!!
So, in fact it's real uncomortable!!! ...if I save different files for web frequently ....I need every time change My Documents....it makes me nervous.......Here - compare with CS3: CS3 remember "old" folder location even at another session (for example - after reload os)
Is there any fix this problem?
p.s. Testing on:
OS - windows 7 64 bit
cs6 - 64 bit extended
cs3 - 64 bit extended
View 9 Replies
View Related
Aug 16, 2012
I just installed 2.8 and have downloaded the help files, but cannot figure out the destination folder/location for extracting them. I am using Windows Vista.
View 1 Replies
View Related
Mar 21, 2013
the location of the template folder or files. I'm not sure if it's (C:\Documents and Settings\Owner\.gimp-2.8\templates) which nothing is there. or if it's (C:\Program Files\GIMP 2\share\gimp\2.0) in which case I can't find anything there either...
I need to delete some files/templates.
View 5 Replies
View Related
Nov 25, 2013
I would like to know if it is possible by command to change file/folder location that are normally set up in the OPtions>Files tab.
I would like to know because everyone in the office uses a specific LISP routine on which i set some standard settings.
I would like to be able to change/add/delete file locations of the 'Tool Palettes File Location' and the 'Default Template File Name for QNEW'.
View 1 Replies
View Related