I'm following your discussion with interest. Will the result be available
for us others as well?

Max G

At 2003-05-21, 06.19 CET, Wayne Brissette <[EMAIL PROTECTED]> wrote:

>Andy Fragen [EMAIL PROTECTED] on 5/20/03 at 6:40 PM stated: 
>
>
>>Wayne,
>>
>>I tried to set up a cron job running this script, which I saved as an
>>app. Nothing seemed to happen except the script timed out. Manually
>>running the script will open script editor otherwise. Do you actually
>>have this working or should it supposedly work correctly this way. ;-)
>>
>First. Don't save it as an application. There isn't any reason to do
>this. Just save it as a compiled script. This may fix the problem. 
>
>Here is some code that will also do what you want. 
>
>tell application "PowerMail"
>       set AllMessages to every message in message container "mail trash"
>       repeat with i from 1 to (count of AllMessages)
>               set tmp_Message to item i of AllMessages
>               delete tmp_Message
>       end repeat
>end tell
>
>Just make sure you setup your crontab properly it should look something
>like this:
>
>30 15 */3 * * osascript /Users/admin/deleteMessages
>
>This would run the script every 3 days at 3:30 PM
>
>
>Wayne
>
>-- 
>Music is spiritual. The music business is not. 
>- Van Morrison
>
>Live DAT & Music Page: http://homepage.mac.com/wayneb/
>Wayne's Music Calendar: http://ical.mac.com/wayneb/Music
>PowerMail AppleScript Archives: http://homepage.mac.com/wayneb/powermail.html
>
>Music Currently playing: 
>
>
>
>


Reply via email to