Illustrator Scripting :: Creating Shortcuts For Scripts?

Mar 9, 2012

The best way I have found is loading script file in scripts folder so it is in menu creating an action, insert menu item in action then assigning the action to an F key. however, everytime I restart illustrator I have to reset this. Any persistent way to do this?

View 3 Replies


ADVERTISEMENT

Illustrator Scripting :: Creating Outlines From Text Using JavaScript In CS5?

Feb 18, 2012

Is there a way to select all of the text on all artboards and CREATE OUTLINES using Javascript? The text that Adobe provides for scripting has this option for saving to FXGs which is preserveTextPolicy or something similar, but I need the same type of solution for saving as an AI file or as a command before the save. I'm currently working in windows, but am writing this script for use on a MAC. If there isn't an internal way of doing this through Javascript?  I would imagine it would be possible through Applescript since it can access the application's GUI, but I'm not sure. A javascript solution would be preferable, but any solution would work at this point.

View 7 Replies View Related

Illustrator Scripting :: Creating Color Swatch Legend

Feb 24, 2012

I've been looking for scripts online that would create a color swatch legend to list the colors used in my illustrator file.  I found this (see below) and tweaked it to place properly on my particular page, but it adds everything in my swatches panel to the legend.  Ideally, I'm looking for a piece of script to add that would only add used swatches to the legend, or a script that would only add spot colors to the legend. 
 
var docRef=app.activeDocument;
var SwatchBoxSize=24;
var swatchBoxSize=parseFloat(SwatchBoxSize);
var swatchBoxTop=swatchBoxSize+314;

[Code] ......

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

Illustrator Scripting :: Creating Bounding Rectangle And Selecting Particular Objects?

Aug 23, 2012

I'm extremely new to scripting; I managed to create a script to extend the artboard of my documents (which I was extremely proud of given my inexperience!) and another to align a couple of objects alongside each other, but my attempts to script some new code has met with failure.
 
Firstly, I need some Illustrator CS4 Javascript code that will create a bounding rectangle for the selected object(s). The selected object(s) will always be rectangular; no irregularly-shaped objects. I know this should be simple, but I can't work out the variables/attributes involved.
 
Secondly, some code to select the leftmost object in a document. And the equivalent for the rightmost object.
 
If it makes any difference, I'll be stitching these scripts together with an action to achieve the following workflow.

Two EPS files are dragged into an empty document as 'Linked Files'.The two Linked Files are aligned alongside each other. (Using a script I've already written.)The leftmost Linked File is selected and has a bounding rectangle created, which is then used to mask the Linked Object.The rightmost Linked File is then selected and has a bounding rectangle created, which is then used to mask the Linked Object.Both masked Linked Files are selected, and a bounding rectangle is created to mask them into the same Clipping Mask group.The artboard is set to the dimensions of this combined masked pair (I've managed to write that script already).The Linked Files are embedded into the document. 

The reason for this is because we have EPS map files exported from AutoCAD that are left- and right-hand pages. These need to be combined into one file, but when they are brought in they lose their masks as the BBOX element is not recognised by Illustrator. The double-masking in my process above is needed to ensure that content from either map doesn't overlap the other half of the map.

View 9 Replies View Related

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

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

AutoCAD Civil 3D :: Creating Additional Points And Data Shortcuts

Apr 12, 2012

I have a Drawing "A" that is the source drawing containing the existing ground surface, topographic linework and features, and points in the Survey Database which are under the Survey tab.

I have a Drawing "B" that is the source drawing containing the Design alignment and profile with references to the data in Drawing "A" such as the surface.  

If I create additional points for survey stakeout purposes within Drawing "B", will it automatically be included in the survey database in Drawing "A" along with all the other points or is there some procedure in order for me to continue adding additional points into the database from Drawing "B" or any other drawing that references Drawing "A"?

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

Photoshop :: F-Key Shortcuts For Actions - Override System Shortcuts?

Jul 11, 2008

I have, up until I got CS3 and the new aluminum keyboard, not had any issues with this.

I have numerous, common actions recorded which have F keys assigned to as shortcuts.

F10, which turns sound off in the OS on an aluminum keyboard, overrides my Photoshop shortcut.

I've lost my 12 or so most common action shortucts in Photoshop because of this! That is about a 5% loss in productivity...

View 2 Replies View Related

Illustrator :: Why Does Mac Keep Freezing With Shortcuts In CS6

Sep 24, 2012

I'm on an OSX Lion machine (10.7.4) with 7GB of memory.
 
I have the following shortcuts in Illustrator:
Cmd +Shift + = : To export a file
Cmd +3 : Select the same fill color
Cmd + 4: Select the same stroke color
Cmd + . : Rotate
Cmd + , : Reflect an object
 
It doesn't matter which shortcut it is what will happen is that Illustrator and my Mac will freeze up not allowing me to force quit the program. This will happen randomly and the only way around it is to restart the mac and restore default preferences via Cmd + Option + Shift when opening the program.
 
