In AppleScript we can write things like:

tell application "Terminal"
    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?

  • 1
    Via the menu in Script Editor: Window > Library (⇧⌘L). This brings up a list of scriptable applications. Double click on the application whose dictionary you wish to view. If the application isn’t listed, locate it in Finder and drag-n-drop it onto the Library window to add it to the list. – CJK Oct 9 '18 at 16:29

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

  • Script Debugger is free. – CJK Oct 9 '18 at 20:29
  • Script Debugger light is free, the reference image is from Script Debugger 6. I think they just released a free version. – ʀ2ᴅ2 Oct 9 '18 at 20:54
  • 1
    Although the object model—which your image shows—isn't available in the free version of Script Debugger, the rest of its dictionary is, and even this utility alone is fairly outstanding and a lot more comprehensive than Scipt Editor's version. So, yes, your recommendation for Script Debugger is a very good one, indeed, whichever route—paid or free—the OP might take. – CJK Oct 9 '18 at 20:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .