Re: AS for moving mails to local disk
Re: AS for moving mails to local disk
- Subject: Re: AS for moving mails to local disk
- From: Michelle Steiner <email@hidden>
- Date: Wed, 15 Aug 2007 09:13:11 -0700
On Aug 15, 2007, at 8:32 AM, Gary (Lists) wrote:
I have the same kind of script for Entourage, which works generally
like
this:
This works in principle:
tell application "Mail"
set the target to item 1 of (choose from list (get name of mailboxes))
set the movedMessage to the selection
move the movedMessage to mailbox target
end tell
However, if there are nested folders (which the OP implied there
are), it does not show the hierarchy. Nor does it differentiate
among folders of the same name.
Here is an interesting anomaly; a top-level folder's parent is
account '"On My Mac" of application "Mail"', but the parent of that
top level changes to 'application "Mail" if you ask for the parent of
a sub folder: e.g., a subfolder of my Applescript folder returns
'mailbox "Applescript" of application "Mail"'. If the folder is more
than one deep, the format is even stranger, mixing two forms.
'mailbox "Read mail/shipping" of application "Mail"'.
-- Michelle
--
"When fascism comes to America, it will be wrapped in the flag and
carrying a cross."--Sinclair Lewis
_______________________________________________
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