Illustrator Scripting :: Get Names Of Placed Images Into Text File For Database?
Jan 7, 2011
I know nothing about scripting in Illustrator, but am willing and interested to give it a try if this sounds doable. All we want are the names--just a simple list of the names, such as
7009 LL.eps
Rsb shadow design.psd
3_Pt_STA_475_P3.tif
of placed images (in our Illustrator CS5 art) into text that we can either import (from a tab- or comma-delimited text file) or paste into our Filemaker database.
Right now everyone is RETYPING the names of all placed images into the database, with consequent mistakes, missed images, etc. Then when we search our database to find which art uses a certain image...results are not to be trusted.
(If we could cut/paste from either the Links palette or Document Info, that'd be fine... but nope. Not in Illustrator, although we were thrilled to see InDesign CS5 has "Copy Info For Selected Links", which is VERY useful.) In Illustrator, we can export Document Info to a text file, but artists seem to find that long document too unwieldy, and they revert to typing the names, especially if they only have a couple of placed images... and then we're back to error-laden data no matter how careful they try to be.
Is such a script even possible? If so, where/how might I start? We're on iMacs with the Adobe CS5 suite (and Filemaker 11, if that matters).
View 13 Replies
ADVERTISEMENT
Dec 2, 2013
I have an Illustrator document with ~100 artboards, each artboard named by me. Each artboard has one textbox in it. Is there a way to take whatever name I assign to the artboard and print it into the text box inside that artboard? So in the end I would be able to see the name associated with each artboard on the artboard itself. Ideally I could run the script once (i.e. "turn it on"), have it populate all the text boxes with the artboard names, and then have it dynamically update the textboxes when I change an artboard name regardless of whether the file has been closed and opened since I originally ran the script.
View 26 Replies
View Related
Dec 13, 2012
I'm using a Javascript that will export as JPG a series of images from an AI file (that part is working fine), then rename them (that part isn't working). Writing and troubleshooting with Extendscript.
Trying to eliminate as many possible places to go wrong, I came up with the following:
myfile = new File; myfile = myfile.openDlg();
var newName = "NEW.ai";
myfile.rename(newName);
When run targeting Illustrator, it does nothing.
When run targeting ExtendScript, for some reason this blasts the file into oblivion, never to be found again.
View 3 Replies
View Related
Oct 26, 2012
A client wants to modify vector drawings automatically via database, preferably Microsoft Sharepoint Server running SQL. The modifications could be as simple as changing the color of a flag or overlay or as complicated as changing object dimensions and appearance.
I'm thinking SVG, but is there a more efficient method, something that can modify Illustrator files directly?
View 1 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
Feb 17, 2012
How to select objects by their group names?
I'm working with imported graphics, and the objects appear in the AI layer hierarchy grouped and named according to their object types in the native program (see the attached image). The problem lies with the annotation objects: they are made of different parts for which different graphic styles are needed; however, they all come in one layer and are difficult to access for global operations. I need to do different things with the different object types (delete the POINT's, move the LINE's and LWPOLYLINE's to different layers, etc...). The option of selecting objects individually is ok for small data sets, but you can imagine this becomes untenable in a hurry.
Two possible solutions I've considered:
(1) change the output parameters in the source program such that the objects come into illustrator with different graphics allowing them to be accessed through the "Select same ..." tools; it would work, but is problematic for the source program
(2) print the annotation graphics with their desired graphic appearance to pdf rather than importing the source file directly in AI, then open in AI to render the remaining graphics; again, this works but introduces inefficiency in the process. Also, the print process tends to explode closed paths requiring more inefficient path tinkering in AI.
I would like to tell AI to select all objects named "POINT" or "LINE" etc... but have found nothing in the documentation or forums on whether this is possible.
View 1 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
May 25, 2013
i'm trying to get a list of all the scriptfolder names.
This will solve path issues with other language versions of illustrator.
My script for now:
scriptfolder = {
en: "Scripts",
nl: "Scripts",
de: "Skripten"
};
var imageiconprinter = File(app.path+'/Presets.localized/' + app.locale + '/'+localize(scriptfolder)+'/idatabase/Images/Infopanel_heinerich/hei nerichinfopanelprinter.png');
I've defined a country like de: which is german and put the correct foldername behind it.
I would love to have a list of all countrys.
if you don't have a list just fill in the foldername and countryname of your country.
View 1 Replies
View Related
Mar 7, 2014
I'm looking to create a script to batch rename a number of artboards.
- I have 100 named layers.
- I have 100 artboards.
- I would like to rename the artboards to match the layer names.
- The layers are organized in the same descending orderas the artboards (ignoring the actual artboard names*).
- The topmost artboard (1 in the list) would be renamed "newspaper", the second artboard would be renamed "typewriter", the third artboard would be renamed "books", etc.
*in the example below the artboard named "Artboard 7" is actually the 6th artboard in list.
View 5 Replies
View Related
Jan 22, 2014
I am using this script to find and replace words in layers. (The script only targets particualr words, rather than the whole layer name).
I would like to make it so it targets selected layers only.
I have found this script which loops through selected layers only, but I am not sure how to add the find and replace layer name functioality.
View 7 Replies
View Related
Jul 6, 2013
how to place an image into illustrator via scripting with javascript, however I am having difficulties with text files. My code is:
var myDoc = app.activeDocument;
var Layer1 = myDoc.layers[0];
function getTextFile() {
return File.openDialog('Please select the text file to be imported:', undefined, undefined);
}
var myTextfile = getTextFile();
var myPlacedFile = Layer1.placedItems.add();
myPlacedFile.file = myTextfile;
But when I select a text file, it says it is an unsupported format. I'm assuming it has something to do with the extra options that come with importing a text document, specific for .txt and .doc for example.
For what it's worth I was working on an alternate method by read() ing in the contents of the .txt file and setting them equal to the contents of a textFrame, however it imported the text without carriage returns/newlines and I haven't been able to result that issue.
View 3 Replies
View Related
Oct 17, 2013
I'm looking for a way to import text from a .txt file but I'm totally lost.
View 2 Replies
View Related
Feb 23, 2012
I'm trying to read a text file into a textFrame. It reads in but is not including linefeeds so it's just one big long line of text. I'm using the following code to read the file. I attempted to insert a character after each readln() but that didn't work. I also tried creating a variable that the readln() was stuffed into before setting the textFrame.contents to the variable, but that didn't work either. I'm stumped.
while (! notesDoc.eof) {
noteTextRef.contents += notesDoc.readln();}
View 2 Replies
View Related
May 19, 2010
I have a large list of custom colors in Excel that has the color name and CMYK breakdown of each color. I'm looking for a way to import this information to create a custom Color Swatch Library. That will have the name of the color and the CMYK breakdown. So that I can easily use in Illustrator and Photoshop. Is there any way or application in doing this with out manually entering the information and creating a new library?
View 7 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Nov 15, 2012
What I'm trying to do is create images (PNG) that are populated with text values and images from a database. Something I could best describe as being like a mail merge. Can I write a Gimp script to do this? Let me give you some examples that demonstrate of what I want to do:
1 - Create randomly generated Lolcat images where I pull random cat images from a database and random funny text imposed in a layer on top of the cat image
2 - Create address labels where I pull names and address from a database and impose them on top of an image of the state I'm shipping it to.
3 - Create iconography for an e-commerce website that pulls from the product catalog to display the image with text of the category, product name, and size on top if it.
View 2 Replies
View Related
Dec 18, 2011
I accidentally included a file rename when I just imported a batch of several hundred pictures. I violated a rule that I teach my own Lightroom students, and that is to look carefully at the import panel choices before proceeding.
How can I correct this so that the files are named as they originally were? I know how to easily fix the filenames in Windows (using a tool called BulkRename, for example), but then I'd have to "find" each image one-by-one and correctly point to the renamed version. I tried selecting all the images and then using F2 to rename, but none of the templates allow deleting a portion of the filename.
P.S. Here is an example of what I mean:
ON CARD:
IMG_0001.NEF
...
IMG_0300.NEF
WHAT I RENAMED TO ACCIDENTALLY:
IMG_0001 {shot by John Doe}.NEF
...
IMG_0300 {shot by John Doe}.NEF
View 10 Replies
View Related
Mar 30, 2014
Is it possible to watermark my images with their filenames in Lightroom 5?
View 2 Replies
View Related
Dec 18, 2012
After taking a large batch of pictures, I want to place them in a folder and rapidly view the full images one at a time to select which to keep and which to discard. IN PE-8 how can I display two panes - one pane containing the image file names contained in a folder and the other pane which displays the image of the file name selected? Using the arrow keys, I want to move through image file names one at a time while displaying the image associated with the file name in the other pane.
View 1 Replies
View Related
Oct 15, 2013
In InDesign I am able to assign a variable showing that page.
Example = Page numbers in a book.
Is there a way to do this in Illustrator?
Example = Panels for a structure. Labeling the panel with the artboard name.
For now I am doing this manually. I would LOVE to speed the process up.
DETAILS: The artboard names will exist on the artboard itself when printed (very tiny, in an area hidden by metal posts, for ease of assembly at a construction site). I also need the artboard name to show up outside the artboard in a slug area (much larger for easy viewing in the file).
I'd like to just Change the name of a duplicated artboard, and have those pieces of text change themselves, rather then me typing it in two places for every artboard... I can have almost 100 artboards in one file on the structures I work with.
View 18 Replies
View Related
Feb 28, 2013
I would like to learn how to create a print design for college hoodies. I get asked all the time but it takes me a very long time to do it. I am sure there is a quicker way in illustrator.
I want to create a design like this image. I am using Illustrator CS 5.1 right now.
View 4 Replies
View Related
Mar 1, 2012
I need to add images in multiple artboards (each image in different artboards)
Initially i added an artboard and placed the image
Dim illus_doc As Illustrator.Document
View 4 Replies
View Related
Jan 3, 2013
ESTK for AI CS6 is already known to create problems (e.g. URL....).It’s possible that, in dialogs created with ScriptUI, AI CS6 also fails to display images with transparency properly. On my (Mac) system at least, such images appear with an aliased edge.
If this is true it’s doubly unfortunate, since with CS6 Adobe chose to make AI’s background interface colour adjustable—which makes interface images with transparency something of a requirement.
One workaround, which sadly negates the whole business of variable interface background colour, is to create dialog images with a background colour instead of transparency, and then force the dialog to display with the same background colour. For this technique we’re indebted again to Peter Kahrel’s invaluable ScriptUI for Dummies (URL...). Page 69 of that publication shows how to do this—for example:
win.graphics.backgroundColor = win.graphics.newBrush(win.graphics.BrushType.SOLID_COLOR,[0.5,0.5,0.7 5]);
The process is, to say the least, quirky: and, as Peter mentions, poorly documented by Adobe. But I hope it may be useful to others trying to use ScriptUI. The more I see of AI CS6 the more I like CS4! I develop scripts for CS6 using ESTK for CS4?
View 3 Replies
View Related
Oct 17, 2012
I am working on a project which needs..Text frames to be converted as flash text >property changed to dynamic text > writing instance name “_txt”.so how can i write scripting on above process.
View 5 Replies
View Related
Dec 2, 2011
I've been working on embedding an Illustrator Live-Effect plugin to a new Illustrator CS5 plugin.One of the live-effects alters the text of text objects to use standardized abbreviations for place labels in maps.
I have ported the plugin using the exact same Live Effect name and the same parameter names to the live effect dictionary of the art.This in the hope that when I open the illustrator file in CS5 the effect will continue to work on converted text art.
But when I open an Illustrator 10 file in Illustrator CS5, the text object comes up with an "<Unknown>" live effect entry in the Appearance panel. And as the text is converted from legacy text to new ATE-text, the result of the live effect is also gone.
Studying the contents of the illustrator files, I find the following in the Illustrator 10 file
/BasicFilter :
(Abbreviate Text Labels...) 1 0 /Filter ,
(VisualMap Effects) /PluginFileName ,
(Abbreviate Text Labels...) /Title ,
/Dictionary : /NotRecorded ,
4 /Int (vmAbbrType) ,
[code]....
it isn't working because the name of the plugin file is different (or is it another reason?)It's a bit tricky because I have now combined several filters and live effects from several earlier plugins into a single new plugin.
It is easy to receive a notification upon opening a document and check if it's an earlier version of Illustrator.But how do I go about tracing the art tree to "upgrade" these live effects to the current plugin?
View 3 Replies
View Related
Jun 12, 2013
I have a text file with a list of image tile names with their bottom left hand easting and northing see attached. I have a lisp that asks for the name of the image then should insert the image at its coordinate with a predefined scale and rotation but it isn't working so I would like an alternative method to test.
View 4 Replies
View Related
Jan 20, 2012
Place fxg images in illustrator using applescript or actionscript? We spent a ton of time trying to troubleshoot it today and counldnt figure out why, but we couldnt seem to place them on a page. That and symbol scripting has been pretty tough to find any reference or examples of scripts.
View 11 Replies
View Related
Sep 27, 2012
I have been tying to figure out how I could easily embed multiple linked images easily. I have some 1000 .svg images which have about 1-7 .tif images linked in to them. I now need to get those links embedded and becouse of the amount of images I'm hoping to make an action out of it. I have a script to embed single image in .svg but haven't have luck with multiple embeddings.
View 9 Replies
View Related
Mar 19, 2013
I have yet another question. I can see the text in a text frame with a script like this,
var doc = app.activeDocument;
var myTextFrames = doc.textFrames[0];
var myTF_Content = myTextFrames.contents; // this will return the string inside the text frame
alert(myTF_Content);
but how do I add some text to the beginning of that text? lets say that this is my textFrame[0] = "this is a simple test string".what is the proper way to add text like the number one and a period to the beginning?
View 3 Replies
View Related
Apr 8, 2013
What is the best way or anyway to remove text from a text frame? Say if you want to remove anything in () in a text frame or any * symbols.
52(one on both sides) //you have this in a text frame
52 // and you want to change it to this by deleting (.)
or
40* //you have this in a text frame
40 // and you want to change it to this by deleting the *
View 25 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