Prompt user to select multiple objects within an action

Hi there,
In illustrator, is it possible to select multiple objects within an action or prompt the user to do so when needed ?
I know about the note trick but I am not quite happy with this one. I would like another solution if there is any.
Thanks !!

In order for a macro (Action) or script to select something, it has to have access to some criteria by which to target the object(s). Actions are much more limited in this regard than scripts, but there are some "hooks" you can employ.
For example, Actions will record the assignment of a Note in the Attributes palette. So if your Action at least starts with the object(s) of interest selected, you can take that opportunity to record the entry of a string in the Note field. Thereafter, if the object(s) become deselected, the Action (or another Action) can re-select them by means of the Select Object(s)... step. When manipulation of the target object(s) is done, you can record changing its note to nothing, to prevet its being seleced by the same Select Object(s)... step later.
JET

Similar Messages

  • How to prompt user to select multiple files in file dialog using scripts

    Hi, is there a way to allow user to select multiple files inside the file dialog using scripts? So not just something like "*.ai" or "*.eps" but where the user can actually use their shift key to select a batch of files inside the file dialog and then the script would process each one.
    Thanks!

    // Main Code [Execution of script begins here]
    here's what I have so far. it would also be nice to not have illustrator stop at errors.. right now, it skips dialogs but on errors, it still stops.
    // uncomment to suppress Illustrator warning dialogs
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts, folderName;
    var fullPath = "";
    var finalSlash;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
    f = find_files(sourceFolder);
    function find_files (dir)
        return find_files_sub (dir, []);
    function find_files_sub (dir, array)
        var f = Folder (dir).getFiles ("*.*");
        for (var i = 0; i < f.length; i++)
            if (f[i] instanceof Folder)
                find_files_sub (f[i], array);
            else
                if (f[i].name.slice (-3).toLowerCase() == ".ai"          || f[i].name.slice (-4).toLowerCase() == ".eps")
                        //convert the array-listing to a string so we can manipulate it
                        fullPath = String(f[i]);
                        //find the position of the last / to indicate where the filename starts
                        finalSlash = fullPath.lastIndexOf("/");
                        //get the foldername by "slicing" from start to where finalSlash is located
                        folderName = fullPath.slice(0, finalSlash).toLowerCase();                   
                        sourceDoc = app.open(f[i]); // returns the document object
                        // Call function getNewName to get the name and file to save the pdf          
                                                      targetFile_PNG = getNewName(".png");
                                                      if(targetFile_PNG.exists) {
                                                      } else {
                                                                pngExportOpts = getPNGOptions();
                                                                sourceDoc.exportFile(targetFile_PNG, ExportType.PNG24, pngExportOpts );
                        targetFile_PDF = getNewName(".pdf");
                        pdfSaveOpts = getPDFOptions();
                                                      sourceDoc.saveAs(targetFile_PDF, pdfSaveOpts );
                                                      targetFile_SVG = getNewName(".svg");
                                                      svgSaveOpts = getSVGOptions();
                                                      sourceDoc.exportFile(targetFile_SVG, ExportType.SVG, svgSaveOpts );
                        sourceDoc.close();
                        array.push (f[i]);
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName(ext)
        var ext, docName, newName, saveInFile, docName, finalDot
        var loop = 0;
        docName = sourceDoc.name;
        ext = ext; // new extension for pdf file
        newName = "";
        finalDot = sourceDoc.name.lastIndexOf(".");
        while(loop < finalDot)
            newName += docName[loop];
            loop = loop + 1;
        newName += ext; // full pdf name of the file
              newName = newName.replace(" [Converted]","");
        // Create a file object to save the pdf
        saveInFile = new File( folderName + '/' + newName );
        return saveInFile;
    getPDFOptions: Function to set the PDF saving options of the
    files using the PDFSaveOptions object.
    function getPDFOptions()
        // Create the PDFSaveOptions object to set the PDF options
        var pdfSaveOpts = new PDFSaveOptions();
        // Setting PDFSaveOptions properties. Please see the JavaScript Reference
        // for a description of these properties.
        // Add more properties here if you like
        pdfSaveOpts.acrobatLayers = false;
        pdfSaveOpts.colorBars = false;
        pdfSaveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGHIGH;
        pdfSaveOpts.compressArt = true; //default
        pdfSaveOpts.embedICCProfile = false;
        pdfSaveOpts.enablePlainText = false;
        pdfSaveOpts.generateThumbnails = false; // default
        pdfSaveOpts.optimization = true;
        pdfSaveOpts.pageInformation = false;
        pdfSaveOpts.preserveEditability = true;
        return pdfSaveOpts;
    function getSVGOptions()
              var svgSaveOpts = new ExportOptionsSVG();
              //just using defaults aside from what's written below
      //see http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/illustrator/ ExportOptionsSVG.html
      svgSaveOpts.embedRasterImages = true;
      svgSaveOpts.sVGTextOnPath = true;
              return svgSaveOpts;
    function getPNGOptions()
              // Create the PDFSaveOptions object to set the PDF options
              var pngExportOpts = new ExportOptionsPNG24();
              // Setting PNGExportOptions properties. Please see the JavaScript Reference
              // for a description of these properties.
              // Add more properties here if you like
              pngExportOpts.antiAliasing = true;
              pngExportOpts.artBoardClipping = false;
              pngExportOpts.horizontalScale = 100; // scaling to 350%
              pngExportOpts.saveAsHTML = false;
              pngExportOpts.transparency = true;
              pngExportOpts.verticalScale = 100; // scaling to 350%
              return pngExportOpts;

  • Dragging to select multiple objects within a Pages document

    I am trying to select multiple, closely spaced objects (text boxes, lines, shapes, etc) within a Pages document. They are located ~1/3 of the way from the left margin of the document, and there are objects both to the left and the right of this group.
    I know that you can click outside of the Pages document with the mouse, then drag into the document to select multiple objects. However, is there any way to drag to select multiple objects without first clicking outside the document?
    Command click is a pain in the butt because I inevitably mis-click and have to start again to select all objects. I don't like having to drag in from the margin and then command-click to de-select objects I don't want.
    is there not an option to just shift-click to form a selection box around objects within the document? It seems like there should be a simple solution to this, but I have yet to find it.
    Thanks

    mattcass wrote:
    Command click is a pain in the butt
    Isn't it just! The people who created Pages should get a right spanking on this fundamental stuff up.
    All you can do is try again. I find myself repeating the same task over and over in Pages simply because you can't easily grab things.
    When you do +command click+ try and get the edges of objects, otherwise Pages thinks you are still trying to click inside the object.
    Once you have +command drag lassoed+ multiple objects you can +shift command click+ to unselect the ones you don't want. Again a problem if they are close to each other.
    Peter

  • I cannot select multiple objects.

    I cannot select multiple objects within the file I'm currently working on.  This has worked in the past.  Have I inadvertently changed a setting?

    Are you trying to select via Shift+click? If yes, try selecting items in Layers Panel and from the fly-out menu, choose Select items and see if it works.
    Regards,
    Pooja

  • Selecting multiple objects in Pages

    In Appleworks, I used to use the cursor to drag a rectangle around a collection of objects to select them all. Is there a quick select multiple objects in Pages?

    This kind of question is answered in *_Pages User Guide_* which you may download for FREE thru the Help menu.
    Yvan KOENIG (VALLAURIS, France) mardi 1 mars 2011 15:11:03

  • Is there a way to shift select multiple objects in layer palette, not just highlight multiple object

    Hi,
    Is there a way to shift select multiple objects in layer palette, not just highlight multiple objects?
    I would want to do this when I have a bunch of objects hidden under some other objects on the artboard. This feature is available in PSD, so I assume Illustrator should have it.
    Thanks!

    Thanks for the reply, Harron.
    I'm using CS4 & below.
    Highlighting object - click on object in layers palette & it turns blue
    Select object - click on object in layers palette to the right of the circle, which creates a square, and selects the object on the artboard
    How do I shift-select multiple objects in the layers palette...select 50 objects with a click, then a shift-click? Shift-select works for highlighting, but not selecting. On most programs shift-select is used to grab a bunch of stuff...:0)
    In the past I have inadvertently selected multiple objects in the layers palette, by somehow alt?-dragging over the layers...or something...I can't re-create it.

  • Selecting Multiple objects in Pages for ipad

    On regular pages, I can select multiple objects (text boxes, etc) by holding shift then clicking on it. Is there a way to do that in Pages for IPAD?

    With one finger select an object and hold with another finger select the other objects one by one.
    Message was edited by: David M Brewer

  • Pages '09: Can't select multiple objects with mouse?

    Hello! I want to select some shapes. I know that I can hold down shift and click on them individually one by one, but they're very many and grouped together, so I just want to draw a 'selection-rectangle' with the mouse, just as it works in all other programs I've ever used. But this doesn't seem to work. What am I doing wrong?

    Hello Stef,
    You can simply click and drag over an area to select multiple objects if you are in a Page Layout document, but since this is your fourth post you may be new to Pages and you may not yet even be aware of the Page Layout mode. At the top of your Pages window is the document title and next to the title in parentheses are the words "Word Processing" or "Page Layout".
    So, in a Word Processing document, it's just a little bit more involved. In the upper left corner of the window, click on the View icon and select "Show Layout". You will see gray around the edges - your desktop, a white sheet - your paper, and three rectangular outlines - the header field, the text frame and the footer field. This assumes that you have the Header and Footer turned on.
    As you move your mouse, the text insertion bar, a vertical line with curved features top and bottom, will move about the document. Move the insertion bar to the margin, outside of the boxes, and press and hold the COMMAND key. Your cursor will change to an arrowhead. Now you can select multiple objects by click-dragging, just as you are accustomed to doing in other applications.
    Regards,
    Jerry

  • Selecting Multiple Objects with Output Preview Causing Problems

    I'm trying to edit a PDF and need to select multiple objects. Without Output Preview open, I can easily select all the items I need using the shift key. With Output Preview open, whenever I try to select the second object, Output Preview creates a sticky note, instead of selecting the second object.
    I am also using the PitStop Pro plug-in.
    Any idea how to correct this problem? Thanks!

    Unfortunately it seems that the new sticky note feature with the output preview in Acrobat XI uses the same keyboard shortcut as multiple selection tool in Pitstop (shift).
    Closing the output preview is the easiest way to get around this issue.
    We could consider changing the key for multiple selection in PitStop, but 'shift' is pretty much a default, so what could we change it too?
    If anyone has any thoughts could they email me, I am the product manager responsible for Pitstop at Enfocus and my email is '[email protected]'
    All feedback gratefully received.

  • Selecting multiple objects with Direct Select tool

    I'm working in InDesign CS4 on a pc and am having trouble with the Direct select tool. I go through my document selecting multiple objects, change the color of the selected boxes only to find that about half of my objects have "deselected" themselves. Has anyone else had this problem? Or does anyone have a fix I could try? Thanks!

    I know, I was pretty vague.
    Are you continuing to hold the shift key with each addition? Yes
    Are you trying to selct things on more than one spread? No
    Are you being careful to click inside each object other than an image and on the frame for an image? Yes

  • CS6: Select multiple objects - Hide border?

    Hi!
    Lots of our layouters are bothered because of the same thing: If you select multiple objects in CS6, you'll get a border which surrounds all of the selected objects. That way it's quite difficult to see, which items are already selected and which aren't, especially if they are all aligned.
    I hope, you understand what I'm talking about. I displayed it in the following screenshot.
    The text frame and the yellow frame are selected. The red one isn't but you have to look closely to see that, because there is this thin border spanning over all of the objects, covering the red object, too.
    Is it somehow possible to hide / disable this "extra" border? If you have a lot of objects on the page (with backgrounds and everything), the layouters have some problems with seeing what they already selected and what they didn't select yet.
    Best,
    Anke

    @Bob: quite hard, if you have about 50 elements on one layer (the layouts are done with only two major layers .... don't ask me -.-)
    @pixxel schubser: nope, I mean the overall border, that covers all of them in one big frame...
    @Sandee: I know. But tell that to 20+ layouters, who want their program to work the same way as it did before (CS3...)... They are really confused by this extra border.
    @Ellis: Wow, I didn't try that! Great, no border!!! Only that seems to be a bit buggy. If you have a lot of objects, after time it seems to "lose" some of them you selected at the beginning. Still, I'll tell the layouters, maybe this will make them a little happier Thanks a lot!
    For all, who didn't quite know what I was talking about... this is Ellis' solution without the extra border:

  • Can't select multiple objects in Pages 10 with "command+click".

    I've always been able to "command+click" to select multiple objects in Pages. However, since I updated to Pages 10, this shortcut does not work. Any thoughts?

    Apple is trying to make the iOS version and Mac versions match. Some incredibly stupid or lazy developers/designers took the iOS version as the standard and changed the OSX version to match. The stupidity in this is that iOS is not a good platform for work in the first place, it's incredibly cludgy to edit/write documents on the ipad, email maybe but editing real documents is a pain is the wazoo. The iPad is ok for watching videos, reading, browsing, but not for efficient work. Being able to select multiple items and work on them is a basic feature of most editors and has been for years. Microsoft Office for OSX is so much better that it will be difficult for Apple can catch up even if they wanted to. It's too bad for Apple makes prettier apps. And now MS Word for the iPad is available and free.

  • Selecting multiple objects in Pages '09

    Hi everybody,
    I was just wondering how to easily select multiple objects in Pages, as in Keynote. I mean, in Keynote you can just drag the mouse over the objects you want to select, and that's it. But in Pages I haven't be able to do that (not even with option or command keys), so I have to press shift and click on every object I want to select. This is quite tedious when you want to select many objects.
    Any help on that?
    Thanks,
    Rodrigo

    Thanks to both, I already sent my feedback to Apple, and I really hope that iWork X comes out soon, with more wonderful features.
    I have tried fruhulda's advice and it works, my thanks for that! My question now is: Why Apple doesn't provide any help on that? I knew that cmd-A selected all the floating objects on the document, but I needed to select only a few of them. That was the only Keynote feature I was missing (apart from the themes, with all those predefined colors, backgrounds, textures...).
    So thank you!
    Rodrigo

  • Select multiple objects across pages (cs3)

    Hi
    Is it possible to select multiple objects across pages? All objects have an object style attache and have to be moved 0,7 mm to up. Maybe with a script?
    thanx
    S

    OK, the move part was much easier than I had anticipated. I think I was thinking of moving graphics inside a frame (or did they just make it a lot easier in CS3?).
    At any rate, this one does every page in the document. Just change "test" and the move amount to your preferences...
    tell application "Adobe InDesign CS3"
    tell active document
    set myObjectStyle to object style "test"
    repeat with i from 1 to count every page
    tell page i
    select (every item of all page items whose applied object style = myObjectStyle)
    end tell
    move selection by {0, "-0p7"}
    end repeat
    end tell
    end tell

  • Delete multiple Layers by selecting multiple object?

    Hi Designers,
    I'm going to connect my AI file to After effect.
    So I had to create lots of layers in order to edit them seperatly in After effects.
    But it seems like my amount of layers are too large because AE always crashes (not responding -> Force quit)
    So I wanna break some stuff down in multiple AI files, but I don't wanna go and select every layer and delete it.
    That would take too much time.
    Is there a way to select the multiple objects in Illustrator and delete that but also its layer its in?
    Thank you!

    MisterStylow wrote:
    Delete multiple Layers by selecting multiple object?
    So I wanna break some stuff down in multiple AI files, but I don't wanna go and select every layer and delete it. That would take too much time.
    [Q:] Is there a way to select the multiple objects in Illustrator and delete that but also its layer its in?
    You could do that via a script, here is a quick example:
    // Purpose: Select multiple objects and delete them along with their layer
    // Note: However, it does not differentiate sublayer structures
    // Just select your desired items, then run this script snippet,
    // to remove the selected items along with the layer they are on.
    var doc = app.activeDocument;
    for (var i = doc.layers.length - 1; i >= 0; i--) {
        var layerID = doc.layers[i];
        if (layerID.hasSelectedArtwork == true) {
            layerID.remove();
    Hope it proves useful to your efforts and workflow. Keep us posted.

Maybe you are looking for