Re: Script to remove AUGD from Subject
Re: Script to remove AUGD from Subject
- Subject: Re: Script to remove AUGD from Subject
- From: Luther Fuller <email@hidden>
- Date: Sun, 11 Jan 2009 10:24:10 -0600
On Jan 11, 2009, at 9:12 AM, Roy McCoy wrote:
Fuller Luther wrote:
You may need to get the message viewer involved. Here is a snippet
from one of my scripts ...
tell application "Mail"
activate
set frontViewer to (some message viewer whose index is 1)
set msgList to selected messages of frontViewer
What then? move msgList? move text item something of msgList? move
every message in msgList?
Anything you need. In my script there is a lot of code before finally
arriving at ...
repeat with msg in msgList
"some message viewer whose index is 1" apparently provoked a crash
the second time I ran a script with it, an alert preceding the crash
saying it couldn't make the connection or some such.
Just so we are singing from the same music, I am using 10.5.6 and I
always run this code from an application bundle.
Also, the inbox is referred to as 'mailbox inbox', not 'mailbox
"inbox"'.
When I change from
mailbox "Inbox"
which yields an alert saying it can't be found, to
mailbox inbox
I get instead "Can’t make inbox into type integer." This seems
strange too.
I think I should have said 'inbox' not 'mailbox inbox'. Here's another
snippet ...
set selected mailboxes of frontViewer to {inbox}
set messageList to (every message of inbox)
repeat with msg in messageList
...
end repeat
_______________________________________________
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