exportFile for multiple selection

CS5.5 - Javascript, I want to know the method for a multiple selection exportFile, for example if I selected 4 rectangles and to export these four objects as a single jpg without grouping. Thanks in advance.

Hello

If your REB is inside a group already a possible solution is to:

duplicate them export - group - remove.

Assuming ERC is selected:

var
          mDoc = app.activeDocument,
          mFile = File("~/Desktop/test1.jpg"),
          len = app.selection.length,
          tempGroup = [], mTarget;

while (len-->0) {
          tempGroup.push( app.selection[len].duplicate() );
          }

mTarget = mDoc.groups.add( tempGroup );
mTarget.exportFile(ExportFormat.JPG, mFile);
mTarget.remove();

Assuming that a group is selected, and each child rec is a target:

var
    mDoc = app.activeDocument,
    mFile = File("~/Desktop/test2.jpg"),
    mTarget = mDoc.groups.add(app.selection[0].rectangles.everyItem().duplicate());

mTarget.exportFile(ExportFormat.JPG, mFile);
mTarget.remove();

Jarek

Tags: InDesign

Similar Questions

  • Hold down the SHIFT key for multiple selection of objects?

    Maybe me - but the latest version of muse on my mac OSX 10.8.5 now hold down the SHIFT key and clicking on do not seem to me be the multiple select objects - works fine in illustrator and Indd, can't see a preference check everywhere where I missed - I am the only one with this problem?

    catfordboyjohn, join the discussion on this topic on this thread Re: after upgrading to 2014 CC Muse I have problem with multiple selection. SHIFT are not working? >. Thank you.

  • 'Control' key for multiple selections

    I use 2 merger and can not get the Mac keyboard keys 'Control' (right or left) to behave like windows 'Ctrl' key to make multiple selections. A touch of 'control' behaves like a right-click and does not mark a selection. I also tried the Mac "command" key, but this fact is to open the start menu. I've searched the forums and all I can find are posts which is advised to disable the checkbox 'Activate mouse Mac OS shortcuts' in the preferences of the merger. This box was already unchecked so I need another option. Can someone point me in the right direction?

    I have no problem with a Windows normal ctrl-click to select several objects when my from VMware Fusion preferences are defined as in the image below.  Note: IIRC it is a bug if you have changed the default key mappings with the CTRL key, and if yes, then you must restore the default value under key mappings.

    Post edited by: WoodyZ

  • How do I script a listbox for multiple selections may be recognized?

    I have a pdf that allows the user to make selections in a list box, and then these choices determine which fields on the page are displayed or hidden. I made sure listbox allows multiple selections, but I can't get the script to recognize and display several fields. So far it works when an item is selected. How can I do so when the user selects multiple entries that it will cause several fields actually show?

    I have included the file to show what I got so far.

    I answered this in your other post.

    Paul

  • Call the target for multiple selection

    Hello

    I want my app to be able to be that a 'SHARING' call target if one or several photos are selected.

    I saw WhatsApp is able to do this, how can I add this feature to my own app?

    It works like a charm for a photo, but it does not show my application if I select several files.

    Kind regards

    Try this:

    
        card.composer
        Share Multiple
        
            bb.action.SHARE
            filelist/media
                    
        
    
    

    For sharing multiple files in file manager, you must use mixed/filelist.

  • How to reuse 1 button for multiple selections?

    simpleScreenShot.JPG

    I have a simple menu that I am trying to understand how to reuse these 3 buttons for up and down the black bar and use the key enter to be able to select the highlighted item. There is in fact 10 items on the menu, but you have to scroll down to show. The rear element must remain on the screen. As you change simple click down the text as if you scroll down. When you click on enter it should lead to a different screen.

    I'm not sure on the tables and index of the selected item. In my opinion, is the best way just not sure how to implement that.

    My first attempt, I created like 10 buttons and 10 buttons and 10 Enter buttons gets confusing. As well, he gets into conflict when you scroll down then back up 1 enter the key triggers usually hurt when your tilt head / hide...

    I wiped the slate clean and start again any help would be great. This is the fundamental starting far point.

    simpleListFile

    Oops - small error in the code:

    compostion replacein ready:

    var myLabels is ['p1', "p2", "p3", "p4", "p5", "p6", "p7", "p8", "p9", "p10"];.

    i = 0;

    {sym.$('downBtn'). Click (Function ()})

    i ++ ;

    sym.getSymbol('labels').play (myLabels [i]);

    If (I > 9) {}

    i = 0;

    }

    });

    {sym.$('upBtn'). Click (Function ()})

    i-- ;

    sym.getSymbol('labels').play (myLabels [i]);

    If (i<>

    i = 0;

    }

    });

  • Box - does not not for multiple selection values

    Hello

    I have a box (with several static values) and a dynamic report that displays the filtered data based on the selection of the checkbox... my report refreshes correctly to a selection simple check box, but when I select several values, it gives me an error message...

    Here's the example query that I use:

    Select * from table_a
    where
    CATEGORY =: P22_CATEGORY

    Please advice...

    Hello

    I think that the type of box that you are referring returns a list delimited by two points values. If this is the case, you need a query something like:

    select * from table_a
    where ':'||:P22_CATEGORY||':' like '%:'||CATEGORY||':%'
    

    There is a description really here: http://apex.oracle.com/pls/otn/f?p=ATSIN_DEMO:COLON_DELIMITED

    Hope this helps,
    Gregory

  • Model of multiple selection for ComboBox

    Javadoc stats

    "As in the ListView, it is possible to change the SelectionModel which is used, although this is likely to be rarely changed. The default SelectionModel used in ComboBox is a SingleSelectionModel, but that can be sorted on by developers to instead allow multiple selection occur, or to change the behavior of the various methods provided in these APIs. "

    Yet when I try to set the selection model as I would to a listview using the following
    comboBox.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    I am informed that setSelectionModel is not available.

    How to enable you multiple selection in a ComboBox?

    The javadoc you cite above is in fact wrong and comes from an era where the selectionModel property of type «SelectionModel» ComboBox Since then, it has evolved to be "SingleSelectionModel. Which means, of course, you can put some instance of model selection in the ComboBox, but only choice will be always supported. We did it as multiple selection has no real meaning without drastic changes to the UI and UX, and we thought that a separate control could be developed in the future to better support this use case.

    Thanks to notice the incorrect documentation - I'll fix it shortly.

    -Jonathan

  • Settlement data based on multiple selection ListBox reference need help

    Hello again,

    The question that I have is selecting from a listbox with multiple selection to fill the tables with the selected data. My code is as follows:

    Void loadData_EventClick (ByRef This)

    Dim j

    Dim k

    k = 0

    If ListBox.MultiSelection.Count = 0 Then Exit Sub

    For j = 1 To ListBox.Items.Count

    If ListBox.MultiSelection (j). Count = True Then

    k = k + 1

    End If

    Next

    TextBox.Text = k

    End Sub

    The code works perfectly up to the second if statement. My current channel group list contains 16 channels and with the second if statement guided the textbox output is equal to 16 (i.e. k = 16), which is what I expected. Im just using the k = k + 1 for the test. Eventually will be replaced by operating code specific to what I need to do.

    So the question that I have is to get the code to recognize what values are selected and referring to the index for the selections in a table. Im not sure on how to do it.

    Any help is very appreciated.

    Thank you

    ~ Nathan

    Attached JPEG shows the current user interface and the output of k with the second if statement commented

    Hey Nathan--

    ListBox.MultiSelection () is a function that returns an array of [multiple] selected items in ListBox.

    ListBox.MultiSelection.Count is a property that returns the number of items in the table above.

    Therefore, the logic in your second IF statement that says if ListBox.MultiSelection (j). Count = True really makes no sense because:

    1. The array returned by the multiple selection (using (j) indexing now refers to a single selected item in the list (which has not its own 'Count' property)

    2. If you don't the array index, assuming that you had selected 4 items in your list, your statement would still be actually as said if 4 = True which is not what you get.

    Make sense?

    Here is a modified version of your code that I hope makes it a little more obvious how these elements relate to one another.  Give it a run; of course, 75% of the code is extranneous to you working end to account, so make sure that you subsequently delete what you won't need.

    Sub loadData_EventClick (ByRef This) ' creates the event handler
    Dim j
    If ListBox.MultiSelection.Count = 0 Then Exit Sub
    TextBox.Text = "Total ListBox items:" & ListBox.Items.Count & + "" \n "".
    TextBox.Text = TextBox.Text & "Total selected items:" & ListBox.MultiSelection.Count & + "" \n "".
    TextBox.Text = TextBox.Text & "Selected Items:" & + "\n"
    For j = 1 to ListBox.MultiSelection.Count
    TextBox.Text is TextBox.Text & ListBox.MultiSelection (j). Text & ", index" & ListBox.MultiSelection (j). Index & + "\n"
    Next
    End Sub

    You are making great progress; It will get quickly easily faster and we are here to help – do not hesitate.

  • How can I do a multiple selection in Enum control or control of the ring or control Combo box

    How can I do a multiple selection in Enum control or control of the ring or control Combo box

    You can not.

    You can use a listbox control.

    An alternative solution is to write the code and each selection, the user gives an enum, for example, can be send to a table and invite the user to continue to select...

  • Problem with the extended help display option for multiple displays.

    I have a laptop with an internal (#1) designated as my screen main screen. At work, I like to use the 'extended display' option for several screens to use the external desktop as #2 display monitor. However, at home I have the screen internal one on my laptop. So when I open an application like Excel at home, the window does not appear, but the application is running, as I confirmed with the Task Manager. So far, the only way I know to solve this problem at home is to change my display settings for multiple views to show on display #1 only. Is there a practical way to deal with this issue in addition to change the display settings whenever I move from work to home and vice versa?

    Hello

    In Windows 7, you can simply press the Windows Logo + P key.

    In the menu, select the item from the computer only .

    Concerning

  • Problem Manager multiple selection with system dialog box

    I currently have a problem with the help of system on a manager of multiple selection dialog as the code below works fine:

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    var selectionList = listView1.selectionList();
                                    var selectedItem = dataModel.data(selectionList);
                                    console.log(selectedItem);
    
                                    for (var i = 0; i < selectionList.length; ++ i) {
                                        _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                        dataSource.loadData()
                                    }
                                }
                            }
                        ]
                    }
    

    However, when it is changed to use that a dialogue system, the feature does not work and the console record results:

    selected list: undefined

    selected item: undefined

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
                                                var selectionList = listView1.selectionList()
                                                console.log("selected list: " + selectionList)
                                                var selectedItem = dataModel.data(selectionList);
                                                console.log("selected item: " + selectedItem);
    
                                                for (var i = 0; i < selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    

    With the help of Roger Leblanc, it works now

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                property variant selectionList
                                property variant selectedItem
                                id: deleteActionItem
                                onTriggered: {
                                    deleteActionItem.selectionList = listView1.selectionList()
                                    deleteActionItem.selectedItem = dataModel.data(selectionList);
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
    
                                                for (var i = 0; i < deleteActionItem.selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(deleteActionItem.selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    
  • Can't get multiple selections of work ListView

    The example code here seems very simple:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__multiselecthandler.html

    I use the code example to use with ListView as my model:

                ListView {
                    id: listView
                    objectName: "listView"
                    dataModel: photosModel.photoGridModel
    
                    snapMode: SnapMode.LeadingEdge
    
                    layout: GridListLayout {
                        id: gridListLayout
                        objectName: "gridListLayout"
                    }
    
                    onTriggered: {
                        var newPage = photosPageDefinition.createObject();
                        photosModel.setPage(newPage);
                        navigationPane.push(newPage);
                        navigationPane.peekEnabled = false;
                        photosModel.launchFullscreen(indexPath);
                    }
    
                    multiSelectAction: MultiSelectActionItem {}
    
                    multiSelectHandler {
                        // These actions will be shown during multiple selection, while this
                        // multiSelectHandler is active
                        actions: [
                            ActionItem
                            {
                                title: "Tag"
                                imageSource: "asset:///images/tag.png"
                                onTriggered: {
                                    // TODO
                                }
                            },
                            ActionItem
                            {
                                title: "Share"
                                imageSource: "asset:///images/share.png"
                                onTriggered: {
                                    // TODO
                                }
                            },
                            ActionItem
                            {
                                title: "Move"
                                imageSource: "asset:///images/folder.png"
                                onTriggered: {
                                    // TODO
                                }
                            },
                            DeleteActionItem
                            {
                            }
                        ]
    
                        status: "None selected"
    
                        onActiveChanged: {
                            if (active == true) {
                                console.log("Multiple selection is activated");
                            }
                            else {
                                console.log("Multiple selection is deactivated");
                            }
                        }
    
                        onCanceled: {
                            console.log("Multi selection canceled!");
                        }
                    }
                }
    

    When loading the application, I long press on an item in the GridView control and nothing happens.

    Can you clarify what this means 'does not '?.

    EDIT:

    OK, now I see. To make it work, you must set an empty or nonempty ActionSet for each listitem.

    StandardListItem {
        title: ListItemData.title
        contextActions: [
            ActionSet {
            }
        ]
    }
    

    Now, it will work.

  • I prefer SEPARATE (for multiple open documents) instead of tedious proceedings hover over the icon and then choose the one I want.

    Notepad or WORD or EXCEL, Lotus SAMETIME, I prefer SEPARATE (for multiple open documents) instead of tedious proceedings hover over the icon and then choose the one I want.  I can't figure out how to change that, and it's a boring true change to XP. Does anyone know how to do this?

    Go to the Start menu button, right-click on it, select Properties, click the task bar .

    Click the drop-down list buttons Taskbar & select never combine.

    That's all.  You should now see an entry of the separate taskbar for each open file on your PC.

  • Need to field multiple select the option without having previously selected deleted

    Hi all

    Request Express 4.1.1.00.23

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    I have a requirement of adding a field of multiple selection to a single screen, and I added the list to multiple selection, without a second thought. Of course, the question is when a user tries to edit a record, click on (with the CTRL key) two options in the selection list multiple, but not clicked on those previously selected, then we lost them. Then I thought to create checkboxes and thus those already selected will be always checked when try to update.

    But I want to do with the multiple selection field. So I was wondering if there is a way?

    Thank you!

    Sam82 wrote:

    Request Express 4.1.1.00.23

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    I have a requirement of adding a field of multiple selection to a single screen, and I added the list to multiple selection, without a second thought. Of course, the question is when a user tries to edit a record, click on (with the CTRL key) two options in the selection list multiple, but not clicked on those previously selected, then we lost them. Then I thought to create checkboxes and thus those already selected will be always checked when try to update.

    But I want to do with the multiple selection field. So I was wondering if there is a way?

    This is the behavior expected multiple-selection list. It can be changed using a point hidden shadow and JavaScript, but there is no way out of the box to achieve what you propose.

    Selections several lists are usually a bad idea:

    • Users do not know how they work
    • They are confused and source of errors, except if all options are visible (which generally wastes space UI)
    • The resulting values of treatment is problematic
    • They are often the cause of a model of incorrect data or result

    Checkboxes or a shuttle are much better options and controls for multiple choice options.

Maybe you are looking for

  • This number is no longer a sort by column?

    This number is no longer a sort by column?

  • Calculator HP 48GX - software locking

    Hello My HP 48GX is locked on the screen "Try to retrieve the memory?" on the screen. The keys function for the 'yes' and 'No' are not. I tried to reset using a paper clip to press the reset button located under the carpet of foot right up, but the c

  • Why ipod classic shows code 10 in Device Manager

    Just bought a new laptop downloaded itunes to the external hard drive and kept all my library and playlists. When I plugged the ipod classic on computer, nothing happens. There is no icon load on ipod, Manager of devices under USB controllers, it sho

  • Visible HDMI in "Device Manager" but not in "playback devices"... help please?

    HP Pavilion DV6-1245dx update to Windows 7 (from Vista). I had the problem of no sound on my TV with the HDMI connection. I had the brilliant idea to remove the driver and reinstall. The problem is that after I deleted the driver (do not know exactly

  • Windows XP Home Edition - Missing Wireless

    Computer: ASUS Notebook X58L Series (laptop). This computer came with Windows Vista installed, I did not at all like... After you change the BIOS so that the startup would occur on CD / DVD ROM drive and adjusting the IDE to SATA compatible I install