|
|
Scripts from Sal at Apple...
Sal Soghoian, Apple's AppleScript guru, sent me the following email -- everything from here on is Sal's writing:
I noticed your scripts for controlling the display of messages in Mail. The fastest and easiest way is to use the power of AppleScript "whose" clauses:
OK, it's robg again: I tested these, and they (not surprisingly!) worked as Sal described...
-rob.
Scripts from Sal at Apple...
Very sleek code! Unfortunately the error messag did not work (on Panther)
though its possible to leave it out it would be nice to know how to correct this.
Scripts from Sal at Apple...
this should work:
although i would add some more feedback in the dialog, like
Scripts from Sal at Apple...
combining Sal's hint, the diagnosis of the single-message bug, and the original hint, produces the following, which seems to work with one or more unread messages, and preserve the speedup of Sal's hint. The obvious parallel changes work for the 'flagged' case.
Scripts from Sal at Apple...
I rolled the scripts above into a toggle script. I named this file "Toggle Show Flagged___cmd-\.scpt", but you can name it what you like...
Scripts from Sal at Apple...
I cannot get the first (read status false) script above to work! (Mac OS X 10.3.2) The error message I get is NSUnknownKeyScriptError The second and third scripts work flawlessly, though. I suspect the problem is with the -Mark
Scripts from Sal at Apple...
BTW, I was referring to Sal's scripts above!
a bug with "visible messages" ... it has to consist of at least 2 messages?
maybe you have only 1 unread mail?
there seems to be a bug with
visible messages, as this list has to consist of at least 2 messages ... with only 1 or less you get that "NSUnknownKeyScriptError" error ... kind of buggy :-(
a bug with "visible messages" ... it has to consist of at least 2 messages?
That was it. Now why did I not think of that!
a bug with "visible messages" - no, just bad AS coding...
It is not a bug with
visible messages but rather an oversight in the coding of the original script...Try using set the visible messages to every message whose read status is false as list
which should work for single messages as well - AS automatically typecasts single item lists to non-list items...
Scripts from Sal at Apple...
(I'm a complete novice). Script Editor wouldn't accept the syntax for any of the scripts in this thread, I post a screenshot here: |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|