I have tried re-installing the suite and it still happens, so I'm wondering is it the specific shortcuts I am using or is it the computer? I only ask because Illustrator has no issues when everything is defaulted, however when I add the shortcuts this issue will happen.

View 2 Replies View Related

Illustrator :: Shortcuts Get Out Of Functionality?

Dec 14, 2013

When I use zoom tool (in or out) in an atrwork in illustrator (cs5) then shortcuts don't work. so I have to even a click on an empty area or push (Esc) button to get back functionality of the shortcuts.

View 5 Replies View Related

Illustrator :: Migrate Key Shortcuts From CS5.5 To CS6?

Aug 28, 2012

what did I do to migrate key shortcuts from illustrator CS5.5 to CS6 (on a Mac with OsX 10.7.4)?

View 4 Replies View Related

Illustrator :: Using Control In Keyboard Shortcuts - Mac

Dec 5, 2012

I'm trying to set up a keyboard shortcut in Illustrator using the "control" key and I get the error message "The key pressed cannot be used as a shortcut." I really want to use the control key because, 1) it matches a similar shortcut that I use in Photoshop, and 2) all similar shortcuts are already in use. I'm confused as to why Illustrator won't allow me to use the ctl key in shortcuts, yet in Photoshop it works fine. I'm using CS6 with OSX Mountain Lion.

View 4 Replies View Related

Illustrator :: How To Customize The Keyboard Shortcuts

Feb 9, 2014

I'm working in Illustrator on Mac, I'm wondering is there a way to customize the keyboard shortcuts, like you can in Flash pro?

View 1 Replies View Related

Illustrator :: Keyboard Shortcuts For Menus?

Sep 12, 2012

I am working on illustrator cs6 on a windows machine and i have recently discovered this cool trick of going to the Windows menu and pressing the P key to give path finder and pressing I to give links etc. and i was wondering instead of clicking, can i acess the Menu commands like windows, view, edit etc without using mouse(or by using keyboard shorts)

View 4 Replies View Related

Illustrator :: Keyboard Shortcuts For Tablet?

Aug 22, 2013

i'm currently using illustrator on a sony vaio duo tablet. my question is...is there a way to create menu items for commonly used keyboard shortcuts (cut, paste, delete) given that when using the tablet the keyboard is effectively inaccessible?

View 5 Replies View Related

Illustrator :: Keyboard And Shortcuts Do Not Respond In CC?

Oct 22, 2013

When I want to choose a tool using my keyboard (for example "A"), it responds after pressing the key 10 times or so.. It takes 2 times longer to make a drawing than with Illustrator CS6.

View 1 Replies View Related

Illustrator :: CS5 Keyboard Shortcuts Menu Is Gone?

Aug 9, 2013

So, after installing CS5 in 2009, it's now 2013, and my keyboard shortcuts are gone. Well. All of the useful ones such as copy, paste, new, open, etc. Save for Web is still working, and a handful of commands I don't use are working, but not the ones I use all the time. I look in the menus for the commands for copy and group and such, but there's no shortcut assigned. And I've been looking online how to fix this, but everyone is saying go into Edit>Keyboard Shortcuts and voila. The only problem, is my Edit menu doesn't have a Keyboard Shortcuts option, and I can't figure out why.

View 2 Replies View Related

Illustrator :: Keyboard Shortcuts Have Gone - All Sticky?

Aug 28, 2013

I love using keyboard shortcuts in Illustrator but since I've upgraded to CC Illustrator on both my computers acts as if the keys are covered in glue when trying to use keyboard shortcuts.
 
I'll hit the keyboard shortcut for the rectangle tool for instance...hit the keyboard again harder, nothing, strange I think and hit again harder, again and again and on the 8th or 10th time it suddenly works. This is repeated on most keyboard shortcuts on and off, not every time.
 
This is consistent and new since CC upgrade across both machines.

View 2 Replies View Related

Illustrator :: Way In CS6 To Assign Shortcuts To Palette Menus

Jan 29, 2013

Is there a way in CS6 to assign shortcuts to palette menus, or would I need something like QuicKeys?

View 5 Replies View Related

Illustrator :: Keyboard Shortcuts Not Working On New Laptop

Apr 12, 2013

