Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RLRL

macrumors member
Original poster
Jan 31, 2015
76
6
Catalina iMac,


I have a script that deletes SpamSieve Spam from Mac Mail Spam Mailbox, works really well with smaller Spam Mailboxes that with less than 300 spams emails.

However with large Spam Mailboxes with 600 or more Spam emails it times out before completing.

I was trying to place a Timeout in the code but do not understand how to code it.
I can not it compile or run.

Here is the Script file.

I was trying to use timeout command but can not make it work.

Can someone help me with this.

I need to give the script about 300 seconds to complete.
 

Attachments

  • Discard Spam.txt
    11.2 KB · Views: 1
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.