Illustrator Scripting :: Changing Line Of Text In Multiple AI Files

Apr 5, 2013

I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002... etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?

View 1 Replies


ADVERTISEMENT

Illustrator Scripting :: Changing Colors Multiple Files?

Feb 6, 2014

I have about 300+ product labels that are in Illustrator, and some of them have an incorrect rich black color swatch. What I have been doing is going through and changing the color pallette to change them manually. Essentially going to the instance of black and changing them to regular black.
 
Is there any sort of script that can do this? The files are in CMYK.
 
Otherwise I have a lot of monotonous file editing to do.

View 4 Replies View Related

Illustrator Scripting :: Changing Opacity Of Text?

Nov 25, 2013

I'm trying to change/access the opacity of a text object (Illustrator CC). In the documents, I found that it's represented by a text frame object, but it doesn't have opacity property. Text range and character attributes don't have it either, so I'm wondering: is there any way of accessing/altering the opacity of a text object using Javascript?

View 5 Replies View Related

Illustrator Scripting :: Changing Text From Helvetica To Arial With JavaScript

Mar 11, 2013

I’m working with PDF files in illustrator and whenever the file uses Helvetica I have to change the font to Arial. This gets old when working with hundreds of illustrations. How I would go about changing all text that uses Helvetica bold to Arial bold and Helvetica Roman to Arial?
 
Would I loop through all the text frames and get the value of the font and use that value to change them or is there a more global way to go about this?

View 15 Replies View Related

Illustrator Scripting :: Changing Selected Text Color With JavaScript

Feb 25, 2013

I want to change my selected text to a different cmyk color using javascript. I have tried and I do not know what is missing or what I am doing wrong.
 
