Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 2.96 KB

File metadata and controls

42 lines (33 loc) · 2.96 KB

docs » cp.apple.finalcutpro.main.KeywordField


Keyword Text Field Module.

API Overview

  • Constructors - API calls which return an object, typically one that offers API methods
  • KeywordField
  • Methods - API calls which can only be made on an object returned by a constructor
  • addKeyword
  • removeKeyword

API Documentation

Constructors

Signature cp.apple.finalcutpro.main.KeywordField(parent, uiFinder) -> KeywordField
Type Constructor
Description Constructs a new KeywordField.
Parameters
  • parent - the parent object.
  • uiFinder - The function or cp.prop that provides the axuielement.
Returns
  • The new KeywordField.

Methods

Signature cp.apple.finalcutpro.main.KeywordField:addKeyword(keyword) -> boolean
Type Method
Description Attempts to add the specified keyword.
Parameters
  • keyword - The keyword string to add.
Returns
  • true if the keyword was not present and added, otherwise false.
Signature cp.apple.finalcutpro.main.KeywordField:removeKeyword(keyword) -> boolean
Type Method
Description Attempts to remove the specified keyword.
Parameters
  • keyword - The keyword string to remove.
Returns
  • true if the keyword was present and removed, otherwise false.