Scripting a mail Appliance
Scripting a mail Appliance
- Subject: Scripting a mail Appliance
- From: JDB Science LLC <email@hidden>
- Date: Sat, 5 Jun 2004 14:23:55 -0400
I am trying to create a "Mail Appliance" for some users whom I have
observed to have difficulty with the plethora of choices that confront
them with they open the Mac OS X Mail app. For instance I recently got
a call because the user had not seen any incoming e-mail for 6 or 8
weeks. It turned out that her Mail app opened to the "Out" mailbox
window showing 0 messages. She never saw the drawer with the "In"
mailbox. She had 188 unread messages sitting there.
I think that a login AppleScript would help this person. I have
enclosed one that accomplishes part of the task:
tell application "Mail"
activate
if (count of every message viewer) < 1 then
make new message viewer
end if
tell message viewer 1
set selected mailboxes to {inbox of application "Mail"}
set preview pane is visible to true
set visible columns to {+constant ********;, message status column,
attachments column, from column,
to column, subject column, date received
column}
set sort column to date received column
set sorted ascending to false
set mailbox list visible to true
end tell
end tell
Sure enough I get a nice viewer window that the user can recognize as
incoming mail. I would like the result to be a bit more bulletproof:
1). The viewer window toolbar should be expanded. It seems to come out
this way, but I want to be sure.
2). The viewer window should be the frontmost window on the screen when
the script completes.
Any hints to accomplish these things will be most welcome.
Thank You
--
Dr. John D. Barnes phone: 301-652-0667
JDB Science, LLC email: email@hidden
7710 Chatham Rd url:
http://www.jdbscience.com
Chevy Chase, MD 20815, USA FAX: 1-619-789-5112
"Time is fun when you are having flies." - Kermit the Frog
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.