Illustrator Scripting :: Change File Path For Links In Document?

Apr 14, 2010

changing the file path for links in an Illustrator document?
 
For example, let's say my Illustrator document is stored at: /Volumes/Storage/Projects/Client/AAA001/designs/concept1.ai
 
and I have placed 2 linked visuals:
 
/Volumes/Storage/Projects/Client/AAA001/visuals/big_retouch.psd
/Volumes/Storage/Projects/Client/AAA001/visuals/flattened.jpg
  
When I open the .AI I noticed that the reference to the visuals is under a %DocumentFiles section:
%%DocumentFiles:/Volumes/Storage/Projects/Client/AAA001/visuals/retouc hed.psd
%%+/Volumes/Storage/Projects/Client/AAA001/visuals/flattened.jpg
 
I need to replace "/Volumes/Storage/Projects" with "/Volumes/Projects". (There are some more complex replacements I need, but let's start here.)

View 11 Replies


ADVERTISEMENT

Illustrator Scripting :: Biggest Path-item In A Document?

Sep 17, 2013

is there a way to determine the biggest item in a document using javascript?

View 4 Replies View Related

Illustrator Scripting :: Cycle Through All Path Items In Document And Convert To Outlines

Dec 28, 2012

Is it possible to script the menu item Object/Path/Outline Stroke?I need to cycle through all the Path items in the document and convert them to Outlines.

View 2 Replies View Related

Illustrator Scripting :: Change Active Layer Name Same As Document Name

Sep 30, 2013

I would like to make the active layer name the same as the document name.  I know very little about scripting.  I found this script:
 
var idoc = app.activeDocument;var ilayer = idoc.activeLayer;var filename = idoc.name;ilayer.name = filename;
 
It does almost what I need it to do. except that it also copies the ".ai" in to the layer name.  Is there some way to modify this script to have it exclude or delete the file extension?

View 4 Replies View Related

Illustrator Scripting :: Change Colour Of Objects Inside Of Document Using Applescipt?

Mar 26, 2013

I'm trying to use this command to change the colour of objects inside of a document using applescipt but i keep getting an error "adobe illustrator "can't get color"" the colour exists and is active on a document. I have read the manual on variables and i'm a little lost on what i'm doing wrong, heres what i've got so far:
 
tell application "Adobe Illustrator"
 
if color is "C=0 M=0 Y=0 K=90" then
set color to "C=0 M=0 Y=0 K=90"
end if
end tell
 
i understand this is quite basic but its all i have to start with at the moment

View 24 Replies View Related

Illustrator Scripting :: How To Change Colors Of Path Item

Nov 26, 2013

I'm trying to change the colors of a pathItem corresponding to the string value of several text fields in my document. I've been successful in changing the fill and stroke color of the pathItem, but I can not find any reference in the Illustrator Javascript Guide for accessing additional strokes and/or fills that have been applied to the object in the Appearance panel.

View 1 Replies View Related

Illustrator Scripting :: CS5 - Change Fill Color Of Selected Path Items

Apr 2, 2013

I'm trying to create a script in CS5 mac os10.6.8 that will change the fill color of selected pathItems. I need a simple script that will change a selected pathItem to cmyk values 2,3,15,0. I will then select this script and implement the action in a batch of 600 files.
 
I wish this process could be recorded as an action but when I record the action "add new swatch" I have to manually input the cmyk values, which will take forever for a batch of over 600 files.

View 15 Replies View Related

Illustrator Scripting :: Adding File Name And File Full Path To A Page

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

Illustrator Scripting :: Get Source Path Of AI File?

Sep 7, 2012

Have searched but i cant find a good way of retrieving the source path of the current .AI file. Is it possible?
 
IE: If i am working with a file in C:adobeIllustratoreautifulfile.ai i want a function that retrieve C:adobeIllustrator 
// Clint

View 6 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 :: 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 :: JavaScript To Place Image With Calculated Path And File Name?

Sep 21, 2011

Is there a way with JavaScript to place an image with a calculated path and file name?  I have 30+ artboards per document, each artboard named by product number.  The actual file name of the master AI file is also already established (meaning every document I use this new script on will have already been saved).
 
Here's the scenario I'm hoping to create in the context of the documents mentioned above:

Run a script to "Place" a linked image based on the following calculated path:
 
["S:SAPCurrent Images in SAPStock Schools"] + [current ai filename minus the .ai extension]+[a hyphen like this "-"]+[currently selected artboard name]+[".jpg"]
 
This image link can be placed on a new top layer called "Images" or if necessary on the currently selected layer.  Dimensions of the placed image should be a pre-determined size 8"x8".
 
Error if the ai document has not been saved yet.

View 11 Replies View Related

Illustrator :: Can Create Links Within A Document?

May 22, 2013

I'm putting together some design specs and I want to create a clickable table of contents that will navigate to a different section of the document. IE. artboard #27
 
From what I've seen thus far it looks like I can add links but only to websites and they are only clickable in PDF mode.
 
Is it possible at the very least to make my clickable TOC when converting my document to a PDF? and, is it possible to make it clickable even if it is in .ai format?

View 2 Replies View Related

Illustrator Scripting :: Relinking Broken Links With JSX

Aug 7, 2013

I have a series of folders and I have linked art and the files they are linked to all mixed up in these folders. My file structure is as such;

myFilesHH01000-01999HH01000-HH01099HH001001.PDF
and now I need to change the file structure to this;
myFilesHHHH01000-01999HH01000-HH01099HH001001.PDF
adding the folder HH breaks the links.

What is the best way to identify the broken link and change its path with JSX?

View 7 Replies View Related

Illustrator Scripting :: Find A Way To Get The Links And Link Statuses?

Jan 24, 2013

I'm trying to find a way to get the links and link statuses in Adobe Illustrator. It doesn't seem to be at all similar to InDesign DOM.
 
What I'd like to be able to do is check whether a file has a missing link. I have been able to trace it to a "placedItem" which is inherently a "pageItem". So is it possible to find the link status? Been going through the DOM for about a half hour now and still can't find it.
 
 app.documents[0].placedItems[0]  <--- How to get link status?

View 2 Replies View Related

Illustrator Scripting :: Change Folder Current To Location Of Script (JSX) File?

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

Illustrator Scripting :: Delete Document Using JSX?

Jan 8, 2013

I want to delete an Image File using JSX .
 
I explored the functions in File but there is nothing like Delete().

View 2 Replies View Related

Illustrator Scripting :: How To Export Properties From Document To XML

Dec 8, 2012

I'd like to export certain properties from an ai-document to XML. The XML will be post-processed using XSLT. Secretly, I'm hoping that I can invoke the Reflection-system (as mentioned brifely, I might add) in the ExtendedScript Toolkit CS6 Core JavaScript Classes.

How to get reflection working for JavaScript objects (both built-in and the ones I've created in code my self)? Are there any guides that are relevant in my case? (Try googling "illustrator script reflection" and you get a bunch of flip object scripts ...)

View 1 Replies View Related

Illustrator Scripting :: Copy Artboard (and Art) To Another Document

Jan 25, 2012

Is there a way to write a script to copy a selected/chosen artboard (and it's contents) to another opened document, placing it in exactly the same place on the global x/y coordinates?  I'm either unable to find this feature built in to Illustrator, or it's simply missing. 

View 35 Replies View Related

Illustrator Scripting :: How To Convert EPS To Word Document

Nov 28, 2013

I have around 300+ files in eps format but i need them to convert it to word format.
 
Any options availble.
 
I have tried the eps to pdf and convert the pdf to word, but this doesnt worked for me.

View 1 Replies View Related

Illustrator Scripting :: How To Convert AI Document Into HTML / CSS

May 10, 2013

I am writting in extended javascript to convert .ai document into HTML/CSS.  for Placed image item i want to wirte css data. but the url of image path i am getting from the  placedItem is  : '~/Desktop/AdobeIllustrator/home.jpg'  when the same path i am  using in my css like :
 
.imageParameter
{
background-image: url('~/Desktop/AdobeIllustrator/home.jpg');
}

but the browser is not able to locate the image.

View 2 Replies View Related

Illustrator Scripting :: Add Artboard To Existing Document?

Mar 2, 2014

What is the javascript to add a new artboard to an existing Illustrator document?

View 2 Replies View Related

Illustrator Scripting :: Listing All Fonts Used In A Document?

Jun 5, 2012

As I understand it, TextFonts is a collection of all fonts available to Illustraot.  Is there a collection of all fonts used in the open document?  Or would I have to step through every textFrame an create that list myself?

View 8 Replies View Related

Illustrator Scripting :: How To Lock Items In A Document

Nov 19, 2013

how to lock items in a document?, I saw lots of tips on how to know if the object is locked, but I did not find tips like locking them.

View 2 Replies View Related

Illustrator Scripting :: How To Delete All Elements Colored Red In A Document

Sep 27, 2012

Any success creating a script that delete elements in Illustrator by its colors?

For example, I want to delete all elements that is colored Red in a document regardless what layer or artboard thay are in.

View 3 Replies View Related

Illustrator Scripting :: Save Document On Network Location

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

Illustrator Scripting :: Replace All Parenthesis Text In Document?

May 16, 2013

I'm a designer and i know nothing about scripting. But actually i would like to remove a bunch of text. I am working on a map, and i need to get rid of all text in parenthesis (the parenthesis included in). I know there will be a faster and efficient way to do it by scripting, but i don't know how to get to that.

View 3 Replies View Related

Illustrator Scripting :: Rotate Whole Document Page In Vbscript

Apr 19, 2012

in an open PDF File  i press 'Ctrl+A' to select all Items in the document, then i choose Edit/Transform/rotate ... 90 degree.now i'd like to do the same with an vbscript.
 
the best thing i could find is:

rotate(90)
Sub rotate (degree)
Dim appRef, argument, element
Dim changePositions, changeFillPatterns, changeFillGradients, changeStrokePattern, rotateAbout
Set appRef = CreateObject("Illustrator.Application")

[code]....
 
not all, but all elements i am interested in are rotated - it would be better if really all elements would be rotated the elements are rotated around 'aiTransformDocumentOrigin' ... i would prefer if they are rotated around 'middle of document'.

View 3 Replies View Related

Illustrator Scripting :: Convert Layers In Document To Artboards?

Sep 24, 2013

Script which would convert the layers in a document to artboards? At present I have a lot of documents with a couple of hundred layers on each of them, but I've decided to change the way that I organise my workflow and started using artboards instead. I don't really have the time to spend moving them individually from a layer over on to an artboard as there are a lot.

View 1 Replies View Related

Illustrator Scripting :: How To Generate Overview Of Colors Used In Document

Sep 2, 2013

I need to generate an overview of the colors used in a document.
 
For that, I would like to cycle through several rectangles of which I know the exact size. The rectangles are filled with a color  from the swatch palette.
 
What I try to achieve is that the swatch name of the rectangle's fill color is written to a text field directly above the rectangle. But I could not find a possibility to 'extract' the fillcolor from a pageItem into a pastable string.

Is there a way to do this with Illustrator and Javascript?

View 1 Replies View Related

Illustrator Scripting :: Inverse All Gradients Within Document Using JavaScript?

Jul 26, 2013

I'm trying to inverse all gradients within a document using Javascript. I can't find the property to call to inverse them in any of the PDF's I have, and I'm having trouble calling gradients in general I can't even rename them at the moment.

View 3 Replies View Related







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