#cp.apple.finalcutpro.main.KeywordField

Keyword Text Field Module.


#API Overview

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

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


#API Documentation

#Constructors

Signaturecp.apple.finalcutpro.main.KeywordField(parent, uiFinder) -> KeywordField
TypeConstructor
DescriptionConstructs a new KeywordField.
Parameters
  • parent - the parent object.
  • uiFinder - The function or cp.prop that provides the axuielement.
Returns
  • The new KeywordField.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordField.lua line 17

#Methods

Signaturecp.apple.finalcutpro.main.KeywordField:addKeyword(keyword) -> boolean
TypeMethod
DescriptionAttempts to add the specified keyword.
Parameters
  • keyword - The keyword string to add.
Returns
  • true if the keyword was not present and added, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordField.lua line 53

Signaturecp.apple.finalcutpro.main.KeywordField:removeKeyword(keyword) -> boolean
TypeMethod
DescriptionAttempts to remove the specified keyword.
Parameters
  • keyword - The keyword string to remove.
Returns
  • true if the keyword was present and removed, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/KeywordField.lua line 77