I've just bought a new laptop (because my old laptop fell apart) and have installed Illustrator on it.  For some reason, the keyboard shortcuts aren't working properly.  I can't use the spacebar to get to the hand tool, and every time I use a shortcut to get to any other tool, my cursor pauses for a moment before I can move it again.  I'm running CS2 (I know, I know; just don't have the money to upgrade) on a Windows 7 system.  I specifically sought out a computer with Windows 7, because that's what my old laptop had, and Illustrator ran beautifully on it. This problem is really going to negatively impact my productivity.

View 4 Replies View Related

Illustrator :: CS5 - Keyboard Shortcuts Within Blob Brush Tool?

Sep 23, 2012

I am using Illustrator CS5 Blob Brush Tool with a Wacom Cintiq tablet. I would like to be able to vary brush size by assigning a keyboard shortcut to the express keys or touch strip of the tablet. The only keyboard short-cut I can find is Shift+B. which just takes me to the Blob Brush Tool window. Is there a way to vary brush size on the fly by using up/down arrows, etc.?

View 4 Replies View Related

Illustrator :: Assigning Keyboard Shortcuts To Actions Not Working?

Feb 19, 2013

I have two actions that I use quite often. I assigned keyboard shortcuts to them in the actions dropdown menu. However whenever I press the shortcut keys, nothing ever happens. I have tried changing the modifier key combinations...

View 2 Replies View Related

Illustrator :: Customize Keyboard Shortcuts In CS4 - All Settings Lost On Quit

Nov 27, 2008

I have tried to customize keyboard shortcuts in CS4 but each time I quit I lose all settings. (they work fine til I quit). I have saved new sets, overwritten previous sets but they don't seem to save.

Otherwise, speaking as a recent convert from Freehand, CS4 is wonderful now multiple pages have been added

View 7 Replies View Related

Illustrator Scripting :: How To Export JPG

Jan 15, 2014

Quite new to Ai's scripting stuff.
 
I'm having a complicate time with Ai's save to jpg options vs artboard sizes and units conversions.
 
Say, i have a doc (from my client), which they inherited and enhanced for 10 years may be.
 
It's "supposed" to be in millimeters, but artboardRect gives me those values :

-0.27880000000005
436.191388980878
646.457
-0.20900000000074
 
which sound like weird points or pixels.
 
I need to export a jpg (or gif, or png), that will be X pixels wide. For the purpose of the test i set it at 1200.
 
var maxLargeurPx = 1200;
 
First thing, getting the artboard's width :
 
largeurArtboard = Math.abs(thisArtboardRect[2]-thisArtboardRect[0]);
// 646.7358
 
Then i try to have a multiply factor to use
 
coefExport = /*Math.round*/ (100 * maxLargeurPx / largeurArtboard);
// 185.54717397738
 
and then set my ExportFile jpg to this value (i can't give it a number)
 
     // exportOptions.horizontalScale = coefExport
 
That's when it's getting fun : my images are 1204 px wide with or without clipping.
 
Of course, i "can't" resize the doc for each export, especially expecting to have dozens of those, with different values, dimensions, etc.

View 5 Replies View Related

Illustrator Scripting :: Converting PDF To PNG?

Jul 27, 2012

I wrote the following AppleScript to open a PDF file and export is as PNG. I am using Illustrator CS5.
 
The export command gets an error: Adobe Illustrator got an error: Can't get current document.
when it encounters the export command.
 
set inputFile to (choose file with prompt "Open PDF file to convert to PNG:") as text
set exportFile to inputFile & ".png"
tell application "Adobe Illustrator"
if not frontmost then activate
open inputFile as alias without dialogs
export current document to exportFile as PNG24 ¬
with options {class:PNG24 export options ¬
, resolution:300 ¬
, matte color:{red:0, green:0, blue:0}}
close current document saving no
end tell

View 5 Replies View Related

Illustrator Scripting :: How To Add PDF On Top Of Existing PDF

Jun 20, 2012

Im trying to add a pdf on top of an existing PDF in illustrator using a script. This is supposed to be done by anyone at my firm so that is why I want it in a script. I also have a lot of other functions that works that will do some other stuff with this document.
 
Created this from the scripting guide but it doesnt work. Im pretty sure its the embedDoc var thats empty and i dont understand why. Im not sure if the File "points" to the directory of the script or the original file but Ive tried both ofcoarse.
 
This is the masterpiece
 
var embedDoc = new File("/temp/testfile1.pdf");
if ( app.documents.length > 0 && embedDoc.exists ) {
var doc = app.activeDocument;
var placed = doc.groupItems.createFromFile( embedDoc );
}else {alert("suck")}

View 4 Replies View Related

Illustrator Scripting :: Get Layers By Name VBA?

Apr 7, 2012

Is it possible to reference layers or groups by their names instead of their index using VBA? If so, what is the sytax? I know you can do it in Extendscript, but I'm not finding info for VBA.

View 7 Replies View Related

Illustrator :: Scripting - How To Remove Swatch In CS5

Oct 10, 2012

Swatches Swatches Read-only. The swatches in this document.
 
Deletes a swatch from the current document
Set appRef = CreateObject("Illustrator.Application")
Set documentSwatches = appRef.ActiveDocument.Swatches
Set swatchToDelete = documentSwatches(5)
swatchToDelete.delete
 
How am I supposed to be able to make changes to the swatches collection - it is read only...
 
Not supprisingly I have failed to implement this in C-sharp

View 5 Replies View Related

Illustrator Scripting :: How To Cancel All Alert At Once

Mar 13, 2014

I am trying to close alert at once but the loop continues the alert, how can I stop the alert at once

var doc = app.activeDocument
var layersToTargetNameArray = ["Background", "Artwork", "diecut", "size", "sign off panel"];
for (var i = 0, il = doc.layers.length; i < il; i++) {
var curLayer = doc.layers[i];

[Code] ......

View 6 Replies View Related







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