Illustrator Scripting :: Read External Data / XML Or TXT And Create Files Automatically

Feb 3, 2014

Automated AI so much so that it can read instructions from an external source like xml or txt and automatically creates files and folders.
 
For example we have something like this:
File1
Hello
Font: Myriad
Size: 22
Colour: Pantone 254C
Image 1.jpg (link)
Source: Image1.png (link) clipart1.eps (link)
----------
File2
 
and so on.
 
I want AI CS5 to:
1. create an eps File1, create a folder named File1, put File1.eps in it
2. type the text Hello, apply Myriad 22pt and PMS 254 to it, centre it to the artboard
3. Place all jpegs, pngs, eps source files on the artboard and embed them.
4. Save the file as eps legacy version 10, close the file and move to the next file.

View 1 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Read Real Number Data From Selected Columns In Excel Spreadsheet

Oct 27, 2013

Problem:

How to read real number data from selected columns in an Excel spreadsheet into an illustrator javascript array variable, so that then I can use this information to construct an illustrator polygon. 
 
Further information:

I am new to javascript (and not much of a programmer in the best case, but do have some basic knowledge using ancient languages like FORTRAN 88). I am sure I am just missing an important step here despite all morning browsing with Google for answers (something to do with variable definition I assume?). I have some survey data defining the outline of features in map view listed in a string of point (x,y) values in adjacent columns in excel (these x,y point values calculated from GPS data using a commercial program to converted 3D position to a 2D x,y by geoid projection, and then in excel to re-scale point locations to illustrator’s artboard).  What I am trying to do is select columns of x,y value pairs in an excel spreadsheet, copy these values to the clipboard, and then develop an IA JavaScript to draw a polygon through the specified set of x,y points. It seems easy enough to script illustrator to draw the polygon once I get the values from the clipboard are in a javascript array (lots a good tips here [URL] ....), but pulling in the clipboard data seems to be beyond me. I have tried populating a defined array with various combinations of array declarations and app.paste(); or windows.clipboardData.getData('text/plain'); with no satisfaction. I then had the idea to try to pull in the clipboard to one long continuous string, place that in a text box (see see its structure), andthen read and split up the text in a loop to populate the JavaScript array…but that deposited a complex illustrator table object into my text box, and several attempts to force the clipboard to paste text did not work (again probably having problems understanding variable type declaration).
 
I would be happy to find any method of scripting the pull of the selected on an excel spreadsheet for use in an Illustrator script…so if I am making this all harder than it needs, be I would be grateful to know that also!

View 4 Replies View Related

Illustrator Scripting :: Automatically Create Fill Colors Combination

Nov 11, 2012

I need to automatically create all the possible pattern combinations with 6 shapes and 6 colors.
  
I have an Excell file with assigned color combinations (values from 1 to 6) in the rows, and the shape name (A to F) in the columns.  Column 7 is a string containin the color combination names (i.d. 123456, 123345 etc...) so that I can output each combination with the color/numbers in the name.
  
I'd like Illustrator to pick every row and assign the contained colors to each shape of the column and to export a .png with the name from column 7 content.
  
Just simple as that!  But to me it sounds pretty hard! 
  
Is there a script that makes it already posted somewhere? - i couldn't find any -  or something simliar to start coding from?

View 8 Replies View Related

Illustrator Scripting :: Use Of Data Set To Translate Text In Files?

Apr 29, 2011

What would be the best strategy on the usage of data set to translate our product packaging. It's quite complex as we have several languages on the same packaging. Moreover, we have different text sources that would require to be translated in different sets of languages.
 
I have already looked into the data set and I tried to get familiar with it. How to create the data set and how to name the different variables knowing that there are different source texts for a particular region (region means a set of languages) and other texts for another region... The idea is to export this into one XML file with well identified elements that can be split with a tool, sent for translation according to their region then merged back into one single file to be imported back into illustrator
 
Region 1:
en-US
text 1
text 2
 
fr-FR
text 1
text 2
 
de-DE
etc...
 
Region 2:
en-US
text 3
text 4
 
ru-RU
text 3
text 4
 
Region 3:
etc..
 
It seems that the formatting such as bold, italic and so on is not exported into the data set which is quite embarrassing.

View 9 Replies View Related

Illustrator Scripting :: Create Files With JavaScript?

May 5, 2012

I would like make a config file for my script that i would like to put in the %appdata%adobe folder.
 
