Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set understanding to (get explanation)



While fixing an error in another script, I ran the following experiment to see what would happen.

tell application "Mail"
activate
if (count message viewers) = 0 then make new message viewer
set frontViewer to (some message viewer whose index is 1)
set selected mailboxes of frontViewer to {trash mailbox}
--
set visible messages of frontViewer to (get messages of frontViewer) -- unthreads the viewer, if threaded
delay 3
set visible messages of frontViewer to (messages of frontViewer) -- rethreads the viewer, if threaded
end tell
beep


If your trash mailbox is not "Organized by Thread", you will not see anything. If it is threaded, you will see it become unthreaded for 3 seconds. Notice that the two 'set visible ...' lines differ by only one word, namely 'get'.

Who has an explanation?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.