#cp.apple.finalcutpro.main.KeywordEditor

Keyword Editor Module.


#API Overview

Constants - Useful values which cannot be changed

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

#Constants

Signaturecp.apple.finalcutpro.main.KeywordEditor.NUMBER_OF_SHORTCUTS -> number
TypeConstant
DescriptionThe number of Keyword Keyboard shortcuts available.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 26

#Functions

Signaturecp.apple.finalcutpro.main.KeywordEditor.matches(element) -> boolean
TypeFunction
DescriptionChecks to see if an hs.axuielement object matches a Keyword Editor window
Parameters
  • element - the hs.axuielement object you want to check
Returns
  • true if a match otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 31

#Constructors

Signaturecp.apple.finalcutpro.main.KeywordEditor(parent) -> KeywordEditor object
TypeConstructor
DescriptionCreates a new KeywordEditor object
Parameters
  • parent - The parent
Returns
  • A KeywordEditor object
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 64

#Fields

Signaturecp.apple.finalcutpro.main.KeywordEditor.isShowing <cp.prop: boolean; live?>
TypeField
DescriptionIndicates whether or not the Keyword Editor is currently showing.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 112

Signaturecp.apple.finalcutpro.main.KeywordEditor.keyboardShortcuts <cp.ui.DisclosureWindow>
TypeField
DescriptionThe DisclosureTriangle that shows/hides the keyboard shortcuts configuration.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 183

Signaturecp.apple.finalcutpro.main.KeywordEditor.keywords <cp.ui.TextField>
TypeField
DescriptionA TextField that contains the current keywords. The value is a table of string values for each individual keyword.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 173

Signaturecp.apple.finalcutpro.main.KeywordEditor.resetButton <cp.ui.Button>
TypeField
DescriptionThe Button that resets the current keywords to blank.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 238

Signaturecp.apple.finalcutpro.main.KeywordEditor.shortcutButtons <table of cp.ui.Button>
TypeField
DescriptionThe list of keyboard shortcut Buttons. The button for Cmd+1 is accessed via shortcutButtons[1], and so on.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 218

Signaturecp.apple.finalcutpro.main.KeywordEditor.shortcutFields <table of KeywordField>
TypeField
DescriptionThe list of keyboard shortcut KeywordFields. The field for Cmd+1 is accessed via shortcutFields[1], and so on.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 198

#Methods

Signaturecp.apple.finalcutpro.main.KeywordEditor:doHide() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that hides the Keyword Editor.
Parameters
  • None
Returns
  • The Statement
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 160

Signaturecp.apple.finalcutpro.main.KeywordEditor:doShow() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that shows the Keyword Editor.
Parameters
  • None
Returns
  • The Statement
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 133

Signaturecp.apple.finalcutpro.main.KeywordEditor:hide() -> boolean
TypeMethod
DescriptionHides the Keyword Editor.
Parameters
  • None
Returns
  • KeywordEditor object
  • true if successful otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 146

Signaturecp.apple.finalcutpro.main.KeywordEditor:parent() -> table
TypeMethod
DescriptionReturns the KeywordEditor's parent table
Parameters
  • None
Returns
  • The parent object as a table
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 89

Signaturecp.apple.finalcutpro.main.KeywordEditor:show() -> boolean
TypeMethod
DescriptionShows the Keyword Editor.
Parameters
  • None
Returns
  • KeywordEditor object
  • true if successful otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua line 119