How can i reah the value of %appdata% inside javascript?How do i create and read files? 

I am currently reading the Extendscript javascript toolsguide but i cant figure out how to create a file:
 
Should not this code create a file in C: directory?
 
Fille = new File('C: est.txt');
Fille.write("Testwriting!");
Fille.close();

View 10 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

Illustrator Scripting :: Action To Batch Export Folder Of AI Files To Create 300dpi PNG

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

AutoCAD Visual LISP / AutoLISP :: Read From Multiple External Files?

Sep 13, 2012

Is it possible to loop through multiple files in a directory?

Like this: (setq file (open "..\TOPO QUADS\*.jgw" "r"))
 
Windows 7 x 64 Professional
Nvidia Quadro 4000
8 GB Ram
i5 2500 @ 3.30 GHz
Civil 3D 2012 SP 2
Civil 3D 2013 SP 1

View 9 Replies View Related

Illustrator Scripting :: How To Read Text File Into TextFrame

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

Illustrator Scripting :: Read Input Parameters From Script File Name

Aug 24, 2013

How do I read input parameters from a script file name? For example, let’s say I want to run a script that requires 3 variables as input, but rather than prompting for the values I wish to read them from the script file name … e.g., the file name might be “Myscript.js (my_variable1, my_variable2, my_variable2)” … where variables are all real numbers. So I assume the script name when run should look something like …  Myscript.js (10, 10, 100), but how do I then read these and assign these values to a var statement within the script?

View 3 Replies View Related

Illustrator Scripting :: Read A Number From A Variable And Rotate A Shape

Jul 26, 2012

I'm using the variables panel in Illustrator to pull a data set I've got.
 
For example there's 2 text variables and 1 number going from 0-359. I'm looking for a script which looks at the variable name and pulls the number, then uses that number to rotate a shape by that many degrees.

View 2 Replies View Related

Illustrator Scripting :: How To Import Text Automatically

Sep 26, 2013

Have to enter a lot of text snippets into illustrator cs4 every day, would love to make my live easier.
 
I'm trying to figure out how to import text to illustrator automaticly.
 
I have olny a few parameters: the text, what font to use, the size of the text (the text width and length in mm as if the text would be converted to outlines, needs to be exactly the right size) and the coulor.
 
Usually its one line of text, sometimes more lines of wich i have the widht and length of the complete block of text
 
The parameters could be in a cvs-file or something like that,  ideally all texts would be imported in one file but it could be seperate files
 
Texts should be converted to outlines and saved as AI version 3
 
Is it possible to do this?

View 1 Replies View Related

Illustrator Scripting :: How To Read Swatch Used For Fill Color Of A Page Item

Mar 21, 2012

Is there a way to read the swatch used for fill color of a page item?
 
I can read the fill color but I can't read if the color is a global swatch.

View 2 Replies View Related

Illustrator Scripting :: Run A Script Automatically Once A Day At Specific Time

Jul 9, 2013

I should run a script in Illustrator once a day, automatically at 23 p.m.

View 7 Replies View Related

Illustrator Scripting :: Resizing Font Size Automatically?

Mar 24, 2011

how to auto fit overset text in a fixed text frame?
 
I import many languages into fixed text frames and it is a pain to keep resizing or scaling manually.
 
As of yet I've been unable to source any javascript or applescript that can do it. The closest has been "JET_AutoFitVertical.jsx" but this resizes the text frames.

View 4 Replies View Related

Illustrator Scripting :: Automatically Put Dimensions On Rectangular Shapes

Jun 6, 2013

Any script that will automatically put dimensions on rectangular shapes in Illustrator CS6?

View 8 Replies View Related

Lightroom :: Can Automatically Embed Exif Data In DNG Files

May 2, 2012

For years I have been using Bridge and ACR for my raw workflow. I use only DNG files and have the database turned off so the EXIF data is embedded right into the original DNG file. This means my files are 100% portable without and sidecar.
 
Can I work with lightroom 4 without having a database? OR can I assure that each DNG file has all it's setting automatically embedded as it does in Bridge?

View 2 Replies View Related

Illustrator Scripting :: Load Default / Preset Values From External File?

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

Illustrator Scripting :: Modify Vector Drawings Automatically Via Database

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

Illustrator Scripting :: Importing Data With JavaScript

Feb 3, 2014

I would like to open a file dialog box seltect a CSV text file saved from Excel and import this into an array/variable/dataset in adobe illustrator using javascript. Have done some work with javascript but not a power user. Can't work out how to get the open dialog to appear.

