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


ADVERTISEMENT

Illustrator Scripting :: Save File On Remote Location

Oct 8, 2012

I want to save Current open Document on remote location (on server).
 
I am able to save it on my local machine(the machine i am presently working on).
 
Now I want to save it on some remote server.
 
I am using following code for that:         
  
 var doc=app.activeDocument();
 var aiSaveOptions1=new IllustratorSaveOptions();
var    aiFile1 = File( '/osn-pc-16/adobe/1/Original.ai' );
 doc.saveAs(aiFile1,aiSaveOptions1)

View 7 Replies View Related

Illustrator Scripting :: Assign Values To Artboard And Save Within Document?

Oct 14, 2013

Is there any chance to assign values to an artboard?
 
I've experimented with “tags”, but they only work for pageItems. (if the item which includes the stored data is deleted, the data is also deleted)
 
It is simple data like v1=true, v2=false, … I want to assign. And it needs to be saved within the illustrator document.

View 4 Replies View Related

InDesign :: Save To Network Location Takes A Long Time?

Mar 17, 2014

Saving InDesign files to a network location seems to take an extremely long time during which I am unable to do anything else inside InDesign.I know that this has been an issue for me for at least 2 weeks (since March 3, 2014, possibly earlier). I am not certain whether I have updated InDesign since then, but have consistently been experiencing this same problem.
 
Today I ran some tests (all using the same ~20MB file).

Save from InDesign to network location: 12 seconds

Save from InDesign to desktop: <2 seconds

Copy file (in Windows Explorer) from desktop to network: <2 seconds

Copy file from network to desktop: <2 seconds
 
I know I can work on the file locally and copy my saved versions out at the end of the day, but this was not necessary before, and I don't know what changed to make this take so much longer than it used to.
 
Current system configuration: InDesign 9.2 x64 running on a Win 7 Pro 64-bit with 16GB RAM and a Xeon 3.6GHz processor.

View 2 Replies View Related

AutoCAD Inventor :: Save Copy As PDF Doesn't Work On Network Location?

Sep 26, 2013

I cant't save copy as PDF when I point to a nework location, It's working when I save directly on my computer.

I get a message saying : "Failed to publish DWF file."

View 2 Replies View Related

Illustrator Scripting :: Choose Folder Default Location

Oct 5, 2012

Any way to allow a user to choose a folder from a default location. I thought I had found the solution but it's not quite working as I wanted:
 
#target illustrator

//Example 1
var output_folder = Folder.selectDialog ('Choose PDF output folder.');

//Example 2
var myFolder=Folder(app.activeDocument.path).selectDlg("Choose PDF output folder:");
 
If I use the code in example 1 the choose folder dialog appears and the 'Open' button is available and when I press the button the location is chosen as expected. However if I use the code in example 2, although the choose window opens in the path of the active documents location the 'Open' button is not able to be pressed until I select a folder., which means that the chosen location is not correct. I should indicate that I'm running this code on a Mac.
 
Any way to have a choose folder dialog window specify a location and be able to select that.

View 20 Replies View Related

Illustrator Scripting :: How To Get Location Of Horizontal And Vertical Guides

May 17, 2013

How do I get the location of horizontal and vertical guides?
 
I'm halfway through by using some calculations on geometric bounds and subtracting it from the document height but can't I just do something like
 
nextGuide =mydoc.guides[x].location;
 
Also, why does it seem that Indesign scripting has more access to properties and methods?

View 5 Replies View Related

Illustrator Scripting :: Change Script Folder Location?

Jan 23, 2014

Is it possible to change the location of where illustrator looks for scripts, or is it possible to add a location?

View 9 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 :: 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 :: Change Folder Current To Location Of Script (JSX) File?

Jan 6, 2012

I'm trying to use some images in my ScriptUI dialog, but I want to use a "relative" path name, and I can't seem to get it to work.For example, this myScript.jsx works just fine, but as you can see, I'm using an "absolute" path name to transparencyGrid.jpg:
 
var w = new Window ("dialog");
var f = new File ('~/Desktop/transparencyGrid.jpg');
w.add ("image", undefined, f);
w.show ();
 
However, I want to be able to use a relative (to myScript.jsx) path to point at transparencyGrid.jpg, like this:
 
var w = new Window ("dialog");
var f = new File ('../../../transparencyGrid.jpg');
w.add ("image", undefined, f);
w.show ();
 
But, I can't seem to get this to work because relative paths seem to be relative to the current folder, Folder.current, not the location of the currently executing script.I say that because when I do this:
 
alert(Folder.current);
 
The only thing the alert message shows is a backslash (/), indicating to me that the current folder is the root of my OS, but I thought it would be the folder where myScript.jsx resides.
 
So, is there a way of setting Folder.current to the location of the actual script?

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

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 :: Select All Items In Document Based On SpotColor?

Jun 28, 2012

I'm trying to select every object with the color "CutContour" So far I've been trying:
 
myDoc.selection = myDoc.spots.getByName("CutContour"); I guess this obviouslly wouldn't work though because myDoc.selection is looking for an array of objects. However, I can't figure out how to loop through all the objects in the document and check to see if they contain the SpotColor.
 
I want to use the Select > Same > Stroke Color , but I heard that using that in Javascript isn't available unless you have CS6 (which I currently don't). Is it true that accessing menu items through scripting is a feature in CS6?

View 4 Replies View Related

Illustrator Scripting :: How To Hide / Show Individual Items In Document

Nov 18, 2012

I'm trying to hide all items in a document (and store each items original visibility state), iterate user pre-selected items and perform an export for each item in selection (I've got this part covered), and finally restore the visibility state of each item again (here's where the storing of original visibility state is needed).
 
I've found that I can iterate all items in the document using app.activeDocument.pageItems[i] where i is the page item identified by the i-th index in the pageItems collection.
 
What is not clear, however, is how to get the visibility state of this page item. Indeed, there is a property visbilityVariable associated with page items, but when I try to "inspect" its content using an alert message, I get "undefined".
 
Are there better ways to iterate all items in a document? Ideally, I'd like to access all items regardless of wether they're path items, group items, text frame items or what have you. I need this collection to read/write the visibility state of each individual item.

View 2 Replies View Related

Illustrator Scripting :: Select All Paths Of Specific Color In One Document

Jan 7, 2009

I'm on Illy CS2, windows xp.

I want to open a doc, run a script that selects all paths of a color, say 255,0,0 or 50,0,20,4 and changes that color to black or another color I specify and also changes the stroke. Is this possible? I can't see how i would do it?

View 6 Replies View Related

Illustrator Scripting :: How To Find Darkest Color In Document Swatches

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

Illustrator Scripting :: Check If A Word / Phrase Exists In Document?

Aug 5, 2013

how would I go about to check if a textframe with specific content exists in a document and if it does then procede with a function?
 
if ("word" exists) { make a new layer}
 
I just need it to check if one instance of the word exist

View 8 Replies View Related







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