Easy one. How to clear Command Line via applescript
Posted: Sun Sep 09, 2018 3:27 pm
Having a brain fart here.
I have tried ALL the commented out lines. I just want to clear the command line in LX after I patch the light. The first part works for the string mypatch
tell application "LXConsole"
set mypatch to "@436"
set mylight to "Left L.E.D. Intensity Patched."
tell the front document to doCommand string mypatch
say mylight
delay 1
--set ClearCommandLine to "/key.lxconsole/clear"
--tell the front document to doCommand string ClearCommandLine
--tell the front document to doCommand string "clear"
--tell the front document to doCommand string "/key.lxconsole/clear"
end tell
As always thanks for the help and great software.
I have tried ALL the commented out lines. I just want to clear the command line in LX after I patch the light. The first part works for the string mypatch
tell application "LXConsole"
set mypatch to "@436"
set mylight to "Left L.E.D. Intensity Patched."
tell the front document to doCommand string mypatch
say mylight
delay 1
--set ClearCommandLine to "/key.lxconsole/clear"
--tell the front document to doCommand string ClearCommandLine
--tell the front document to doCommand string "clear"
--tell the front document to doCommand string "/key.lxconsole/clear"
end tell
As always thanks for the help and great software.