CS3: elements sorting of selection object

Hi people!
I think U know that in CS2 app.selection[0] always return LAST selected object
and app.selection[app.selection.length] return FIRST selected object
its logically good way.
but in CS3 Adobe changed this order. And now sorting of objects in this array depend not from selection order.
now question: how to determine the first and last selected object in CS3?
Му collection of cs2 scripts be based on this behoviour.
Did anybody know how to solve this problem. May be exist simple way via javascript? Or harder - via third party plugins...
Help please!

>now question: how to determine the first and last selected object in CS3?
Unfortunately, you can no longer do that in CS3. I don't know of any workarounds.
Peter

Similar Messages

  • Indesign CS3: How to get the UID of the selected object?

    Hello,
    How can I get the UID of the selected object in an document?
    Thanks,
    Alois Blaimer

    Hello!
    I do not get it. Please give me some more hints.
    I only want to know if the selected object is a square and then the UID of the selected square.
    Thanks,
    Alois Blaimer

  • Business Graphic show elements sorted

    Hi ,
    i use a business graphic UI Element to display some results.
    Categorie -String (Projectname)
    1 Serie -Integer (Changelists sum)
    How could i show these elements sorted on diagram? I have sorted the elements by using the function node.sort(Comparator), but the Business Graphic UI Element seems not to match it.
    my Comparator class:
    private static final  Comparator DEFAULT = new  Comparator(){
         public int compare(Object o1, Object o2) {
         if (o1 == null && o2 == null)
                                  return 0;
         if (o1 == null)
                                  return -1;
         if (o2 == null)
         return +1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement     
    o1_new =(IPrivateBusinessGraphics.ICategoriesPieChartElement)o1;
    IPrivateBusinessGraphics.ICategoriesPieChartElement o2_new=(IPrivateBusinessGraphics.ICategoriesPieChartElement)o2;
    if(o1_new.getChangeListsSum()>o2_new.getChangeListsSum()){
    return 1;
    else if(o1_new.getChangeListsSum()<o2_new.getChangeListsSum()){
    return -1;
    else{
    return 0;
    Could you help please to solve this problem?
    Thank you in advance!
    Best Regards,
    Daria

    use the  following steps...
    1. open that chart editor using Edit Customizing Option.
    2. from the Overview select Series node. Right click on it and Add Series.
    3. Series1 will be added. now select Series1 and in the below section go to Area Properties node.
    4. expand it and choose the color you want for the first series.
    5. similarly add Series2 with teh desired color.
    6. then go to the view designer after saving the required changes.
    7. go to the properties of simpleseries1 and in customizingID field write 'Series1'.
    8. similarly fill other simpleseries also with the respective values.
    save it
    activate and its done.
    thanks
    sarbjeet singh
    Edited by: sarbjeet  singh on Apr 28, 2011 3:58 PM

  • Querying for a script insert multiple selected objects...

    Is there a script or plugin which insert multiple selected objects in one new text frame with one click?
    And is there a script or plugin which extract the content of anchored text frame out it's frame and replace it with it's frame. and extract selected text and insert it inside a new anchored text frame in it's place? (like convert text to table - convert table to text, but instead table we use text frame)

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • Create a new object that surrounds the selected objects

    Is there anyway in illustrator to create a new vector object from selected objects?
    IE if i have three rectangles selected, can I make a new vector path that surrounds them all.
    I dont mean welding a group of vectors together or offsetting a path...which isnt exactly what i need.
    What Im needing to do is create cut lines around complex vector art quickly.
    Thanks in advance.

    Mike i need to make an outline around a logo but if the logo has many elements that make up the edge of the logo does that method work?
    As the cut line needs to be a closed path
    Ideally i want to avoid tracing around the logo with the pen tool or add to shape area in pathfinder tab.
    I sure theres a really easy way to do this.
    Kurt its an interesting discussion however in need a closed path to surrond artwork and live paint does just the opposite :)

  • Sort table of objects by object attribute

    Hi all,
    I would like to write method for sorting table of objects. Sorting will be according selected attribute of object.
    My problem is that when I have dynamic data, I'm not able to access attributes of object. Here is example in code. Problematic lines are commented.
    If you have any idea how to solve it, I will be very happy.
    CLASS lcl_reflection DEFINITION CREATE PUBLIC.
      PUBLIC SECTION.
        CLASS-METHODS: sort_object_table_by_field IMPORTING field_name   TYPE char72
                                                            direction    TYPE c DEFAULT 'A'
                                                  CHANGING  object_table TYPE table.
    ENDCLASS.                    "lcl_reflection DEFINITION
    CLASS lcl_reflection IMPLEMENTATION.
      METHOD sort_object_table_by_field.
        DATA: obj_type_desc   TYPE REF TO cl_abap_refdescr,
              cls_type_desc   TYPE REF TO cl_abap_classdescr,
              tab_type_desc   TYPE REF TO cl_abap_tabledescr,
              elm_type_desc   TYPE REF TO cl_abap_elemdescr,
              struc_type_desc TYPE REF TO cl_abap_structdescr,
              line            TYPE REF TO data,
              tab             TYPE REF TO data,
              object          TYPE REF TO data,
              lt_component TYPE cl_abap_structdescr=>component_table,
              ls_component LIKE LINE OF lt_component.
        FIELD-SYMBOLS: <object> TYPE any,
                       <tab>    TYPE table,
                       <line>   TYPE any,
                       <value>  TYPE any.
        READ TABLE object_table INDEX 1 ASSIGNING <object>.
        cls_type_desc ?= cl_abap_classdescr=>describe_by_object_ref( <object> ).
        elm_type_desc ?= cls_type_desc->get_attribute_type( field_name ).
        obj_type_desc ?= cl_abap_refdescr=>create( cls_type_desc ).
        UNASSIGN <object>.
        ls_component-name = 'key'.
        ls_component-type = elm_type_desc.
        APPEND ls_component TO lt_component.
        ls_component-name = 'object'.
        ls_component-type ?= obj_type_desc.
        APPEND ls_component TO lt_component.
        struc_type_desc ?= cl_abap_structdescr=>create( lt_component ).
        tab_type_desc ?= cl_abap_tabledescr=>create( p_line_type  = struc_type_desc
                                                     p_table_kind = cl_abap_tabledescr=>tablekind_std
                                                     p_unique     = abap_false ).
        REFRESH lt_component.
        CLEAR ls_component.
        CREATE DATA line TYPE HANDLE struc_type_desc.
        CREATE DATA tab TYPE HANDLE tab_type_desc.
        CREATE DATA object TYPE HANDLE obj_type_desc.
        ASSIGN tab->* TO <tab>.
        ASSIGN line->* TO <line>.
        ASSIGN object->* TO <object>.
        LOOP AT object_table REFERENCE INTO object.
          APPEND INITIAL LINE TO <tab> REFERENCE INTO line.
          ASSIGN object->* TO <value>.
          ASSIGN line->* TO <line>.
    *      <line>-key = <value>->(field_name).
    *      <line>-object = object.
        ENDLOOP.
    *    SORT <tab> BY key.
    *    LOOP AT <tab> REFERENCE INTO line.
    *      APPEND INITIAL LINE TO object_table REFERENCE INTO object.
    *      object = line-object.
    *    ENDLOOP.
      ENDMETHOD.                    "sort_object_table_by_field
    ENDCLASS.                    "lcl_reflection IMPLEMENTATION

    Ok guys, it's solved. It was little bit more complicated then I expected. Thanks for you help.
    METHOD sort_object_table_by_field.
        TYPES: t_object TYPE REF TO object.
        DATA: obj_type_desc   TYPE REF TO cl_abap_refdescr,
              cls_type_desc   TYPE REF TO cl_abap_classdescr,
              tab_type_desc   TYPE REF TO cl_abap_tabledescr,
              elm_type_desc   TYPE REF TO cl_abap_elemdescr,
              struc_type_desc TYPE REF TO cl_abap_structdescr,
              r_line          TYPE REF TO data,
              r_tab           TYPE REF TO data,
              r_object        TYPE REF TO data,
              r_obj           TYPE REF TO data,
              lt_component TYPE cl_abap_structdescr=>component_table,
              ls_component LIKE LINE OF lt_component.
        FIELD-SYMBOLS: <object>    TYPE any,
                       <obj>       TYPE REF TO object,
                       <tab>       TYPE table,
                       <line>      TYPE any,
                       <key>       TYPE any,
                       <fs_key>    TYPE any,
                       <fs_object> TYPE any.
        READ TABLE object_table INDEX 1 ASSIGNING <object>.
        cls_type_desc ?= cl_abap_classdescr=>describe_by_object_ref( <object> ).
        elm_type_desc ?= cls_type_desc->get_attribute_type( field_name ).
        obj_type_desc ?= cl_abap_refdescr=>create( cls_type_desc ).
        UNASSIGN <object>.
        ls_component-name = 'key'.
        ls_component-type = elm_type_desc.
        APPEND ls_component TO lt_component.
        ls_component-name = 'object'.
        ls_component-type ?= obj_type_desc.
        APPEND ls_component TO lt_component.
        struc_type_desc ?= cl_abap_structdescr=>create( lt_component ).
        tab_type_desc ?= cl_abap_tabledescr=>create( p_line_type  = struc_type_desc
                                                     p_table_kind = cl_abap_tabledescr=>tablekind_std
                                                     p_unique     = abap_false ).
        REFRESH lt_component.
        CLEAR ls_component.
        CREATE DATA r_line TYPE HANDLE struc_type_desc.
        CREATE DATA r_tab TYPE HANDLE tab_type_desc.
        CREATE DATA r_object TYPE HANDLE obj_type_desc.
        CREATE DATA r_obj TYPE REF TO object.
        ASSIGN r_tab->* TO <tab>.
        LOOP AT object_table REFERENCE INTO r_object.
          APPEND INITIAL LINE TO <tab> REFERENCE INTO r_line.
          ASSIGN r_object->* TO <object>.
          ASSIGN r_obj->* TO <obj>.
          MOVE <object> TO <obj>.
          ASSIGN <obj>->(field_name) TO <key>.
          ASSIGN r_line->* TO <line>.
          ASSIGN COMPONENT 'KEY' OF STRUCTURE <line> TO <fs_key>.
          ASSIGN COMPONENT 'OBJECT' OF STRUCTURE <line> TO <fs_object>.
          <fs_object> = <object>.
          <fs_key> = <key>.
        ENDLOOP.
        DATA: sort_field TYPE fieldname.
        sort_field = 'KEY'.
        SORT <tab> BY (sort_field).
        REFRESH object_table.
        LOOP AT <tab> REFERENCE INTO r_line.
          APPEND INITIAL LINE TO object_table REFERENCE INTO r_object.
          ASSIGN r_line->* TO <line>.
          ASSIGN r_object->* TO <object>.
          ASSIGN COMPONENT 'OBJECT' OF STRUCTURE <line> TO <fs_object>.
          <object> = <fs_object>.
        ENDLOOP.
      ENDMETHOD.

  • Help too selecting object [JS]

    Hi there
    I am problems selecting an object by it id or label. In my script a list items on on page and if the text are using ParagraphStyleName "Itembox 9" i save it in array.
    But how do i select the object by id or label ?
    I have to do this to make changes on the object later.
    Does anyone know about good books on indesign scripting  with javascript ?
    Regards
    TT.
    test()
    function test(){
    var myDocument = app.documents.item(0);
    var myElement = myDocument.pages.item(0).pageItems;
    var myObjectsToSelect = new Array;
    for(myItemCounter = 0; myItemCounter < myElement.length; myItemCounter ++){
          var myElementID = myElement[myItemCounter].id;
       try {
        var myTextParagraphStyleName = myElement[myItemCounter].parentStory.appliedParagraphStyle.name;
           if(myTextParagraphStyleName == "item_box_9"){
               $.writeln("Element Id ", myElementID);
              var myTextContents = myElement[myItemCounter].contents;
             $.writeln("Text  ", myTextContents);
             myObjectsToSelect.push(myElementID);
          catch (Error) {
    // error

    In contrast with the interface, in scripting you rarely need to select objects in order to do something with them. You collect certain text frames in your array myObjectsToSelect. If e.g. you want to move them, you'd do something like this:
    for (i = 0; i < myObjectsToSelect.length; i++)
        myObjectsToSelect[i].move (...);
    What do you want to do with them?
    Peter

  • LINQ sorting on List Object - Various Object Type

    I try to sort a List<Object> where the Object are different classes but all share the same Property Name for instance.
    I got a Base Class where Class A and Class B inherit from the Base Class.
    So during the Linq query I cannot specify with object type this is.
    Problem here "from ?????Entry_Global?????? list in Entries"
    Thanks for helping.
    ////Entries is a List<Object> which consist of class object as following\\\\\
    public abstract class EntryBase<T>
    private string _Name;
    public string Name
    get { return this._Name; }
    set { this.SetProperty(ref this._Name, value); }
    public class Entry_Global : EntryBase<Entry_Global>
    public class Entry_CC : EntryBase<Entry_CC>
    private string _url; //Web url
    public string Url
    get { return this._url; }
    set { this.SetProperty(ref this._url, value.Contains("http") ? value : "http://" + value); }
    public List<Object> SortBy()
    IEnumerable<KeyedList<string, object>> groupedEntryList = null;
    //The proble reside in the fact that list is not only one type
    //so when comes in the orderby "Name" it doesn't know Name
    //or any other properties which are all common to all those class
    //It does not want to convert Entry_CC or Entry_Global to EntryBase
    groupedEntryList =
    from ?????Entry_Global?????? list in Entries
    orderby list.Name
    orderby list.CategoryRef.Name
    group list by list.CategoryRef.Name into listByGroup
    select new KeyedList<string, object>(listByGroup);
    return groupedEntryList.ToList<object>();

    Entry_Global and Entry_CC don't share the same base class since EntryBase<Entry_Global> and EntryBase<Entry_CC> are two totally different types so you cannot cast the objects in the List<object> to a common base class in this case.
    You could cast from object to dynamic though:
    public List<Object> SortBy()
    List<object> objects = new List<object>();
    objects.Add(new Entry_Global { Name = "K" });
    objects.Add(new Entry_CC { Name = "A" });
    objects.Add(new Entry_Global { Name = "I" });
    objects.Add(new Entry_CC { Name = "C" });
    var sortedObjectsByName = (from o in objects
    let t = (dynamic)o
    orderby t.Name
    select o).ToList();
    return sortedObjectsByName;
    The dynamic keyword makes a type bypass static type checking at compile-time:
    https://msdn.microsoft.com/en-us/library/dd264736.aspx. This basically means that a dynamic type is considered to have any property of any name at compile time. Of course you will get an exception at runtime if the type doesn't have a Name property but
    providied that all objects in the List<T> to be sorted are of type EntryBase<T> you will be safe as long as the EntryBase<T> type defines the Name property that you sort by.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • Flash8 or Flash CS3 determine what frames and objects use a given library object

    I am doing cleanup on a FLA file(a large fla file). I am
    looking for an easy way to determine where each library item
    may be used in the given flash document and at what frame and
    layer it may be used at.
    Yes I have updated the use counts by selecting "update use
    counts". Which is really nice. Becuase I can then
    easily delete all the unneeded objects(note: I was also
    guaranteed they(library items) were not called into the FLA file
    dynamically by action script, Which was a relief).
    So what I am looking for is a way to run a report for one
    object or for the entire library to show me where
    a given symbol, button,swf, flv or picture is being used in
    the parent or it's chidren or in another library item.
    Here is an example of the report I am looking for.
    Library Item "logo.jpg":
    ocurrence #1> _root;layer8,frame 25
    ocurrence #2> _root;layer(showlogo),frame 25(imageframe)
    ocurrence #3> _root;layer(showfinishpage),frame
    125(exitpage)
    occurence #4> LIBRARYITEM(logoTween),frame23,layer2
    Does anyone know how this can be done...?
    Additional search item references
    ==============================
    report library items
    Flash 8 library report
    Flash MX library report
    Flash CS3 librarry report
    Flash Library objects usage counts
    Keep use counts updated
    update use counts now
    determine where library items are used in a give fla file
    flash library "update use counts" objects frames report
    flash "library use" objects frames report
    flash 8 fla library usage where are they being used

    Will Edit > Find and Replace help?
    I don't know of any report, other than Generate size report
    (found in publish settings under Flash), but you could probably
    write a .jsfl script to do it for you I imagine.

  • Selected objects and markers?

    Hello!
    Not sure what just happened, but I suspect I may have hit a hotkey shortcut for hiding the visual aid for selected objects.
    How do I change it back? I cannot see anymore which element (object, anchor, path, etc.) that I have selected on my artboard.
    This has happened to me before and I cannot remember how I fixed it, although I know it's a simple fix.
    Googling didn't help me, I'm afraid.

    View >> Smart Guides (Enableel with checkmark)
    Illustrator >> Preferences >> Smart Guides (Check more items to show more)
    Adobe decided about a decade ago to change the keyboard shortcut of CMD U from Ungroup to smart guides, I still make this mistake occasionally.

  • Printing output from select-object with write-host

    $lastdir = Get-ChildItem 'C:\Users\' | select Name | sort | select -last 1 name
    write-host $lastdir
    results printed as @{Name=guptal}
    how do I get it just to print the "guptal" part only? How do I access this object values?

    Hi,
    Add -ExpandProperty to your Select-Object.
    EDIT: Or use $lastdir.Name
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Powershell - Select-Object -Unique vs Group-Object

    Hi,
    I have the following problem with powershell.
    I have a list of strings call it $machine_list which
    I know there are duplicates.
    The following  code produces the following output:
    $machine_list.count -- 15375
    $a = $machine_list | Select-Object -Unique
    $a.Count -- 12134
    $b = $machine_list | Group-Object -NoElement
    $b.Count -- 12082
    I am trying to get a unique list and looking at different
    ways of doing it.
    So in my example above why are the counts different?
    Should they not be the same - $a.Count -eq $b.Count?
    I am hoping somebody can explain this in more detail to me.
    Also is there a way I can compare the results to see how they
    differ? (Comparing $a with the Name Values of $b).
    Thanks,
    Ward.

    Dirk - another way to think this out.  "group" means that each named group has a unique name.  In a list of strings the group name and object are identical so the list of group names is the list of identical strings.
    Select -unique and sort -unique produce an identical set of lists.  Select -unique, however, does not necessarily produce a sorted output although the output is guaranteed to be unique.  What you may be mixing up is that many learned to add sort
    in PowerShell V1 because they did not get a sorted output from a unique operation.  As I posted above, this issue has come up constantly as people start to learn databases.  A company that I used to work for wrote its own 'uniquing' code.  It
    always produced a sorted output as a byproduct of the method.  When we implemented SQL database technology the programmers could not understand why select unique in SQL did not produce a sorted output.  They constantly complained that it was a bug.
    In most cases we would like a uniquing operation or not sort the results.  Suppose I have a result set order a specific way.  Now I want group it on a column but I do not want the order of the records changed.  Grouping and select unique should
    not change the order.  There are many discussions in the database field as to why this needs to be.  I am not sure which set of standards PS follows.  In PS1 it appeared to follow the industry standard.  Maybe I will test it later.
    ¯\_(ツ)_/¯

  • Selecting objects outside mask boundary

    Hi,
    On Ai CS3, while working with clipping masks I've been used to select masked objects with the direct selection tool, even the ones that fall outside the mask boundary.
    I can't do so with the CC version of Ai. Instead I have first to select it with the lasso tool. One can do so as well with the layers or else by selecting edit contents in the control box.
    So it's actually possible, but since I edit masked objects quite often those extra-steps are just annoying.
    Would be in the preferences or else some option to fix it? Or do I have to make do with some bias..

    There is at least one reason why the Edit Contents state is a bit laborious: It's too easy to exit it by inadvertently deselecting the clipping group.
    One workaround is Isolation Mode. You may:
    - Go to Edit > Keyboard Shortcuts > Menu Commands > Other Object and – for example – assign the F3 key to the Isolate Selected Object command.
    Now, whenever you want to edit the clipping object including its content just hit F3. When done hit the Esc key to exit Isolation mode.

  • Noob Question 1: Selecting Objects On Layer Like CorelDraw?

    Hi,
    I'm moving from CorelDraw. (I know this makes a lot of people laugh, but it's a great program. I'm moving to Adobe just because the pre-press house we're using demands it.
    Anyhoo... In CorelDraw, there is a button one use to see in a sort of 'tree view' all the objects on a given layer. When you click on the layer, it opens the tree so you see the objects that belong there. This makes it -super- easy to select objects that are deep down/partially hidden.
    Is there anything like this in InDesign? Sometimes it's kinda hard to grab a particular object, especially when there are lots of things on top of one another.
    Ideas?
    TIA,
    ---JC

    No, nothing like that yet. You'll find that in Illustrator and it a requested feature for InDesign so you might just want to chime in here:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    That said, you can simply ctrl/cmd click to click down through a stack of objects.
    Bob

  • I made a mistake. Purchased Adobe Premiere Elements 13 but selected wrong OS. Now I got the Windows-version, but I have a Mac. How do I transfer my license to the Mac version?

    I made a mistake. Purchased Adobe Premiere Elements 13 but selected wrong OS. Now I got the Windows-version, but I have a Mac. How do I transfer my license to the Mac version?

    here's how to swap: Order product | Platform, language swap
    but i think your license is dual platform.  download the mac version and see if your serial number will activate.  if not, at least, you'll have the 30 day trial to use while waiting for your platform swap.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for