Easy one. How to clear Command Line via applescript

LXConsole support and feedback
Post Reply
nizer
Posts: 157
Joined: Sun Jan 23, 2011 1:27 pm
Location: Virginia
Contact:

Easy one. How to clear Command Line via applescript

Post by nizer »

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.
Mark Nizer
mark@nizer.com
admin
Site Admin
Posts: 1643
Joined: Mon Nov 05, 2007 1:26 am
Contact:

Post by admin »

Code: Select all

-- script that clears the command line

tell application "LXConsole"
	
	tell the front document
		set currentCommand to ""
	end tell
	
	
end tell
nizer
Posts: 157
Joined: Sun Jan 23, 2011 1:27 pm
Location: Virginia
Contact:

Wow too easy

Post by nizer »

I knew it was too simple for me to figure out. ;-)
Mark Nizer
mark@nizer.com
nizer
Posts: 157
Joined: Sun Jan 23, 2011 1:27 pm
Location: Virginia
Contact:

one more question

Post by nizer »

Is there a way to have QLab get the current command line info.

I need to get the number that is there.

tell application "LXConsole"
tell the front document to get currentCommand
set mytest to currentCommand
say mytest
end tell
Mark Nizer
mark@nizer.com
Post Reply