Illustrator Scripting :: ExtendScript Applications Menu Empty?
Jun 20, 2012
I had to reinstall Acrobat Pro X today because combining pdfs was sticking at "checking security".
After the re-install everything went fine with that, but now ExtendScript shows only itself in the application target menu.
(Previously had all of CS6 and CS5 apps in there)
I tried to reinstall CS6 illustrator to see if that added it, got a few install errors, but mainly about not being able to delete files. No luck in restoring the app menu.
If I set
#target illustrator
I get a "illustrator undefined" error, and no script execution. in the middle of a major project which includes scripts in illustrator and combining pdfs in acrobat.
How do I add custom menu items to the main menu in Illustrator?
I would like to build my own menu with scripts that I use alot. This is a powerful feature that I use alot in other programs, but I have not seen any examples of this in illustrator.
I am looking for a script that will look through all the layers in my file and if there are no objects on the layer I would like it to delete them.how to remove a layer with a script, just not how to identify a layer or many layers that may no have objects on them.
Trying to remove any text frames with empty content but it doesn't seem to be removing correct textFrame layers?
var numberOfEmptyTextBoxes = 0; var layersWithNoText = new Array(); if ( app.documents.length > 0 ) { for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
Does this script also cleans up unpainted objects and empty text frames? Personally, I don't think so because the check of the script in extendscript and illustrator results negative.
var idoc = app.activeDocument;var straypoints = []; for (i=0; i<idoc.pathItems.length; i++) { var ipath = idoc.pathItems[i]; if (ipath.pathPoints.length==1) straypoints.push(ipath);} for (j=0; j<idoc.textFrames.length; j++) { var itext = idoc.textFrames[j]; if (itext.textRange.length==0) straypoints.push(itext);} for (k=0; k<straypoints.length; k++) straypoints[k].remove();
I also want to automatically remove all objects who have a white fill (white background) and no stroke.
Problem is a created pdf-file of an html-file of a table that must be cleaned up. There are a lot of stray points, empty text frames, unpainted objects, white "cells" that are also be painted in the pdf.
When writting scripts to Photoshop I can use the app.runMenuItem() method to acess commands in the menus. For example: app.runMenuItem (charIDToTypeID("ZoomIn")) will run the Zoom In command.
Does Illustrator have any such method (or accepts anything like action description) to enable us to acess it´s menu items? For example acess Expand comnand, or Object > Live Paint > Make..
I just got CS6, and I'm wondering how I access menu items using Javascript?Also, I'm looking at the CS6 JS reference, and it doesn't say whether app.activeDocument.selection is Read-Only. I would need this for my purposes in accessing the menu.The item I wanna access is Select > Same > Stroke Color. Seems simple enough.
illustrator scripting but have some knowledge in indesign scripting using javascript.In Indesign we can disable menu item thru menuActions.. Is there any object available like that to disable a existing menu (eg. File>Save).
This has been an issue since at least CS4. If you add a script to your actions via "Insert Menu Iitem" (not sure if it's for all items or just scripts) and close Illustrator, those actions disappear. Apparently, in CS6, Adobe has completely ignored improving including scripts to Actions, which really makes automation powerful. As awesome as CS6 is, that part is pretty lame.
I have developed a script to perform some Custom action in Illustrator. I want to make this script run from a a File Menu Item so it can be invoked easily. Is there a way to customize Illustrator to add a new menu item or modify the existing menu tems functions. For example if the script needs to be invoked when the user click "Save" is there a way that could be done.
I'm a web developer currently slicing an illustrator file for web graphics. Some of the icons and images have shadows, lights, etc, and it's impossible to simply see by a naked eye which pixels contains some shade or nearly transparent color and which doesn't.
It would be extremely useful if I could somehow easily differentiate between empty and non-empty pixels, so I wouldn't miss any when slicing.
A client really likes a font and wants me to incorporate it into her logo. I installed the font and it's working in Pages and other programs, but not in Adobe CS6 applications (Illustrator, Photoshop, InDesign). I installed a ttf and an otf version of the font but neither work. I installed & validated the font with Font Book. I've tried a lot of the fixes I've seen on these forums but nothing's worked. I've restarted my computer a few times too.
i just subscribed to CC as a student, and i cant get photoshop or illustrator to open. the splash screen loads and goes through, and you can see illustrator and photoshop both open, but close a few seconds later with no prompts or errors. i browsed around and saw something about verdana font, but i have it installed.
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?
I've got an issue with Adobe CS3 illustrator not displaying the full UI when used via Microsoft Remote Applications (RDS Windows Server 2008 R2). When connect to the server via a normal RDP interface the connection UI is displayed correctly. The Other Adobe CS3 MC application work fine in either connection method.
I have logged a call with MS and we have tried a varierty of RDS Fixes however we do seem pointing to a illustrator issue over a RDS issue.
I just noticed that Adobe is downloading ExtendScript Toolkit 2 on my computer automatically. I only have Lightroom and CS3. Do I need to have this on my computer?
when I load PS7 I get an error message "ExtendScript.dll failed to load", but when I click OK the program loads normally anyway. I realise that un/reinstalling may solve whatever the problem is but that means going through a whole rigmarole of reinstalling plugins, brushes, gradients etc
I am working on a plugin for adobe illustrator CS6 by using adobe CS6 SDK. By using this plugin I need to add a Me nu Item In File Menu of Adobe Illustrator.
I have used the following code for this: ______________________________________________________________________ ________ SPBasicSuite *mBasic = message->d.basic; AIMenuSuite *sAIMenu; mBasic->AcquireSuite(kAIMenuSuite,kAIMenuVersion, (const void**)&sAIMenu); SPPluginRef plugin;
I have a serious problem with Illustrator CC. The layers and colours palettes are empty when I open files. I have had to revert to version CS6 which works fine.
Mac Pro 1,1 2 x 3 GHz Dual Core Intel Xeon OS 10.7.5
I have been opening my Illustrator vector images in Photoshop to save as JPGs today. All was working fine when all of a sudden I open in PShop, Now all I get is a transparent box. On both rasterized and non rasterized images. This is the latest trial AI/CC by the way. Restarted both programs.