Scripting Syntax

From Audacity Wiki
Jump to: navigation, search
 

James: The old content of this page has now been corrected, updated and transferred to the alphamanual.

  • I've implemented missing/incomplete commands.
  • We need a rethink of presentation of commands.
    • The current format is much too verbose.
    • Something like the Shortcuts page in the manual might be more use.


Warning icon This page is work in progress. The commands here are currently only available in some alpha builds, and the documentation may not quite match the commands implemented. That is why this is in the wiki rather than in the alphamanual.
Warning icon When commands return a syntax error, the results may subsequently lag behind the requests, which can get confusing.

Overview

This page contains information about an expanded Syntax for GetTrackInfo and SetTrackInfo for the scripting feature in Audacity.


GetMenusPlus:

Gets a list of all the menu items in JSON format


Parameters:

Dummy: This parameter does not exist.


Examples:

Send Receive
GetMenusPlus GetMenuPlus finished: OK

GetBoxes:

Gets a list of all the toolbars and buttons in JSON format


Parameters:

Dummy: This parameter does not exist.


Examples:

Send Receive
GetBoxes GetBoxes finished: OK


GetClips:

Gets a list of all the clips in JSON format


Parameters:

Dummy: This parameter does not exist.


Examples:

Send Receive
GetClips GetClips finished: OK


GetLabels:

Gets a list of all the labels in JSON format


Parameters:

Dummy: This parameter does not exist.


Examples:

Send Receive
GetLabels GetLabels finished: OK