List of all AppleScript commands for Terminal application

applescriptterminal

In AppleScript we can write things like:

tell application "Terminal"
    activate
    set currentTab to do script (someScript)
end tell

I mean we are using commands like activate and set currentTab....

Where can I find documentation and a full list of all the commands that we can use for Terminal in AppleScript?

Best Answer

In Script Editor you can reference the Dictionary:

enter image description here

Open Script Editor, navigate to File > Open Dictionary... Choose The Terminal.app

When you click Terminal Suite you can see a list of classes:

enter image description here

If you wanted to get deeper in AppleScript you could buy the application Script Debugger version 7, but as noted in the comment there is a free version which is Script Debugger Lite if I recall. It appears to have an extensive library and utilizes a tree structure separation that helps filter through what you might want. The referenced image is from Script Debugger 6.

enter image description here