1

I want to run a shell command in Terminal, then clear the console, from Applescript.

If I was doing this by hand, I'd use ^K -- how do I send the ^K character in a string to Terminal?

AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68

2 Answers2

1

I think you are looking for the 'clear' command.

Skip Head
  • 7,580
  • 1
  • 30
  • 34
1

I think the gent who suggested 'clear' probably has the issue solved, but just in case you actually want to do what you said you did, you can simply use:

echo "^L"

(you type this as 'echo ""')

feoh
  • 1,281
  • 1
  • 14
  • 19