#cp.apple.finalcutpro.cmd.CommandEditor

Command Editor Module.


#API Overview

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Functions

Signaturecp.apple.finalcutpro.cmd.CommandEditor.matches(element) -> boolean
TypeFunction
DescriptionChecks to see if an element matches what we think it should be.
Parameters
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 36

#Constructors

Signaturecp.apple.finalcutpro.cmd.CommandEditor(app) -> CommandEditor
TypeConstructor
DescriptionCreates a new Command Editor object.
Parameters
  • app - The cp.apple.finalcutpro object.
Returns
  • A new CommandEditor object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 61

#Fields

Signaturecp.apple.finalcutpro.cmd.CommandEditor.closeButton <cp.ui.Button>
TypeField
DescriptionThe "Close" Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 227

Signaturecp.apple.finalcutpro.cmd.CommandEditor.command <cp.ui.CheckBox>
TypeField
DescriptionThe "Command" CheckBox.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 254

Signaturecp.apple.finalcutpro.cmd.CommandEditor.commandDetail <cp.apple.finalcutpro.cmd.CommandDetail>
TypeField
DescriptionThe CommandDetail section.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 350

Signaturecp.apple.finalcutpro.cmd.CommandEditor.commandGroups <cp.apple.finalcutpro.cmd.CommandGroups>
TypeField
DescriptionThe CommandGroups.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 333

Signaturecp.apple.finalcutpro.cmd.CommandEditor.commandList <cp.apple.finalcutpro.cmd.CommandList>
TypeField
DescriptionThe CommandList.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 317

Signaturecp.apple.finalcutpro.cmd.CommandEditor.commands <cp.apple.finalcutpro.cmd.Commands>
TypeField
DescriptionThe Commands.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 326

Signaturecp.apple.finalcutpro.cmd.CommandEditor.commandSet <cp.ui.PopUpButton>
TypeField
DescriptionThe "Command Set" PopUpButton.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 236

Signaturecp.apple.finalcutpro.cmd.CommandEditor.control <cp.ui.CheckBox>
TypeField
DescriptionThe "Control" CheckBox.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 281

Signaturecp.apple.finalcutpro.cmd.CommandEditor.keyboard <cp.ui.Group>
TypeField
DescriptionThe Group containing the keyboard shortcuts. Does not seem to expose the actual key buttons.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 308

Signaturecp.apple.finalcutpro.cmd.CommandEditor.keyboardToggle <cp.ui.CheckBox>
TypeField
DescriptionThe "Keyboard Toggle" CheckBox (next to the Search field).
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 290

Signaturecp.apple.finalcutpro.cmd.CommandEditor.keyDetail <cp.appple.finalcutpro.cmd.KeyDetail>
TypeField
DescriptionThe KeyDetail section.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 340

Signaturecp.apple.finalcutpro.cmd.CommandEditor.modifiers <cp.ui.Group>
TypeField
DescriptionThe Group containing 'modifier' checkboxes (Cmd, Shift, etc).
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 245

Signaturecp.apple.finalcutpro.cmd.CommandEditor.option <cp.ui.CheckBox>
TypeField
DescriptionThe "Option" CheckBox.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 272

Signaturecp.apple.finalcutpro.cmd.CommandEditor.save <cp.ui.Button>
TypeField
DescriptionThe "Save" Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 218

Signaturecp.apple.finalcutpro.cmd.CommandEditor.search <cp.ui.TextField>
TypeField
DescriptionThe "Search" TextField.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 299

Signaturecp.apple.finalcutpro.cmd.CommandEditor.shift <cp.ui.CheckBox>
TypeField
DescriptionThe "Shift" CheckBox.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 263

Signaturecp.apple.finalcutpro.cmd.CommandEditor.UI <cp.prop: axuielement; read-only>
TypeField
DescriptionThe axuielement for the window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 71

#Methods

Signaturecp.apple.finalcutpro.cmd.CommandEditor:app() -> App
TypeMethod
DescriptionReturns the app instance representing Final Cut Pro.
Parameters
  • None
Returns
  • App
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 84

Signaturecp.apple.finalcutpro.cmd.CommandEditor:doClose() -> cp.rx.go.Statement <boolean>
TypeMethod
DescriptionReturns a Statement that triggers the Close button in the Command Editor.
Parameters
  • None
Returns
  • The Statement, resolving to true if the button was found and pushed, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 203

Signaturecp.apple.finalcutpro.cmd.CommandEditor:doFindCommandID(commandID, [highlight]) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will find the command with the given ID, revealing it at the top of the commands list.
Parameters
  • commandID - The locale-neutral ID of the command to find. Eg. "NextEdit" (ID), not "Go To Next Edit" (English)
  • highlight - (optional) If true, the command will be highlighted in the list.
Returns
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 383

Signaturecp.apple.finalcutpro.cmd.CommandEditor:doSave() -> cp.rx.go.Statement <boolean>
TypeMethod
DescriptionReturns a Statement that triggers the Save button in the Command Editor.
Parameters
  • None
Returns
  • The Statement, resolving to true if the button was found and pushed, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 190

Signaturecp.apple.finalcutpro.cmd.CommandEditor:doShow() -> cp.rx.go.Statement <boolean>
TypeMethod
DescriptionCreates a Statement that will attempt to hide the Command Editor, if FCPX is running. If the changes have not been saved, they will be lost.
Parameters
  • None
Returns
  • The Statement, which will resolve to true if the CommandEditor is not showing or false if not.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 155

Signaturecp.apple.finalcutpro.cmd.CommandEditor:hide() -> cp.apple.finalcutpro.cmd.CommandEditor
TypeMethod
DescriptionHides the Command Editor.
Parameters
  • None
Returns
  • The cp.apple.finalcutpro.cmd.CommandEditor object for method chaining.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 141

Signaturecp.apple.finalcutpro.cmd.CommandEditor:show() -> cp.apple.finalcutpro.cmd.CommandEditor
TypeMethod
DescriptionShows the Command Editor.
Parameters
  • None
Returns
  • The cp.apple.finalcutpro.cmd.CommandEditor object for method chaining.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/cmd/CommandEditor.lua line 97