Mail Message list sort order for Applescript in ML

Hi All,
I recently upgraded from SL to ML. I'm having a few issues with an applescript i use to flag/unflag emails for later handling.
Basically, the script does the following:
- get the message list from one of the inboxes/smartboxes. These are ordered by time and grouped by thread.
- compare one message with the next one
- if some criterias are equal (thread ID, subject, ...) then the second email is unflagged
- repeat until end of list.
It was working fine in SL, as a result, i only had the first email of threads with a flag, so the others could be forgotten.
In ML, it looks like even though the emails are displayed in a specific order (date/thread), using
messages of first message viewer
does not fetch the messages in the same order, so matching cannot happen.
Is this the expected behavior in ML ? Is there anyway to have the list of messaged sorted as displayed ?
Thanks
jm

I found a workaround, though there must be something neater.
I added this before my script
tell application "System Events"
          tell process "Mail"
                    tell menu bar 1
                              tell menu bar item "View"
                                        tell menu "View"
                                                  tell menu item "Sort By"
                                                            tell menu "Sort By"
                                                                      click menu item "Subject"
                                                            end tell
                                                  end tell
                                        end tell
                              end tell
                    end tell
          end tell
end tell
then the same except "Date" instead of "Subject".
My script does what i want now.

Similar Messages

  • Control of sort order for asian language navigation

    I am a help writer who is working with both development and a localization vendor to create localized javahelp. I am the most knowledgeable about javahelp, which is not saying much. It has come to me to figure out how to establish the correct sort order for Simplified Chinese and Japanese language Index and Glossary navigators, Could someone explain to me how this is done outside of tools like RoboHelp (which has caused us major headaches yet seems to be the only way the vendor knows how to do JavaHelp). In layman's terms, please.
    thanks,
    ellen

    Same issue here, and the bug syncs to my iPhone, so when I want to quickly text or e-mail someone, their phone numbers and e-mail addresses appear in the wrong order, Work or Home before iPhone or Mobile. How can we get this big fixed in the next Snow Leopard update?

  • How to get list of orders for current date.

    Hi,
    My requirement is to get list of orders for the date on which order was created such that I don't have to change the date in my application.
    Every time I run my application it should generate orders created on that current date without manually giving current date.
    This has to be done directly using BAPI and without creating a RFC. 
    I tried with bapi " BAPI_ALM_ORDERHEAD_GET_LIST " using parameter OPTIONS_FOR_START_DATE  but there I can't enter sy-datum and hence, every time I hence to change the date.
    Please tell me if there is any possible way to get fulfil above requirement.
    Thanks.
    Shilpi Agarwal.

    Hi Shilpi,
    This looks simple to me.
    Just create a variant in IW38 with U_your UserId as shown in the picture (Dynamic date selection for Created On set to Current Date)
    The status settings obviously would be
    Jogeswara Rao K

  • Default Sort Order for Library View

    It would be fantastic if there were a user defined preference for a default sort order in Library view. For example, some users may prefer to always view the images by File Name, or Rating, etc, without having to change the sort order for each individual folder they view via Lightroom.
    Thanks!

    Thanks for your suggestion Allan, but it doesn't work.
    I'm specifically referring to the defaults that Aperture 3 adopts when you use the "File, Import, Folders as Projects with the projects and albums setting.
    What I'm finding is regardless of the setting in the Library preferences, the default sort order for the project is Date and Manual for the album.
    Yet if I create a project manually the default sort order is as per the Library prefs. Strange.

  • Looking for a way to change sort order for albums

    I know how to set the sort order for each individual song (Sort tab on song info), but is there a way to set sort order for multiple tracks?

    Please help!

  • How to change sort order for Notes in iOS?

    When using Notes in OS 10.10, I can change the sort order. However, I cannot see how to change the sort order for Notes in iOS8 on my iPhone. I sync using iCloud, but the iPhone does not pick up the sort order (alpha) that I have chosen on my MBP.
    Is it possible to change the sort order on phones?
    Thanks.

    View > Sort By > Title

  • How do I change the Sort order for Music Video's on the iPad

    Hi All,
    Apologies if this has been dealt with elsewhere - I can find posts about sort order for TV Shows and Movies but not Music Video's.
    When I sync my music video's the appear in Track order in the video app and I cannot find how to change the sort order to 'by Artist' (or any other order come to that).
    Any ideas please>

    Hi!
    Im afraid I believe this cannot be done yet. Sorry!
    You can try submitting feedback to apple by clicking [here|http://www.apple.com/feedback/ipad.html] if you wish.
    Hope this helps!

  • Default column sort order for 11g table

    Could anyone give me some indication on how I would go about setting the default sort order for a table?
    I have a table with a few columns, and dataset returns in a particular order, but my table decides to sort if in any given order until I manually click on the column header and sort it.
    I would like to have it done by default on a particular field.
    Any info is appreciated.
    Thanks
    Jonny

    As Chris says, the easiest way and best re-use way is to use the order-by clause in your underlying model layer SQL query. For instance in ADF BC this would be in a View Object's query.
    However as you haven't dictated your model layer technology, there is another way in JDev 11g. In your web page that contains the ADF Faces RC table, select the binding tab at the bottom of the page, then double click on the iterator in the binding page, and in the Edit Iterator Binding dialog, select the Sort Criteria tab. This allows you to override the sort order on the iterator's columns.
    CM.

  • Sort order for Simplified Chinese (pinyin)

    FrameMaker 10 (Windows)
    It seems that if I specify the sort order for Simplified Chinese (pinyin) on the reference page,
    index entries that start with "i" and "v" are not shown under their corresponding group titles.
    (I assume that this may be due to the fact that pinyin words never start with these letters.)
    If I have an entry that starts with an English word like "IP," it appears under the "J" group.
    I want the entry to appear under the "I" group. How can I do this?
    I have the IX reference page set up as follows:
    GroupTitlesIX paragraph
    Symbols[\];Numerics[0];A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;
    SortOrderIX paragraph
    <$symbols><$numerics><$alphabetics><$pinyin>
    I've also tried:
    SortOrderIX paragraph
    <$symbols><$numerics><$pinyin>
    Thanks in advance.
    Tak Osato

    I sort of found a workaround, but it may lead to other problems, so use it at your own risk.
    It also requires a bit of work.
    The idea is to use the sort order for Japanese by specifying the following in the IX reference page.
    Symbols[\ ];数字[0];A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;あ;い;う;え;お;か;き;く;け;こ;さ;し;す;せ;そ ;た;ち;つ;て;と;な;に;ぬ;ね;の;は;ひ;ふ;へ;ほ;ま;み;む;め;も;や;ゆ;よ;ら;り;る;れ;ろ;わ;ん;[ ]
    <$symbols><$numerics><$alphabetics><$kana>
    Then, you need to capitalize the first letter in the bracket used for sorting for every index entry.
    Example:
    Instead of
    画面[hua4mian4]
    specify
    画面[Hua4mian4]
    Now, I'm wondering if there is a way to do a search and replace on all index entries to capitalize the first letter...

  • Sort Order for Legend and X Axis

    Does anyone know of a way to keep a specific sort order for both the X Axis and the Legend. Both start with numbers and I can get one or the other to sort correcly on the chart but not both. Biggest problem is not all of the legend items are in the first X Axis item so the colors change on the bar graph depending on the legend items in the first X Axis item.

    If you tie bar colors with values, how you will differentiate the bars for different legends.
    Take an example, there are three columns Employee, Location and salery have following values
    Employee Location Salery
    A London 30000
    B Chicago 40000
    C London 50000
    D Chicago 60000
    if we keep Location as Legend and Employee in X Axis, and sort Legend first then Employee. Set Blue for Chicago and Red for London, First two blue bars for A and C will be displayed and then two red bars for B and D will be displayed. Order in X axis will be A,C,B and D. This is not in sequence but this is the way it will and it should work. If you sort by Employee instead if Location, you will get sequence in X axis, but the same colored bars wont be together.
    Thanks
    Swami

  • Changing Search sort order for Simplified Chinese

    We're generating a Simplified Chinese WebHelp system using Robohelp 10 and we need to change the sort order in the Search results so that it follows the pinyin order instead of "Y, Z, M, T" (Referring to 仪,准,美,通). Is there a way to do this?

    I sort of found a workaround, but it may lead to other problems, so use it at your own risk.
    It also requires a bit of work.
    The idea is to use the sort order for Japanese by specifying the following in the IX reference page.
    Symbols[\ ];数字[0];A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;あ;い;う;え;お;か;き;く;け;こ;さ;し;す;せ;そ ;た;ち;つ;て;と;な;に;ぬ;ね;の;は;ひ;ふ;へ;ほ;ま;み;む;め;も;や;ゆ;よ;ら;り;る;れ;ろ;わ;ん;[ ]
    <$symbols><$numerics><$alphabetics><$kana>
    Then, you need to capitalize the first letter in the bracket used for sorting for every index entry.
    Example:
    Instead of
    画面[hua4mian4]
    specify
    画面[Hua4mian4]
    Now, I'm wondering if there is a way to do a search and replace on all index entries to capitalize the first letter...

  • TA26589 iphone 4s sort order for number in contacts

    iphone 4s How to sort order for numbers in contacts ?
    Like
    First - mobile
    Second - office
    Third - work
    Four - home
    It differs as you enter while as you enter / update.
    Can any one guide me.
    Thanks.

    All you do is hold down on any of the icons for a few seconds and they will start wiggling. You can then move them to your hearts content, either on the same page or to different pages. Just press the HOME button to return to normal mode.
    Glor

  • Apple Mail Message List Font in Mavericks

    Hi all,
    Is there a way to increase the size of the Apple Mail Message List Font in Mavericks when *NOT* in classic mode?
    - the parameters seem to have no effect in this mode

    Turns out that there is no way to change this unless uing the classic mailbox... We're stuck with the default setup on the new style.

  • Mavericks Mail Message List Font Chopped Off

    Has anyone seen this?
    After upgrading to Mavericks my friend now sees his Mail Message List rather limited.  My question concerns the "From" text line and the "Subject" text line that appears chopped off in the screenshot shown above (I've blurred a portion of the addresses, and those messages really have "no content").
    Any idea as to what would be causing this?  The text font appears oversized and not in alignment with the date but I don't know how to fix it.
    Thanks

    Problem solved.
    TinkerTool was installed and was configured with large text fonts.  Changed font size back down to size 12 and everything now looks normal.

  • Address book - mailing list - sorting order of names

    Generally difficult to edit mailing lists - alter order of names in the list - add email/names in middle of list - drop names from list - copy parts of list to another list - how can you edit a mailing list?

    1 at a time? I don't think so.
    Here is a bonus lesson in selecting multiple items.
    select item 1. Press control+a to select all
    select item1. move up or down several items and hold the shift key while clicking item 2. This selects items 1 and 2 and all items in between.
    hold the control key while clicking random items. This selects any item that is clicked on.
    hold the control key while clicking a selected item. This will deselect that item.
    You cannot drag and drop from a list though. This will only work in the address book itself.
    A contact must exist in the address book that the list is created in to be added to that list.
    You can move or copy contact between address books using drag and drop.
    Drag and drop to move. Hold the control key before dropping to copy. You will see a + sign appear to indicate a copy.
    There operations are universal and not a Thunderbird thing. It has been a part of computer shortcuts since the early 90's.

Maybe you are looking for

  • My Laptop with Synced Firefox crashed and i had to do a fresh install, how can i retrieve all the synced data from the Mozilla Servers

    I had set up Firefox sync on my Windows 7 Laptop which crashed and I had to reinstall windows. I used to be able to share content with my Firefox synced Android too. Is there a way i can retrieve the synced data from the Mozilla servers? I tried to s

  • REF CURSOR in PL/SQL BLOCK

    I am trying to return a ref cursor from a function in a package. I am trying to execute this through SQL Plus and cannot seem to get the code correct this is what I have. Please help. How do I display the output? I tried a CURSOR FOR loop, but got sy

  • Problem with opening project in NetBeans 5.0

    Hi, When i try to open an existing project in NetBeans 5.0 or try to add a new platform to a certain project, my computer is stack and i can't work with the NetBeans IDE ( i have to kill the process) How can i fix this problem?

  • Regarding Non-Cumulated Key figures

    Dear All, I wanted to create Multiprovider which includes infocube having Non-cumulative key figures .When I am including that Non-cumulative key figure in the Multiprovider , I am getting an error "Inconsistencies were found when checking MultiProvi

  • Query runtime problem.

    Hi Gurus, We have a BW 3.5 query build on an infoset (ABC). And this infoset is build on 2 cubes (PQR, XYZ). When I am running the query its taking lot of time(more than 3 hrs). I have checked this query in RSRT  and i found the belo message. RSRT->