Illustrator Scripting :: Create New Document With Profile And Multiple / Named Layers?

Mar 27, 2013

I can't figure out the proper commands to fill out and complete the script below. What I am trying to do is:
 
- Create a new document using one of the Profile presets (or have the New Document dialogue open so I could select the profile, size and bleed)
- Make 3 layers, each with a diferent name
- Create a rectangle the size of the artboard on the bottom layer, with a swatch stroke and no fill
- Create a rectangle the size of the bleed on the middle layer, with no stroke or fill
 
Like I said, I haven't gotten far at all. I've read through the basic scripting guides and I'm just not understanding all of the language needed to string things together.
  
tell application "Adobe Illustrator"
make new document
set topLayer to make new layer ¬
at beginning of document 1 with properties {name:"Vector"}
set bottomLayer to make new layer ¬
at end of document 1 with properties {name:"Through Cut"}
end tell

View 6 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Check Color Profile For Current Document

Oct 16, 2012

I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.
 
It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction.

View 11 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 :: 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 :: Raster Multiple Layers In AI Without Flattening To 1 Layer

Aug 8, 2012

I am trying to turn every layer in my .ai file to a raster image without flattening to one layer.
 
-The big issue I am dealing with is the agency that just built a paralax site for us refuses to export to PSD. I have tried every possible way to do this but keep getting the file is to big message. To add to it they had it all on 1 layer. I was able to release to sequence, but now am trying to see if rasterizing the objects will work.

View 1 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 :: 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 Fitted Artboards From Layers?

Oct 8, 2012

Any script that will create artboards for each separate layer?

View 1 Replies View Related

Illustrator Scripting :: How To (with One Click) Create Multipage PDF Consisting Of All Layers

Mar 5, 2010

Often times when designing a logo I create different versions and variable options on layers. This can result in several layers in one Illustrator file. Is there an easy way or an existing script that will allow me to (with one click) create a multi-page PDF consisting of all the layers within my .ai file? The current method is turning on each layer, performing a save-as (PDF), then turning off said layer and turning on the next layer and repeating the task and so-on-and-so-forth, etc … It becomes tedious and quite often I save over the previous version, forgetting to re-name it or forget to perform a save on a certain layer. I have never written my own script before but am not opposed to trying, where do I begin?

View 12 Replies View Related

Illustrator :: How To Create New Document With Multiple Artboards Of Certain Template

Jul 10, 2013

How do i create a new document with multiple artboards of a certain template?

View 1 Replies View Related

Illustrator :: How To Create Object / Group And Copy Across One Document In Multiple Places

Nov 27, 2012

Is there a way to create an object/group in Illustrator and then copy it across one document in multiple places (multiple art boards, etc.) - allowing the designer to then update the original and seeing the changes cascade to all copies?
 
I know this can be done using InDesign by linking an Illustrator file and making subsequent updates to that Illustrator file.  But I do not want to use InDesign, I want to use Illustrator.  What I want is much like creating Symbols in Flash, updating one will cascade throughout the file. 

View 6 Replies View Related

Illustrator :: How To Create Holes Through Multiple Layers

Aug 8, 2013

I'd like to use boxes to punch holes into the layered artwork below them. I want the result to look exactly like this image, but with the white boxes being transparent holes.

This seems so simple, but I can't find any combination of layers/pathfinder tools/compound shapes/or clipping masks that will produce this result. No matter what, I end up losing part of the artwork (usually the topo lines and the black bar).

View 4 Replies View Related

Illustrator Scripting :: Missing Profile - Doc Does Not Have Embedded CMYK Profile

Apr 2, 2012

Each time I open a file in AI - CS3 I get the same message: "Missing Profile - The doc does not have an embedded CMYK profile". I looked in library>colorsync>profiles and sure enough they were gone? I downloaded new profiles from Adobe, installed them in library>colorsync>profiles - and still the same thing with each file I open. I dragged AI to the trash, re-installed AI from my disc repeated the process with the same results .

View 10 Replies View Related

Illustrator Scripting :: Create Individual Symbols From Individual Layers?

May 10, 2012

Is there a way to do this? Is there a script out there that can create individual Symbols from individual layers?
 
EDIT: I pasted this in the wrong forum so i moved it over here.

View 16 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 :: 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 :: 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 :: 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 :: 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 :: 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 :: 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