Re: Scripting Mailbox Properties in Mail
Re: Scripting Mailbox Properties in Mail
- Subject: Re: Scripting Mailbox Properties in Mail
- From: Hylton Boothroyd <email@hidden>
- Date: Sat, 5 Jan 2008 21:11:18 +0000
On 4 Jan 2008, at 11:13:23 Axel Luttgens wrote very instructively
indeed about my request for help with
====
tell application "Mail"
set mailboxName to "Unread"
try
set (mailbox column of visible columns of mailboxName) to true
on error the error_message number the error_number
[a standard error handler from Script Editor's contextual menu]
end try
end tellThis is my first go at scripting in OS X, though I did
plenty of
simple personal scripts and adaptations in OS 9.
ending with
tell application "Mail"
tell first message viewer
set visible columns to visible columns & mailbox column
end tell
end tell
which works perfectly and is now at the top of my new script menu in
the toolbar as "AxelsGem.scrpt". Many thanks: it's already made
things more fluent.
With the help of EasyFind's thorough searching for both visibles and
invisibles, I've been trying to find a way to make the last aesthetic
step of activating the script automatically when a particular smart
mailbox is opened (perhaps as a sort of pseudo Folder Action). I'm
beginning to think that it can't be done in Tiger, but would welcome
any rays of hope that anyone might be able to offer.
I _think_ it's the case that
a) ordinary mailboxes can be located and addressed and scripted as
the real folders that they are;
b) smart folders in Finder can be located by name as "Saved
Searches" but not as folders;
c) smart folders in Finder appear to offer Folder Actions via the
contextual menu, but don't show any signs of understanding what then
to do;
d) smart mailboxes in Mail can't be located by name.
--
Hylton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden