Can I run a menu command in illustrator CS5 using extendscript

I saw it in Indesign, but can't seem to make it work in illustrator. If this isn't the case, could someone tell me how I group all the items on a layer run a function and then separate them again. I am new to this fairlt and struggle with the documentation

Thank you

Bob

Hi Bob,

It was a little more difficult.

(And there are already a few handful Illustrator Scipters anywhere in the world.)

At first, you can try something like this:

// https://forums.adobe.com/thread/1535178
// MoveSimpleArtwork2NewGroup.jsx
// regards pixxxelschubser
var aDoc = app.activeDocument;
aDoc.selectObjectsOnActiveArtboard();
var sel = aDoc.selection;
var newGroup = aDoc.groupItems.add();
for (i=sel.length-1; i>=0; i--) {
    sel[i].moveToEnd(newGroup);
    }
alert("done");

Have fun

Tags: Illustrator

Similar Questions

  • How can we add a menu in Adobe Illustrator CS3?

    Hello

    I want to create a new menu in the structure of menus of Adobe Illustrator, and I want to call another application through this menu. After hours of searching in the web, I came to know that I have to work with Plugin programming. So I downloaded the Illustrator from adobe CS3 SDK and started programming using Visual Studio .NET 2005 with the code examples provided with the SDK. And I'm still not able to find any solution for adding a new menu. The problem is the documentation provided with the sample code is too short, I'm not able to understand the control flow, the functions used in the sample code.

    Please help me!

    Farida kaid

    I disassembled the code example for the bare minimum for you:

    -snip-

    Error AIErr = kNoErr;

    Add the other menus.
    AIMenuItemHandle throwAwayAIMenu;
    AIPlatformAddMenuItemData throwAwayMenuData;
    AIMenuGroup throwAwayMenuGroup;
    char strBuffer [255];

    #define kMenuPlayMenuGroup "Menu group to play".
    #define kSDKMenuGroup 'Group SDK'

    First, we create a normal menu of plug-ins to use a hierarchical root
    throwAwayMenuData.groupName = "utility window";
    throwAwayMenuData.itemText = SUctopstr ("my menu text group");

    error = sMenu-> ToolBarMenuButton.AddMenuItem (message-> d.self, kSDKMenuGroup, & throwAwayMenuData,
    0, & throwAwayAIMenu);

    If (error)
    GoTo error;

    Now declare us the menu item, a menu group
    sMenu-> AddMenuGroupAsSubMenu (kSDKMenuGroup, 0, throwAwayAIMenu, & throwAwayMenuGroup);

    Now we can add menu items to it.
    throwAwayMenuData.groupName = kSDKMenuGroup;
    * strBuffer = '\0 ';

    throwAwayMenuData.itemText = SUctopstr ("my menu text");

    error = sMenu-> ToolBarMenuButton.AddMenuItem (message-> d.self, "menuname1", & throwAwayMenuData, 0, & throwAwayAIMenu);

    If (error)
    GoTo error;

    -snip-

    Basically, this is going to create a group menu (if it is not already present) called my "text menu group" and then it creates a menuitem in this group called "my menu text. If you select this menu it will trigger notifications that occur in menuhandler_go_item() or something like that - it should be quite obvious in the code example. Normally cling you to the handle, you get when add a menuitem in the handler code, you can tell what menu item is triggered, but if you just do not let ‑‑ you will not be called unless that its your only menuitem. Then, you just do whatever it is you need to do.

    I don't know what you mean by 'add url' for the plugin. You mean you want to add a menu when you click on the point that launches the browser to a specific URL? If not that, I'm not sure what you mean.

    Launch a .exe or another process is not in the scope of the Illustrator SDK - which is the specific platform and you'd better read the Win32 SDK documentation or find a forum for General Windows programming.

  • run scripts in photoshop via illustrator cs5

    Hello

    Is it possible to run scripts in Photoshop via illustrator

    I have 2 other script

    script 1 work in illustrator with eps and export to JPEG file

    text 2 where I want to cut the jpeg exported to illustrator in photoshop, then save it back

    I have 2 other script with me

    can someone help me with both clubs and run them at the same time...

    Thank you
    APPU

    Using BridgeTalk to speak of Illustrator to Photoshop, here is a sample of Mark

    Illustrator script to open the file in Photoshop

    or use inter communication app

    Open PS, open a document

    // start your illustrator script
    var Aidoc = app.activeDocument;
    /*
    continue with your script
    
    */
    // when ready, call your photoshop script
    // this sample alerts the active document name and closes it
    photoshop.executeScript("alert('document name: ' + app.activeDocument.name); app.activeDocument.close()");
    
  • I can't run videos on websites like you tube using a macbook pro after installing firefox 3.6.15

    I have a macbook pro. Firefox has performed well for years, but after downloading firefox 3.6.15 I can't run all videos from web sites like you tube or Itunes.

    Loading the web page, but the video window does not show at the top, nor all the controls

    When I tried to run a trailer since Itunes sound was there but not the video.

    My pluins are up-to-date.

    I had the same problem and it seems that Adobe Flash Player 10.2 is the culprit. Back this version and everything seems to work properly again.

  • where can I get my free upgrade to illustrator cs5

    Just knowing that I can get the free update for illustrator cs4 cs5... will .or we ask if no answer at HOME. !!!

    Thank you

    Zoom,

    More here:

    http://technolux.blogspot.co.nz/2011/02/Adobe-direct-download-links-less-Akamai.html#more

  • Can I run CS6 on the desktop and CS5 on laptop at the same time?

    First of all, let me start by saying that I am a small business owner. I'm at work between 10 to 16 hours a day, every day. I have very little time in my life that I'm not sitting at my desk main macintosh, unless I SLEEP.

    All my my work files on my desktop in CS5. I intend to continue to use CS5 to all working files for now. I bought only CS6 to backsave.

    But I want to LEARN CS6 and work slowly in before making a sudden or dramatic change.

    I want to turtorials, and go through the CS6 curve on my laptop. He finds peacfully beside me, every day. No downtime, I can play, learn and experiment. Without fear of doing any harm to my CS5 files or my mac of main production.

    If I try to run CS5 on the desktop and CS6 on the laptop, at the same time - they CALL HOME, STOP, FREEZE, LOCK UP, or and send me, in any form and to ADOBE PRISON or ABUSE CENTER?

    Someone has an answer for this?

    Yes, I have the answer. No, nothing horrible will happen.

    Bob

  • Location of the menu for the Illustrator artboard resizing?

    passed the day to reset my workflow and keyboard shortcuts that I have the transition from CS5.5 on CC. A simple question:

    I n Illustrator CS5.5, I was able to use a keyboard shortcut to resize a work plan selected once it was open (I don't remember if it was a defect or a custom shortcut, but I used SHIFT + A). I can't find the menu command (or a matching section in the keyboard shortcuts dialog box) to do the same thing in Illustrator CC

    Thank you!

    Use the work plan

  • Running a SQL command in my bean class

    Hi all

    I use JDeveloper 12.1.2.0.0.

    I have an interest in running a query in my method of bean. I did some research and I always have a code but it does not find the method that the method requires so I tried to add the query in my AppModule and I added my method as a data control, but how do I access and change my method of bean?

    The page with the code that does not find the method: http://jjzheng.blogspot.pt/2010/11/run-single-query-in-application-module.html

    Gives me: 'Method 'getDBTransaction' not found'

    The page that creates my method as a data control: http://amit-adf-work.blogspot.pt/2013/09/how-to-execute-sql-using-adf-application.html

    This is the right way? How can I run a SQL command in my bean class?

    Kind regards

    Frederico.

    This is the code I am using

    GET A METHOD OF PAGEDEF AND RUN

    get the link containe

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    get an Action or a MethodAction

    Method of the class OperationBinding = bindings.getOperationBinding ("YourMethodAction");

    If there are parameters to define...

    Map paramsMap = method.getParamsMap ();

    paramsMap.put ("param", "value");

    execute the method

    Method.Execute ();

    List errors = method.getErrors ();

    If (! errors.isEmpty ())

    {

    handle errors errors here is a list of exceptions!

    }

    no error return to normal work

    Timo

  • Windows 7 on a computer hp laptop, start menu never ceases to appear and disappear if often I can't type on the command line.

    Windows 7 on a computer hp laptop, start menu never ceases to appear and disappear if often I can't type on the command line. I can open Google Chrome and click here to read the games. If I need to type anything it either in the menu popping up any program does not allow me to do. I have it in safe mode to try to run a full scan check but not able to do. Any suggestions?

    Help, please

    You have another keyboard, say a connected USB, try? If this occurs only when you try to type, I was wondering if the keyboard is faulty and its operation to sort of the windows key?

    If this is likely, you can try https://support.microsoft.com/en-us/kb/216893 if you click on the toggle bits.

    If not that, perhaps of possible malware? Can you go as far as to update your antivirus software and then run a full scan to see if it finds problems? When you say "able to do" whats happening?

  • How can I run CHKDSK /F on a blue screen on Windows XP? I can not at all to a command prompt.

    I accidentally shut down my computer for an update.  Now I can only get a blue screen with a message saying that a problem has been detected and I need to disable or uninstall any anti-virus, backup utilities or disk defragmentation.  He told me to check my hard drive configuration and to search for updated drivers.  Then it is said to run CHKDSK /F to check for hard drive corruption.  The technical information is: 0 x 00000024 (0 x 00190203, 0x8638c6c8, 0xc0000102, 0x00000000).  I can't run Windows in safe mode, I can't seem to run in its final configuration, nor can I get it to go to a command prompt - it just goes back to the blue screen.  I also tried to put in my XP disc that came with the computer, and it helps not at all either.

    Unfortunately, the Microsoft Answers forum still does not prompt for any kind of information system when a new question is asked, so we don't know anything about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Maybe someday the dialog box 'ask a question' forums XP will ask these questions automatically when a new thread is started so I don't have to ask every time.  It might even be possible to solve a problem in a single response when enough information is provided.

    I think I'm about to lose hope on this fantastic.

    The question was preceded by a loss of power, aborted reboot or abnormal termination? (This includes the plug pulling, buttons power and removing the battery).

    These can cause corruption in the file system that must be fixed before you do anything else.

    If none of these events occurred (or even if they have not taken place), you must verify the integrity of your file system before anything else (especially "try" things).

    There is zero logic to begin to try to begin to try to modify or copy files to a hard drive that has a corrupted file system, so this must first be fixed using the XP chkdsk program and run chkdsk on your hard drives may solve your problem completely.

    Use the XP Recovery Console to check the file system on your HARD drive and fix the problems and then try to start your system - this may be all you need to do.  Or, you are welcome to just start trying things that might work.

    Boot into the Recovery Console Windows using an XP bootable installation CD.

    If you have no XP bootable media (or aren't sure you have) create a bootable XP Recovery CD of Console and do not forget.

    This is not the same as recovery disks that may have come to a store to purchase the system.

    You can make a bootable Recovery Console CD by downloading an ISO file and burn it to a CD.

    The ISO bootable image file you need to download is called:

    xp_rec_con. ISO

    Download the ISO from here:

    http://www.mediafire.com/?ueyyzfymmig

    Use a new CD and this simple and free program to burn your ISO file and create your bootable CD:

    http://www.ImgBurn.com/

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    It would be a good idea to test your bootable CD on a computer running.

    You may need to adjust the computer BIOS settings to use the CD-ROM drive as the first device to boot instead of the hard drive.  These adjustments are made before Windows tries to load.  If you miss it, you will need to restart the system again.

    When you start on the CD, follow the instructions:

    Press any key to boot from CD...

    Installing Windows... going to pronounce.

    Press 'R' to enter the Recovery Console.

    Select the installation that you want to access (usually 1: C:\WINDOWS)

    You may be asked to enter the password (usually empty).

    You should be in the folder C:\WINDOWS.  It's the same as the

    C:\Windows folder that you see in Solution Explorer.

    The Recovery Console allows base as file commands: copy, rename, replace, delete, chkdsk, fixboot, fixmbr, cd, etc.

    For a list of the commands in the Recovery Console, type help at the prompt of commands or read on here XP Recovery Console:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/recovery_console_cmds.mspx?mfr=true

    A good idea before you start things must first verify the integrity of your file system by using the chkdsk command.

    In the command prompt window, run the chkdsk command on the drive where Windows is installed to try to fix any problems on the afflicted player.

    Running chkdsk is fine, even if he finds no problem.  It won't hurt anything to run it.

    Assuming your boot drive is C, run the following command:

    CHKDSK C: /r

    Let chkdsk finish to correct the problems, he could find.

    It may take a long time for chkdsk complete or they seem to be "stuck".  Be patient.  If the HARD drive led blinks always, chkdsk is something.  Keep an eye on the amount of the percentage to be sure that it is still making progress.  It may even seem to go back sometime.

    You must run chkdsk/r again until it finds no error to correct.

    Remove the CD, and then type "exit" to exit the RC and restart the computer.

    You have not to set the BIOS to boot the disk HARD since the CD won't be.

  • Adobe Illustrator CS5 can run on Windows 10 laptop

    I want to buy Adobe Illustrator CS5. I have question in mind if it will work on Windows 10 or not?

    You can only buy it used (which is dangerous due to fraud)

    Illustrator CS5 is 32-bit and Windows 10 is a 64-bit OS, unstable kind of compatibility (as appropriate).

    Illustrator CS5 is not officially supported on Windows 10 and there are not too many people in this forum has been to get it to run, so you're basically on the search of your own stuff.

  • Can I insert an image on a menu command?

    I do the a menu button.

    It is possible insert a picture on a menu command?

    See, image setting

    img.JPG

    No, it isn't.

  • I can not run any .bat and cannot open the cmd prompt

    I can't run the files .bat and most horrible thing I've ever met is a missing cmd.exe. It's starts with me trying to play Assault Cube, which must run on a .bat instead of .exe like other games. But whenever I try to open a batch file, it keeps gives an error "Windowscannot find"file to the .bat file (directory)". Make sure you typed the name correctly and try again. "Each. Time.

    So, as everyone will do, they search the Internet. I would like to do is short.
    A virus? No, my laptop is clean after scanning with Malwarebytes. You have to open as an Admin? Yes, but I got an error saying "this file does not have a program associated with it for performing this action." Please install a program or, if such is already installed, create an association in the default programs control panel'.» Tried to do? Well I think that it is impossible for the command prompt to be included in the default values list. I tried open the command prompt by typing "cmd" and pressing on enter the Start Menu? So many times I've tried, but it's endless. Whenever I do this, the command prompt displays upward and 0.5 seconds later, it's farm/accidents/output by itself. Now 0.1 second.
    So, I thought on this subject and I typed in the start 'Command Prompt' Menu. When I see the icon, it's like the path or the file is missing of some sort. So I click right on the top that says "Command Prompt" and click on the option "open the file location, which made me feel weird as there should be no such thing as an option for a file that is part of the folder system32." I was directed to ' C:\Users\Acer\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories'.
    I found a shortcut to the command prompt, but I checked the file in "position to open the file", the location of the file is not displayed (opens in a new window as every time it is done). Also the guest who said when every time the .exe is missing is not indicated where we gave options to remove the .lnk. But it shows same either. If the file should be there, but it seems that the cmd is absent when I searched in system32.
    So, I'm at the blunt end to try to do things and to rely on some other cmd work and one question remains to ask with your opinion, are there links to download Microsoft cmd or is it even safe to use the another cmd PCs or by downloading?

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    Hope this information is useful.

  • Get menu command strings

    Recently, I need a way to integrate work plans in sight and learned that I can do it using the app.executeMenuCommand("fitall") . When I searched through the scripts of PDF files, I found no mention of this method.

    Then I have been aware of this question [JS] CS6 + executeMenuCommand2. There are lists of commands and some links in the responses. I have visited the links and this CS6 AI "app.executeMenuCommand" was the most enlightening to know where and how to get these commands. So I followed what the author.

    1. Create a new document
      1. Profile: Print
      2. Size: letter
    2. Create a new action game
      1. Name it "My Set".
    3. Create a new Action within the new series
      1. Name it "adjust the work plan.
    4. Insert the menu item
      1. Select view-> Fit artboard in the window.
      2. Click OK
    5. Record the Actions file
      1. File name is 'My Set.aia'

    When I look at the file "My Set.aia", I see that there are 3 parameters. The first is the menu command. The second is the name of the command. I don't know what is the third. The parameter values are in hexadecimal. Once I have become "666974696e" in ASCII, I get "polarized", the chain of menu command "fit the artboard in Window.

    /parameter-1 {
      /key 1769238125
      /showInPalette -1
      /type (ustring)
      /value [ 5
          666974696e
      ]
    }
    

    See the original and the files converted action.

    I tested with a few other commands, and it seems to work. Although I could not make it work to "fit in Window". Where to insert the menu in action item, select view-> Fit all in window does nothing. Type 'Fit all in window' and clicking on 'Find' also do not work. Gives the warning "no matching this name menu item was found. Why is this?

    Sigh. I wish an official documentation for app.executeMenuCommand () , and these commands were easier to access.

    Ok. It seems you are totally right.

    It is not possible to save this menu command in CS6 (64-bit) and not in CS6 (32 bit). Maybe a bug in this version of Illustrator.

  • Add custom commands menu commands

    Hello

    How can I add the commands(jsfl-files) custom menu commands to animate?

    Thanks in advance,

    Dennis

    Hi Dennis,

    To add your jsfl files as orders under the menu of commands in CC host, follow these steps (for animate CC 2015.2):

    1. close Animate CC runs.

    2. copy your jsfl files to the following location:

    On win: C:\Users\\AppData\Local\Adobe\Animate 2015.2\\Configuration\Commands\ CC

    On Mac:/Users//Library/Application\ Support/Adobe/Animate\ CC\ 2015.2 //Configuration/Commands\

    3. launch Animate CC and check out the menu of commands.

    Thank you

    Prashant

Maybe you are looking for

  • Tecra S1: Step by step how to reformat HARD drive by using the product recovery CD

    OK guys, I'm about to return my lease (Toshiba Tecra S1); because the video card is 'us' and I would like to reformat the drive and return the system to its original state by using the "product recovery cd-rom provided Toshiba." My problem is that th

  • T430 discrete GFX Linux does not start

    Hi all. I recently bought a T430 with the NVS 5400 M 2 GB discrete GPU with the intention to use it as my machine of dev for the CUDA work. Unfortunately, when I put the machine to start with checking Optimus OS off and the discrete value GPU, I can'

  • want to cancel Windows Live; cannot get into my msn email account * address email is removed from the privacy *.

    I signed up for Windows live on Facebook. MY MISTAKE!   How can I cancel it?  I had my email account: * address email is removed from the privacy * for many years.  NOW I CAN'T ACCESS IT.    Now, he asks me my password which I do not remember.  When

  • Windows 8: no multitouch on the Vostro V131 touchpad

    Dear all, Is it just me or Windows 8 cannot recognize the V131 as capable of multitouch touchpad, or dedicated drivers are available from Dell on http://www.dell.com/support/drivers/us/en/04/Product/vostro-v131? If I'm wrong and it is a question, is

  • Download cascade 302

    I have an HTTP 302 (moved temporarily) error when trying to download the Windows version of cascade in France, while he seems to be ok downloading in North America. When I try through a US proxy it works (but very very very slow, it's a free proxy).