Long term aim would be to use the data to plot a path which seems straighwforward enough, its the getting the info in bit I'm stuck on.

You do have to be able to select the file to import, this bit quite important.

View 2 Replies View Related

Illustrator Scripting :: Can Populate A Pie Chart From Excel Data

Apr 4, 2013

I was wondering if there was a way to import excel datat into illustrator, then it populates a vector pie or bar chart for me?

[URL]

View 1 Replies View Related

Illustrator Scripting :: Extracting Data From Excel To JavaScript Or Vbscript

Mar 16, 2012

I was wondering if there was a way to extract data from Excel to be used in Illustrator. I know there is an option of variables and xml, and I don't want that. I've seen and tried out how to read illustrator and write to excel, and I get that.  What I would like to do is pretty much the opposite:
 
1.Pre-fill in an Excel file(.xls,.csv, doesn't matter) with data such as a filename in column 1 and (Replacement Text) in column 2 and close manually.

2. Run script(VBSCRIPT,Javascript, doesn't matter)

3.For each column in Excel file where cell in first column is not empty, open Illustrator Template with placeholder of "DWG" textframe and replace the frame titled "DWG" with Replacement text from Excel in Column2.

4, Save each to a PDF file and name file with text from Excel Column1(Filename)
 
In a nutshell, there will be a single illustrator template with a premade textFrame with a name of "DWG". Excel will contain two columns, one for the filename to be named and one for the relative text to replace with the placeholder in AI.

View 17 Replies View Related

Illustrator Scripting :: Sending Excel Cell Data To Specific Points In VBA

Oct 27, 2013

I want to send the contents of A1 to an Illustrator document at 135, 172 and B1 to 135,190, same with A2/B2 will be at different coordinates as will A3/B3 and so on... I want to do this 6 times and save the document as a PDF. Then, it should clear and do it again. The columns will ALWAYS be A and B.

View 5 Replies View Related

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

AutoCad :: Performing Data Extraction And Linking To External Data With Formulas

Apr 19, 2012

I am trying to link my extracted data from blocks with attributes to an extenal source so that the table I create and place into the drawing already has the formulas I need to due the required calculations. But every time I create and place the table the formulas are not in the table. I include the columes that contain the data but it doesn't seem to be working.

View 2 Replies View Related

Illustrator :: Can CS6 Read CS4 Files

Oct 9, 2013

i want to purchase the CS6 illustration. my question is, "will the CS6 be able to read CS4 files?"

View 1 Replies View Related

Illustrator :: How To Read Or Convert ASE Files To Text

May 24, 2013

wondering if theres a way to open up my saved .ase files as a text file.

View 1 Replies View Related

Illustrator Scripting :: Create CDATA In XML?

Dec 17, 2013

What if for some reason a person wants to actually make an XML file and stick some <![CDATA[]]> in it? I looked through some manuals & OMV fairly quickly to discover no methods for that. Was wondering if there was some technique.And, just as pointed out in the indesign forums, a string of "]]>" makes the script hang up and debugging have to be stopped with the final message "Cannot execute".

View 9 Replies View Related

Illustrator Scripting :: Can Create Layers With CSV File?

May 9, 2013

Is there a script that can create layers with csv file?

View 5 Replies View Related

Illustrator Scripting :: Create A Palette With Some Buttons

Feb 8, 2013

I am writing a script for Illustrator. I created a palette with some buttons. I like to keep the palette open while working in Illustrator. The problem is, that the buttons don't work. For example, I have a delete button that should delete my active selection. When I change the Window Type from palette to dialog everything works correctly.

var w = new Window ("palette");
w.orientation = "row";
w.text = "Path Transform";
var f = File ("/C/icons/corner-tr.png");
var corner_tr = w.add ("iconbutton", undefined, f );
var corner_tl = w.add ("iconbutton", undefined, f );
var corner_br = w.add ("iconbutton", undefined, f );
var corner_bl = w.add ("iconbutton", undefined, f );
 corner_tr.onClick = function () {
    selectedObject[0].remove();
    createLines();
}

View 1 Replies View Related

Illustrator Scripting :: Create A Rectangle Around Object?

Oct 3, 2012

Can this be done in illustrator scripting??
 
[URL]
 
creating a rectangle around selected object or objects and set margins...

View 8 Replies View Related







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