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
ADVERTISEMENT
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
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
View Related
Feb 5, 2011
If I right click on a symbol instance, I get a menu item, "Break link to symbol." How can I do that same thing in Javascript?
1) That is, how do I use Javascript to break the link between a SymbolItem and the Symbol it represents? (i.e. without deleting the Symbol?)
2) Once the link is broken, how do I locate the Layer that was created when the link was broken? That is, once the link is broken, it is no longer a SymbolItem; it becomes a Layer instead. How do I locate that Layer?
3) How do I convert the Layer to a GroupItem?
View 5 Replies
View Related
Dec 5, 2012
I've written a script with a ScriptUI interface, which other people will be using. I'd like to include a 'help' button in the interface, which ideally would connect to a web page with more details. (The alternative is to create the 'help' window in javascript, but the web page already exists and it would be a shame not to use it.)
From what I've read, other Creative Suite programs may be able to connect to the web with javascript, but apparently not Illustrator.
View 22 Replies
View Related
Sep 12, 2013
How to do it ?
View 4 Replies
View Related
Jan 24, 2014
I have a document with several artboards. In each artboard is a different linked image. Is there a way to add the linked filename to the bottom of each artboard?
View 10 Replies
View Related
Mar 20, 2012
trying to have an applescript place a PDF as an Illustrator Link at the PDF's Media Box using "make new placed item". The only result possible as far as I can tell is a link at the PDF's Art Box.
I've seached around and have seen others with the same issue, but no answers as to whether it is actually possible. As with most Applescript stuff, I am either way overthinking it or it is not possible directly.
Currently I have a workaround using an Applescript script controlling Acrobat to sidestep the problem by setting the Art and Crop box to Media box, then place as a link in Illustrator, but it is not a direct route into illustrator.
I have also noticed that in the "Adobe Illustrator CS5 Scripting Reference" that the "PDF options object properties" do not honor the PDF crop bounds (except for the default value of Media Box). Is this an inherent problem with Applescript/Illustrator and PDF crop boxes? Could it be that the options for Open PDF and Place PDF are crossed?
View 7 Replies
View Related
Jul 11, 2012
I want to get the "file.displayName" property of a RasterItem from a file where links are broken.the script :
myItem = app.activeDocument.selection[0];
myItem.file.displayName;
works fine if the RasterItem source file is where the link points at.In my case, the link points to the local drive of another computer, so the "file" property of the RasterItem doesn't exists !!!I don't understand why, because all the informations are in the Links pannel of illustrator.
View 5 Replies
View Related
Jan 21, 2014
I have been looking for a solution to automate a printing and ordering process. I have a design template with 2 pages both 8.5x11 in size. One page represents the front and other the back for double sided printing. I have 6 different images per sheet so in my links panel I have 12 total links, 2 of each. I was wondering if there is a script to update all the links with the same filename with other image? Currently I have to search through all the images and update each one.
I have 6 artboards dividing the 8.5x11 sheet proportionatly. Each artboard represents a different order. Is there a script to write the linked filename to the bottom corner of each artboard?
View 5 Replies
View Related
Jun 19, 2013
I have been using an AI template to produce a lot of art as SVGs. The source Illustrator file has a bottom art layer, and several layers above that (6) which have a small PNG image that is basically a simple gray button. The same PNG is shown as embedded 6 times and then saved out as an SVG with the options of Profile: SVG 1.1; Type: Convert to outline; Image Location: Embed; CSS Properties: Presentation Attributes; Decimal Places: 3; Encoding: Unicode (UTF-8) and Include XMP is checked.
Some of these resulting files have since stopped working, and upon opening, display the error "Could not find link "05AE065BE.png".
The file is not linked, and the requested file name is generated randomly. The file shows no gray button PNGs, just the empty sublayer that they are on.
I've gone round and round on how this is happening, and have only found information on file character limits and even file path character limits, and server character limits. The file name of the embedded PNG is 27 characters, and the crazy file path and file name totals 137 characters.
Why would an embedded file be causing a linking error and random renaming of the embedded file? And also, why is it only happening on some of the files and not all of them? They are built identically within minutes and batch processed!
View 2 Replies
View Related
Mar 26, 2013
Is it possible to use a JS script to find/replace artboard names? For example if I have artboards that are currently named 39 and 42...can I use a script to change the name of the art boards to 39E and 42C etc?
Also part of the script a simple find/replace of text on locked layers.
View 4 Replies
View Related
Apr 6, 2012
I'm trying to find a way to loop thru all items in an Illustrator document and get their stroke and fill color. Sometimes items are spots, sometimes documents are set to RGB or CMYK, etc, so swatches can be a mixture of things. Is there an easy way to get the swatch name for each item?
For example, I can check if an item is a spot, and get it's color like so:
var c = app.activeDocument.pageItems[0];
if (c.strokeColor.typename === 'SpotColor') {
var s = c.strokeColor.spot.name;
}
But if I try to get the name from an item colored 'Black' (which is set to Process Color, CMYK), then I'll need to do something else like:
var c = app.activeDocument.pageItems[0];
if (c.strokeColor.typename === 'CMYKColor') {
var s = c.strokeColor.name; // This returns undefined - not sure what I'm doing!!!
}
Is there an easier way to achieve this, other than getting the typename of each item, and then trying to figure out it's color name? I was hoping something like this would work:
var c = app.activeDocument.pageItems[0].strokeColor.name;
View 3 Replies
View Related
Apr 22, 2013
How can I easily find a character if its attribute is different from others? There might be some easier way than compare it one by one.
View 2 Replies
View Related
Sep 4, 2013
I have a few eps files in which month-year format is written like May-12, June-13 etc. I want to change May to Mai, June to Juin etc.
Virender
var myDoc = app.activeDocument;
for (i = 0; i < myDoc.textFrames.length; i++ )
{
[Code]....
View 4 Replies
View Related
Jul 4, 2012
I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
View 4 Replies
View Related
Mar 19, 2013
Are there any scripts to find and replace layer names?
There is an excellent script available for Photoshop which allows you to not only replace words in layer names, but also insert words as Prefixes, Suffixes and Sequential Numbers. The illustrator version of this script only allows sequential numbering: It doesn't offer find and replacing of words.
Ideally, it would be great if there was something that could do multiple find and replaces in one go:
(E.g.
You have layers like this Car, Dog, Bat
You enter: car(Option1), dog(Option2), Bat(Option3)
Your layers then become: Option1, Option2, Option3).
)
View 12 Replies
View Related
Nov 18, 2013
I have multiple documents using text as symbols. I need to change a ® 2013 to a ® 2014 within the symbols. Without having to go into each document and double click on the symbol or break the link, is there a way to do a batch find and replace that will search within symbols to change text?
View 2 Replies
View Related
Jul 5, 2011
How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Any sample.
View 5 Replies
View Related
Oct 15, 2012
Is it possible to find out how bright is an color? I need to find the darkest color in document's swatches. My solution would be to convert (script internally, without actually making any changes in document) swatches to grayscale, compare them and pick the darkest. But how to convert swatch defined in undefined mode (they might be in lab or cmyk) to grayscale?
I found in 'js scriping reference' a method "convertSampleColor", but I have no idea how to use it. Any examples?
View 2 Replies
View Related
Feb 18, 2013
I am searching for a simple automated Find and Replace script, the idea is that in Excel the Find and Replace with texts are located. The script finds the textblock in Illustrator and replaces it with the value from Excel "New number".
Example Illustrator:
Example Excel Find and Replace:
View 1 Replies
View Related
Jun 11, 2012
Is it possible to write an Illustrator (CS4) script that would find and replace 2 instances of text using the actual file name to supply the changing text?
Our current file naming system uses a Part Number, Catalog Number and Run Date. (example: 123456_ABCDEF_2014 JN)We are currently saving a master file as the new Part Number and simply doing 2 separate find and replace functions for the Catalog Number and Run Date. Unfortunately we have over 500 parts to change and thought we could narrow down the 1000 find and replace to just 500. Although this may not appear like such a time saver, the key factor would mean entering the changing data just once per file, minimizing errors and eliminating proof reading the actual file.
Here is what I have used for a simple find and replace script, but I cannot seem to find any information to connect the file name data.
[code]
var active_doc = app.activeDocument;
var search_string = /ABCDEF/gi; // g for global search, remove i to make a case sensitive search
var replace_string = "GHIJKL";
var text_frames = active_doc.textFrames;
var search_string2 = /1234 XX/gi; // g for global search, remove i to make a case sensitive search
var replace_string2 = "5678 YY";
[code]....
View 1 Replies
View Related
Apr 18, 2013
Does source like below work?
characterStyle.parent == theStory.textRanges[i]
One more questions is if there might be a CharacterAttribute who belongs no characterstyle? Can I iterate charaterstyles to know all the font, bold .. information for all teh textranges?
View 5 Replies
View Related
Jul 30, 2013
I just bought 2 software licenses (for Illustrator CS6 and Photoshop CS6), but I can't find on adobe website where to download Illustrator CS6 and Photoshop CS6, I just find CC versions, but my serial numbers don't work for CC versions.
View 2 Replies
View Related
Dec 18, 2012
I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Set appRef = CreateObject(strIllistratorVersion)
'Open the file and import the datasets
Set docRef = appRef.Open(strTemplate & "200-500.ai")
'docRef.Datasets.RemoveAll
docRef.Variables("Yearbook").Delete
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')"
If (appRef.Documents.Count > 0) Then
Set docRef = appRef.Documents(1)
[Code]....
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
It's simply not loading. What do I need to do to get it to load?
View 8 Replies
View Related
Apr 15, 2014
I'm reconstructing an old document originally developed with PageMaker. I've recreated a half dozen pages hopefully with more uniform techniques. The original line art for the pages was created in AutoCad and some were scans. To bring them into InDesign some of the art is now in psd format and some of the newer art is in Illustrator AI format.
I've noticed that the pages with photoshop art print pretty quickly (about 30 seconds). The ones with Illustrator art take much longer (about 1:30 seconds). They go through a flattening process.
I print these 50 page books on demand and that additional time would add about an hour.
I guess the question is whether this is normal and to be expected or not. If it is I'll likely turn everything into raster before going into InDesign. That, however, seems like quite a bit of extra work. Going from AutoCad to Illustrator (to add stroke) then to PhotoShop to change to raster and then into InDesign seems like a pretty convoluted work flow.
View 3 Replies
View Related
Nov 26, 2013
i have a valid product/serial number but have moved physical machines. i've uninstalled from the old one and just need to get an installation package to download to the new machine.i am looking for a link that doesn't automatically reroute me to the cc version download... already tried that and the serial number i have doesn't work in that install..
View 1 Replies
View Related
Sep 3, 2013
Maybe I am going blind, but I can't find the Behance share button or link (from File menu) in my Photoshop CC.
i can use it in Illustrator CC, which I download, installed and updated at the same time as my Photoshop CC. I have checked the CC updater and it tells me my software is up to date.
Did I accidently turn it off (is that even possible)? Is the button in the same place as in Illustrator (on the bottom left of the screen)?
View 5 Replies
View Related
Apr 14, 2014
If i used a text file or an image as a link in more than one indd file, is it possible to know in which and how many files indd this files is a link? if yes, how can i do?
View 6 Replies
View Related
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
Jul 27, 2005
Does anyone know how to find and replace text in the link target of a pdf file using Adobe Acrobat 6 Professional?
View 2 Replies
View Related