Here is a small script written in applescript that sends a purge command to your computer. Use it when your mac is sluggish and needs a memory flush. I use it when the show computer doesn’t flush QLab sound or projection cues, but you can use it any time your mac ram needs to be cleared of unnecessary data it may hanging onto.
tell current application activate do shell script "purge" password "put-your-computer-password-here" with administrator privileges display dialog "Memory has been purged." giving up after 5 end tell
Just copy the above and paste it into your script editor.