#cp.apple.finalcutpro.main.PrimaryWindow

Primary Window 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.main.PrimaryWindow.matches(w) -> boolean
TypeFunction
DescriptionChecks to see if a window matches the PrimaryWindow requirements
Parameters
  • w - The window to check
Returns
  • true if matched otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 24

#Constructors

Signaturecp.apple.finalcutpro.main.PrimaryWindow(app) -> PrimaryWindow object
TypeConstructor
DescriptionCreates a new PrimaryWindow.
Parameters
  • None
Returns
  • PrimaryWindow
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 41

#Fields

Signaturecp.apple.finalcutpro.main.PrimaryWindow.alert <cp.ui.Alert>
TypeField
DescriptionProvides access to any 'Alert' windows on the PrimaryWindow.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 335

Signaturecp.apple.finalcutpro.main.PrimaryWindow:bottomGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the bottom group UI as a hs.axuielement object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 201

Signaturecp.apple.finalcutpro.main.PrimaryWindow.browserGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the UI which contains the Browser.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 252

Signaturecp.apple.finalcutpro.main.PrimaryWindow.colorBoard <ColorBoard>
TypeField
DescriptionThe ColorBoard object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 309

Signaturecp.apple.finalcutpro.main.PrimaryWindow:doShow() -> PrimaryWindow
TypeField
DescriptionA Statement that attempts to show the Primary Window.
Returns
  • The Statement, which resolves as either true or sends an error.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 276

Signaturecp.apple.finalcutpro.main.PrimaryWindow.frame <cp.prop: frame>
TypeField
DescriptionThe current position (x, y, width, height) of the window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 107

Signaturecp.apple.finalcutpro.main.PrimaryWindow.hsWindow <cp.prop: hs.window; read-only>
TypeField
DescriptionThe hs.window instance for the window, or nil if it can't be found.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 86

Signaturecp.apple.finalcutpro.main.PrimaryWindow.inspector <Inspector>
TypeField
DescriptionThe Inspector object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 296

Signaturecp.apple.finalcutpro.main.PrimaryWindow.isFullScreen <cp.prop: boolean>
TypeField
DescriptionIs true if the window is full-screen.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 100

Signaturecp.apple.finalcutpro.main.PrimaryWindow.isShowing <cp.prop: boolean>
TypeField
DescriptionIs true if the window is visible.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 93

Signaturecp.apple.finalcutpro.main.PrimaryWindow.leftGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the left group UI as a hs.axuielement object
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 125

Signaturecp.apple.finalcutpro.main.PrimaryWindow.rightGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the right group UI as a hs.axuielement object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 145

Signaturecp.apple.finalcutpro.main.PrimaryWindow.rootGroupUI() <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the top AXSplitGroup as a hs.axuielement object
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 114

Signaturecp.apple.finalcutpro.main.PrimaryWindow.timelineGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the UI that contains the Timeline.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 245

Signaturecp.apple.finalcutpro.main.PrimaryWindow.toolbar <cp.ui.PrimaryToolbar>
TypeField
DescriptionThe PrimaryToolbar element.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 322

Signaturecp.apple.finalcutpro.main.PrimaryWindow.topGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the top group UI as a hs.axuielement object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 162

Signaturecp.apple.finalcutpro.main.PrimaryWindow.UI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionThe main axuielement for the window. May be nil if not currently available.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 74

Signaturecp.apple.finalcutpro.main.PrimaryWindow.viewerGroupUI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionReturns the UI that contains the Viewer.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 238

Signaturecp.apple.finalcutpro.main.PrimaryWindow.window <cp.ui.Window>
TypeField
DescriptionThe Window instance.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 67

#Methods

Signaturecp.apple.finalcutpro.main.PrimaryWindow:app() -> cp.apple.finalcutpro
TypeMethod
DescriptionReturns the application the display belongs to.
Parameters
  • None
Returns
  • The app instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 54

Signaturecp.apple.finalcutpro.main.PrimaryWindow:show() -> PrimaryWindow
TypeMethod
DescriptionShows the Primary Window.
Parameters
  • None
Returns
  • The PrimaryWindow instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/PrimaryWindow.lua line 259