Extra Menu: Scriptables I
Select
Selects audio. Start and End are time.
First and Last are track numbers.
High and Low are for spectral selection.
FromEnd allows selection from the end, which is handy e.g. to fade in and fade out a track.
The Mode parameter allows arbitrary track selections, e.g adding or removing tracks from the current track selection.
Get Info
Gets information in a list in one of three formats.
Commands+ does not yet work, but is intended to include menu commands too.
Help
This is an extract from GetInfo Commands, with just one command.
Import
Imports from a file. The automation command uses a text box to get the file name rather than a normal file-open dialog.
Export
Exports to a file
Open Project
Opens a project.
Save Project
Saves a project.
Message
Used in testing. Sends the Text string back to you.
Screenshot (short format)
A version of Help -> Screenshot with a more minimal GUI. One of the most useful options is All_Tracks.
The _Plus suffix includes the timeline.
Move Mouse
Experimental command (called Drag in scripting) that moves the mouse.
An Id can be used to move the mouse into a button to get the hover effect.
Window names can be used instead of Ids.
If To is specified, the command does a drag, otherwise just a hover.
Compare Audio
Compares selected range on two tracks. Reports on the differences and similarities.
Get Preference
Gets a single preference setting.
Set Preference
Sets a single preference setting. Some settings such as changing the theme require a reload (use Reload=1), but reload takes time and slows down a script.
Set Clip
Modify a clip by stating the track or channel and a time within it.
Colour and start position can be set.
Try to avoid overlapping clips, as Audacity will allow it, but does not like them.
Set Envelope
Modify an envelope by specifying a track or channel and a time within it.
You can't yet delete individual envelope points, but can delete envelopes (that contain the chosen time) using Delete=1.
Set Label
Modifies an existing label. You must give it the label number.
Set Project
Sets the project window to a particular location and size. Can also change the caption - but that is cosmetic and may be overwritten again later by Audacity.
Set Track
Sets properties for a track or channel (or both). Setting one channel of a stereo track can lead to interesting results. That's most used when setting relative sizing of the two channels.
SpectralPrefs=1 sets the track to use general preferences, SpectralPrefs=0 per track prefs. When using general preferences, SetPreference can be used to change a preference and so affect display of the track.
Name is used to set the name. It is not used in choosing the track.

