if ( app.documents.length > 0 ) {
newCMYKColor = new CMYKColor();
newCMYKColor.black = 0;

[Code]...

View 4 Replies View Related

Illustrator Scripting :: Split File Into Multiple Files

Nov 4, 2013

Is it possible to have a script that would split up an Illustrator file that contains a number of groups of elements into individual files... for example, here is a download link for a file that has different types of moustaches and I want each moustache as an individual file... I have hundreds of Illustrator files like this that have 4, 8, 15, 20 or more illustrations all bunched onto the one file that I need to split up. I'm using CS4 [URL].... 

View 3 Replies View Related

Illustrator Scripting :: How To Import Several PDF Files As Multiple Artboards Into One File

Feb 11, 2013

I have 30 separate illustrator pdf files (one page each) that I would like to make into one Illustrator CS6 file with 30 artboards. Is there any way to do that without having to import one by one?

View 1 Replies View Related

Illustrator Scripting :: How To Provide Space And New Line To The Text

Apr 1, 2012

how to provide space and new line to the text in AI Script

View 1 Replies View Related

Illustrator Scripting :: Repeating Text Multiple Times And Put It Into A Circle

Oct 1, 2012

How can I repeat text several times and put it into a circle with the words continuously repeated into the circle if that makes sense.

View 2 Replies View Related

Illustrator Scripting :: Is It Possible To Copy And Duplicate (only) Text To Multiple Layers

Dec 8, 2012

I have an Illustrator document with one layer (named Layer 1).In that layer are lines, rectangles and text.Is it possible (in script) to: make 3 additional layers named NL, EN and GEselect and cut all the text in Layer 1paste that text in the same place in the layers NL, EN and GE 

(Step 2: select all text items and Ctrl-X)
(Step 3: select proper layer and Paste in Place in that layer)
 
I know this can be done with an action (I did that allready) but the reason I want to script this is because I have to combine this with another script which takes care of colorizing stuff.

View 5 Replies View Related

Illustrator Scripting :: How To Give Line Height To Text In AI Script

Jun 4, 2012

how to give line height to text in AI Script

View 3 Replies View Related

Illustrator Scripting :: Adding New Line And Spaces In Between Text In AI Script

Apr 2, 2012

areaText.contents = "This is an Area Text in a rectangle. See how it flows to the next line.";
 
/*
i want to break the sentance from 'Text' ie i want to add new line in between and also some more spaces.
*/
 
For example: I want to write the above text like this way

this is an Area. Text in a rectangle. See how it flows to the next line.

View 2 Replies View Related

Illustrator Scripting :: Open Multiple AI Files Produce Error In Palette (8702 - No Document)

Aug 12, 2013

I try to open mulitple ai files through palette dialog but it fails on Error:8702, there is no document. But if i change to var win = new Window ("dialog", "Batch"); the open file works well. 
 
var txtSourceFolder =  win.add("edittext",undefined);
var btnOk =  win.add("button",undefined,"Run");
btnOk.onClick=function(){
try

[Code] ....

View 2 Replies View Related

Illustrator Scripting :: Adding Serial Numbers Apply To Multiple Files In Selected Folder?

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

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 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

Illustrator :: Creating Multiple Lines Of Text That Can Be Edited By One Line

Mar 19, 2013

I was editing a file in illustrator that a past designer set up and he set it up so that there are multiple lines in a column of text that are linked some how so that the first line of text can be edited and the rest will change with it.

View 2 Replies View Related

Illustrator Scripting :: Export Multiple ARTBOARDS To Multiple JPGs (AppleScript)

Apr 9, 2012

I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this? Looping current artboard and exporting them to JPG or something.  Or maybe there is someway to force the   "save multiple artboards:true" in JPG?
  
export document currentDoc to file exportFolder as JPEG with options ¬
{class:JPEG export options ¬
, quality:100 ¬
, artboard clipping:true ¬
, artboard range:1 - 2 ¬
, save multiple artboards:true}

View 3 Replies View Related

Illustrator Scripting :: Changing Color Of A Selection To HEX

Sep 6, 2012

I'm new to illustrator scripting (but not to javascript or programming. I have an AI file that has multiple layers. each layer has several items that are supposed to be of same color. I have an array of HEX values.

I would like to loop over all items in a single layer, select them and change their color to some given HEX. Once that works, I will run on all HEX entries in array and save each variation in a separate PNG file.
 
For the first part i wrote some script (see below), but i do not see any change in the file after i run the script. No errors and no change. I run the script once i select all items in a specific layer.
 
My code:

function hexToRgb(hex) {
    var result = /^#?([a-fd]{2})([a-fd]{2})([a-fd]{2})$/i.exec(hex);
    return result ? {
        r: parseInt(result[1], 16),
        g: parseInt(result[2], 16),
        b: parseInt(result[3], 16)

[Code] ......

View 3 Replies View Related

Illustrator Scripting :: Swap Symbol Instance By Changing Its Name?

Aug 11, 2012

I'm trying to swap symbols in situ by changing the 'name' property of the symbol instance.
 
My rudimentary script can find the existing symbol name (for me, that's a small triumph!). The Illustrator document has two symbols in the Symbols panel, 'blue_square' and 'red_circle'. I run the script with an instance of 'blue_square' (and nothing else) on the page, and try to change the name to 'red_circle':
 
var docRef = activeDocument; 
var symbolitem = docRef.symbolItems[0]
 var symbolname = symbolitem.symbol.name; 
var newname = "red_circle";
symbolitem.selected = true; 
// this next line causes the problem:
symbolitem.symbol.name = newname;
 
This causes an error - 'the name is in use'.

View 14 Replies View Related

Illustrator Scripting :: Changing Angle Of Linear Gradient Fill

Feb 4, 2013

Suppose I have an object filled with a linear gradient. This object is the only selected. I just would like to change the angle of the gradient to 25 degrees. So I think I could do:
 
var doc = app.activeDocument
alert(doc.selection[0].fillColor.angle) // the result is the exact angle of the gradient fill of the selected object. Suppose 12 degrees.
 
//now the try to change:
doc.selection[0].fillColor.angle = 25.0
 
No errors are found by the Extended Script Toolkit..BUT...it does not change anything. As Illustrator reference manual does not say this property is read only, I think I could write.

View 2 Replies View Related

Illustrator Scripting :: How To Add Images In Multiple Artboards

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

Illustrator Scripting :: Applying Multiple Strokes With JS

Apr 17, 2012

how to apply multiple strokes to a path with JavaScript? Assigning strokes width, caps, position in stack (my particular concern)? All i can do at the moment is to apply a single stroke.

View 5 Replies View Related

Illustrator Scripting :: Embed Multiple Linked Images?

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

Illustrator Scripting :: Get Width That Multiple Selected Items?

Apr 23, 2013

How can I get width that multiple selected items? (Not grouped.)
 
//---------- source code ----------
 var mm = 2.83464566929134 //unit conversion. (point->milimeter)
var W = docRef.selection[0].width/mm;
alert(W); 
//---------- source code ----------

View 3 Replies View Related

Illustrator Scripting :: Select Items On Multiple Artboard

Sep 27, 2013

I have script where I select items on multiple artboard but I can't seem to get get active art board of the selected item. Is this possible?
 
each artboard has a text item and I would like them in the same position on each of their own artboards that they are already one. right now it adjusts them all to one artboard. here is what I have so far
 
doc = app.activeDocument;
for(i = 0; i < selection.length; i++){
    var firstItemPosition = doc.selection[0].position;
    doc.selection[i].position = firstItemPosition;
    var activeArtboardIndex = doc.artboards.getActiveArtboardIndex();
    alert(activeArtboardIndex);
}

View 10 Replies View Related

Illustrator Scripting :: Can Execute Action From Command-line Using AI?

Oct 9, 2012

I need to do a form of automation, but wanting to execute this from another process (self-made application). Adobe Photoshop has this mechanism called "Droplets" that are executable based upon Actions defined in Photoshop (as far as I can understand). Is it possible to let AI do some work for you from an external application as with Photoshop (assuming you are able to execute the executable once it has been created)?

View 4 Replies View Related

Illustrator Scripting :: Getting Error 1302 - No Such Element Line

Oct 5, 2012

I am getting an error with a script i have used before without any problems.The script updates the only image at the bottom of a single page PDF and saves the changed PDF in another folder.
 
It asks me to locate the folder of PDFs to be modified.It asks me to locate the folder where the modified PDFs will be saved.It asks me to select the new image that will be used.It will then update the image and resizes it and save the PDF in the specified folder.
 
I don't get this error on all PDFs but i get it at least once every 10 PDFs  (and there are over a 1,000 PDFs).The error i get is this:
 
Error 1302:No such elementLine:27->      rip=doc.rasterItems[0].position;
 
I get this error regardless of whether the script is run in CS3 or CS5.

Additional info.I ran this script in CS3 and it worked. At a later date i ran another script on the folder of modified PDFs in CS5 that deleted any unnessesary elements outside the artboard, it selected All on the Artboard - then inversed the selection - and deleted any selected items followed by save and close.I have tried making sure the "new" image has the same name as the image being replaced but this made no difference.I am using Illustrator on Vista.
 
The script is below:
 
#target illustrator
function replaceImage() {

[code]....

View 4 Replies View Related

Illustrator Scripting :: Change Color And Line Weight

Jun 6, 2012

I am trying to create a script who could act as an Autocad plot (ie convert each color to black, with a different line weight). 
 
Here is the first script I melted, who create my Black swatch

if ( app.documents.length > 0 ) {
var myDoc = app.activeDocument;
//add Black swatch
var newSwatch = app.activeDocument.swatches.add()
var newColor = new GrayColor();
newColor.gray = 100;
[Code] ......... 
 
And here is the second one, who replace one color by Black (it don't change the text, nor the lineweight yet…
 
if ( app.documents.length > 0 ) {
//test de dialogue
function csDialog() {
var fabGroup = app.activeDocument.swatchGroups.getByName('Fabrics');
var allFabs = fabGroup.getAllSwatches();
var fabNames = Array();

[Code] ........

View 2 Replies View Related

Illustrator Scripting :: Set To Save Multiple Thumbnails To XMP Packet By Artboard

Jul 19, 2012

Is it possible to save illustrator XMP thumbnail previews by artboard? It seems like Illustrator saves a single thumbnail with all art regardless of the number of artboards.
 
If there is a property that can be set to save multiple thumbnails to the XMP packet by artboard when saving to a native Illustrator file?

View 3 Replies View Related

Illustrator Scripting :: Creating Dialog Consisting Of Multiple Buttons

Apr 24, 2013

I want to create a dialog consisting of multiple buttons. As a result I want value which button was pressed by user.
 
The script (shortened to problematic part):
 
// I'm looping through elements on layer 'warstwa' from kolorStart to kolorStop, 'k' is used for number buttons

for (i = kolorStart, k = 0; i <= kolorStop; k++, i++) {
myButton[k] = myButtonGroup.add ("button", undefined, warstwa.pageItems[i].contents);
myButton[k].label = warstwa.pageItems[i].contents;
myButton[k].onClick = function () { wybranyKolor = myButton[k].label; myWindow.close(); }
}
 
The result:

But buttons don't work, wybranyKolor returning 'undefined'. If I change "wybranyKolor =  myButton[k].label" to "wybranyKolor =  myButton[k-1].label" I get proper answer but it is the same for all buttons so it looks that all buttons have the same action assigned. How to get each button to has unique name which can be passed to variable?
 
Probably I can achieve the same with radio buttons' list but with buttons it is one click less for the user.

View 7 Replies View Related







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