I'd like to write an AppleScript command that can run Terminal and write "purge" , press return and then cmd-q.
I tried this way:
tell application "terminal" keystroke ??????????? (I don't know how to use keystrokes commands!) end tell
I'd like to compose this command with AppleScript to free RAM space only starting a script without third party apps.