Here's a challenge for those that are so inclined. I would find this
useful, and I think others might as well. Write a script to do the following:

1. Go through all messages. For any message with an attachment in the
Attachments folder

2. Put the attachment in a subfolder under Attachments that has the same
structure as the Mail folder/subfolder that the message is in.

In other words, if I have a message in Folder/Subfolder, then the
related attachment would go in

~/Mail/Powermail Files/Attachments/Folder/Subfolder

If the attachment has already been moved out of Attachments, the script
should do nothing.

Subsequent variation is:

3. A script that would do it for the selected messages only.


Ron

P.S. If anybody has such a thing, I would appreciate getting a copy.



Ben Kennedy wrote on 11/27/07:

>Marlyse Comte wrote at 7:28 PM (-0600) on 11/27/07:
>
>>wanted to try this one - sounds very useful - but can't get it to
>>compile, it gets a hiccup on "else set theFolder to folder..." any hints
>>how to get it to compile? (I think I'm good on the line endings so far).
>
>Right, I found the same thing, and forgot to mention.
>
>In the fifth "paragraph", put a newline following "then" on this line:
>
>>if not (exists folder (attachFolder & msgAttachFolder as string)) then set
>
>i.e. the following "set theFolder to..." should commence on its own line.
>
>-ben
>
>-- 
>Ben Kennedy (chief magician)
>zygoat creative technical services
>http://www.zygoat.ca
>
>
>



Reply via email to