On Tue, Jun 17, 2003, Andy Fragen [EMAIL PROTECTED], invoked powers
within the internet realm, to proclaim ...

>*This message was transferred with a trial version of CommuniGate(tm) Pro*
>On Tue, Jun 17, 2003, Larry Samberg said:
>
>>On Tue, 17 Jun 2003 14:06:09 -0700 Andy Fragen wrote:
>>
>>>If you don't want something to be
>>>trashed then don't put it in the trash.
>>
>>That was profound :)
>>
>>If I could eliminate all of my mistakes that easily I wouldn't have to
>>work any more...
>
>I wasn't really trying to be profound. I just don't know of any email
>program that adds a "time message moved to another folder" option. If any
>of them did it would be a simple scripting change.
>
>Unfortunately the only solution is behaviour modification. Don't set PM
>up to delete the trash and don't use any other script to delete your
>trash. You may set up a script that will give you a small electrical
>impulse through your keyboard if your trash does empty. This may aid in
>retraining. ;)

I was just wondering if anyone has thought of using an AppleScript that
deleted messages based on their labels. I have used a similar message as this:

(* Begin AppleScript *)
property deleteTally : 0

tell application "PowerMail"
        set the listOfMessages to the current messages
        repeat with msgUp in the listOfMessages
                set the msgLabel to the label of the msgUp
                if the msgLabel is 10 then
                        delete the msgUp
                        set the deleteTally to the deleteTally + 1
                end if
        end repeat
        if the deleteTally is greater than 0 then
                say "I have purged " & the deleteTally & " old messages for 
you."
                set the deleteTally to 0
        else
                say "There are no messages to delete."
        end if
end tell
(* End AppleScript *)

I haven't tried, so I don't know if it is possible to have the script
check messages in a specific folder, instead of messages that are
selected by the user. I imagine one could use labels for each week in the
month, then have the script methodically delete messages of a specific
week, on a weekly routine, or as activated by the user. But, that would
be one option. I'm still new to OS X and PowerMail, so I haven't created
too many scripts, yet. I've always liked using labels to provide extended
"categories" for messages and other objects. (I'm hopelessly lost in the
OS X finder, but not lost enough to use a hack or shareware to get the
feature I enjoyed so much before OS X.)

Another thought I had, is to create a dated folder for messages to go
into. Meaning, the name of the folder is a specific date which an
AppleScript would check against the user's preferences. I think this
option would make a lot of folders to deal with. 

HTH

cheshirekat

-- 
* 867 PowerBook G4 * OS X 10.2.5 * 768 MB Ram *
* Addictions: iTunes 4 * WarCraft * The Sims *


Reply via email to