Illustrator Scripting :: Feasible To Disable A Menu Item
Apr 10, 2012
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).
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..
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 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;
Does name property of a page item appear anywhere in the user interface in Illustratpr CS6? I thought it would be the name you assign to it in the Layers palette, but it does not appear to be.
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.
All I am trying to do is move an anchor from one location to another using vbscript. I have searched everywhere and scoured the scripting references but I have not been able to figure this out as of yet.
I am able to select anchor points without an issue....moving those points seems to be a problem.
I have written a small application in .NET that gives color to Illustrator files.I have a layer with 100 color items (paths with a fillcolor). Each one has a unique name. Through that name my program looks them up, takes the fill color and applies that color to another path.Recently there was a change in Design, the drawings that I had to provide of a Fillcolor were no no longer pathitems but rasteritems (imported from photoshop). I thought ok no problem instead of setting the Fillcolor property I'll use the Colorize method on the rasteritems. It worked fine but now and then I came across a situation where raster-item didn't get the color. After digging in to it I saw that it was because some colors are Pantone colors and the colorize method on rasteritems only takes RGBColor or CMYKcolor objects. How to do it with the pantone colors?
I am working on a script that performs a series of things on all of the artwork in a document. At one point, it needs to compare the fill color of every item to a sample color. The problem is, the artwork is a collection of compound path items and path items. When I look for pathItems[x]. fillColor, it works fine. When I look for compoundPathItem[x].fillColor, it comes back undefined. So, I've moved to looking at page items, but I seem to be unable to get to the internals on the page items. If I have a compound path item, how would I address its properties from its parent page item? I tried:
I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
It is possible to apply the Convert to Grayscale(Edit->Edit Colors->Convert to Grayscale) for the selected items in illustrator cs3 in script (javascript)?
I use my script to embeding a placed graphic (MyImage.embed();). Then I always get a group with the correct paths and two clipping paths in a grouped grouped groupItem.
My question is: I want to delete the two clipping paths to get only the correct paths of the graphic.
I'm trying to change the colors of a pathItem corresponding to the string value of several text fields in my document. I've been successful in changing the fill and stroke color of the pathItem, but I can not find any reference in the Illustrator Javascript Guide for accessing additional strokes and/or fills that have been applied to the object in the Appearance panel.
Is it possible to disable screen updating in illustrator whilst running a script and if so how?
I have developed some scripts to create artwork in Illustrator but I would like to speed them up and presumably avoiding having to watch it happen on the screen would work with this.
I have been going crazy trying to get my custom scripts to appear in the "Scripts" menu item under "File" in Illustrator CS4. I've tried placing them in Presets > Scripts, I've tried creating a folder under "Plug-Ins" called "Scripts" and placing them there, and several other places in an attempt to find anything that will work, but so far nothing has. I've also tried deleting the Illustrator Prefs but that didn't work.
I can't seem to figure out a simple/direct method to identify the index of the selected item in a list box.
I feel like I'm missing something, but I can't seem to figure which (if any) property returns an index number if you use it with the .onChange callback for a ListBox.
The following code accomplishes what I need but isn't particularly efficient or elegant and can get muddled if you introduce multiple lists to check.
Any way to duplicate this same behavior with better code
I was wondering whether we can disable/enable any menu item/group in Illustrator? I am working on Illustrator CS4, 5 on windows. To be more specific, can we disable the kSaveMenuGroup, so that the save options appear disabled..?? I tried using the methods described in AIMenuSuite structure reference. But, this only disabled the pre-defined groups added by the plugins.
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.
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.
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.
The balloon tip that pops up is just an explanation of what the item is for or what it does when selected. I think I would be pretty safe in guessing that whenever a balloon tip appears there is a help button to go to any particular item. How these things can be disabled or turned off. I did find somewhere, a while ago, a way to edit the registry. But that was when I was using Windows XP.
Now I'm using Windows 7 and the only place these balloons get under my skin is in AutoCad. Which is vanilla AutoCad version 2010. I guess I have to give up trying to insert an image. I have a *.jpg file but no matter what folder I put it in this "insert image" function don't or can't see it for some reason.
I have developed a script that act on the layers individually so it would be great if I could add a new command in the layer context menu (the one that has Blending Options..., Duplicate and Delete Group, Copy,Paste and Clear Style and add or remove colors from the "eye" icon, etc...
I know that you can add the script to File/Scripts submenu but if I had access to it directly from that context menu, it would be much better. I have seen a script that adds a new top menu item to the menu bar of the ESTK so I am hopeful it can be done something similar in PS.
I am trying to create an action to create a new layer by copying the bg layer, add a layer mask to the new layer and then start the Tilt Shift filter. All works until I go Insert Menu Item and choose Blur>Tilt Shift. It just doesn't get added to the action. Other menu items do work. I'm assuming this is an oversight in the implementation of CS6?Can't see that that can be the case.