#cp.apple.finalcutpro

Represents the Final Cut Pro application, providing functions that allow different tasks to be accomplished.

Generally, you will require the cp.apple.finalcutpro module to import it, like so:

local fcp = require "cp.apple.finalcutpro"

Then, there are the UpperCase files, which represent the application itself:

  • MenuBar - The main menu bar.
  • prefs/PreferencesWindow - The preferences window.
  • etc...

The fcp variable is the root application. It has functions which allow you to perform tasks or access parts of the UI. For example, to open the Preferences window, you can do this:

fcp.preferencesWindow:show()

In general, as long as Final Cut Pro is running, actions can be performed directly, and the API will perform the required operations to achieve it. For example, to toggle the 'Create Optimized Media' checkbox in the 'Import' section of the 'Preferences' window, you can simply do this:

fcp.preferencesWindow.importPanel:toggleCreateOptimizedMedia()

The API will automatically open the Preferences window, navigate to the 'Import' panel and toggle the checkbox.

The UpperCase classes also have a variety of UI methods. These will return the axuielement for the relevant GUI element, if it is accessible. If not, it will return nil. These allow direct interaction with the GUI if necessary. It's most useful when adding new functions to UpperCase files for a particular element.

This can also be used to 'wait' for an element to be visible before performing a task. For example, if you need to wait for the Preferences window to finish loading before doing something else, you can do this with the just library:

local just = require "cp.just" local prefsWindow = fcp.preferencesWindow local prefsUI = just.doUntil(function() return prefsWindow:UI() end) if prefsUI then -- it's open! else -- it's closed! end

By using the just library, we can do a loop waiting until the function returns a result that will give up after a certain time period (10 seconds by default).

Of course, we have a specific support function for that already, so you could do this instead:

if fcp.preferencesWindow:isShowing() then -- it's open! else -- it's closed! end

Delegates to: app, menu

Notes: All values/methods/props from delegates can be accessed directly from the cp.apple.finalcutpro instance. For example:

fcp.app:UI() == fcp:UI() -- the same `cp.prop` result.

#Submodules


#API Overview

Constants - Useful values which cannot be changed

Variables - Configurable values

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.ALLOWED_IMPORT_AUDIO_EXTENSIONS -> table
TypeConstant
DescriptionTable of audio file extensions Final Cut Pro can import.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 236

Signaturecp.apple.finalcutpro.ALLOWED_IMPORT_EXTENSIONS -> table
TypeConstant
DescriptionTable of all file extensions Final Cut Pro can import.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 246

Signaturecp.apple.finalcutpro.ALLOWED_IMPORT_IMAGE_EXTENSIONS -> table
TypeConstant
DescriptionTable of image file extensions Final Cut Pro can import.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 241

Signaturecp.apple.finalcutpro.ALLOWED_IMPORT_VIDEO_EXTENSIONS -> table
TypeConstant
DescriptionTable of video file extensions Final Cut Pro can import.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 231

Signaturecp.apple.finalcutpro.EARLIEST_SUPPORTED_VERSION -> string
TypeConstant
DescriptionThe earliest version of Final Cut Pro supported by this module.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 206

Signaturecp.apple.finalcutpro.EVENT_DESCRIPTION_PATH -> string
TypeConstant
DescriptionThe Event Description Path.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 221

Signaturecp.apple.finalcutpro.FLEXO_LANGUAGES -> table
TypeConstant
DescriptionTable of Final Cut Pro's supported Languages for the Flexo Framework
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 226

Signaturecp.apple.finalcutpro.PASTEBOARD_UTI -> string
TypeConstant
DescriptionFinal Cut Pro's Pasteboard UTI
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 211

Signaturecp.apple.finalcutpro.preferences <cp.app.prefs>
TypeConstant
DescriptionThe cp.app.prefs for Final Cut Pro.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 161

Signaturecp.apple.finalcutpro.WORKSPACES_PATH -> string
TypeConstant
DescriptionThe path to the custom workspaces folder.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 216

#Variables

Signaturecp.apple.finalcutpro.activeCommandSet <cp.prop: table; live>
TypeVariable
DescriptionContins the 'Active Command Set' as a table. The result is cached, but
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1058

Signaturecp.apple.finalcutpro:customWorkspaces <cp.prop: table; live>
TypeVariable
DescriptionA table containing the display names of all the user created custom workspaces.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 616

Signaturecp.apple.finalcutpro:openAndSavePanelDefaultPath <cp.prop: string>
TypeVariable
DescriptionA string containing the default open/save panel path.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 943

Signaturecp.apple.finalcutpro.selectedWorkspace <cp.prop: string; live>
TypeVariable
DescriptionThe currently selected workspace name. The result is cached, but updated
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 584

#Functions

Signaturecp.apple.finalcutpro.commandSet(path) -> string
TypeFunction
DescriptionGets the Command Set at the specified path as a table.
Parameters
  • path - The path to the Command Set.
Returns
  • The Command Set as a table, or nil if there was a problem.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1040

Signaturecp.apple.finalcutpro.main.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/main/LibrariesList.lua line 30

Signaturecp.apple.finalcutpro.viewer.TranscodeMedia.matches(element) -> boolean
TypeFunction
DescriptionChecks if the element is an TranscodeMedia instance.
Parameters
  • element - The axuielement to check.
Returns
  • true if it matches the pattern for a Viewer TranscodeMedia.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/TranscodeMedia.lua line 21

Signaturecp.apple.finalcutpro.userCommandSetPath() -> string or nil
TypeFunction
DescriptionGets the path where User Command Set files are stored.
Parameters
  • None
Returns
  • A path as a string or nil if the folder doesn't exist.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 984

Signaturecp.apple.finalcutpro.workflowExtensionNames() -> table
TypeFunction
DescriptionGets the names of all the installed Workflow Extensions.
Parameters
  • None
Returns
  • A table of Workflow Extension names
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 645

#Constructors

Signaturecp.apple.finalcutpro.main.Color(app) -> Color
TypeConstructor
DescriptionCreates a new Color instance.
Parameters
  • app - The Final Cut Pro app instance.
Returns
  • The new Color.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/blackmagic/resolve/color/Tracker.lua line 34

Signaturecp.apple.finalcutpro.viewer.TranscodeMedia(viewer)
TypeConstructor
DescriptionCreates a new TranscodeMedia instance.
Parameters
  • parent - The parent object.
Returns
  • The new TranscodeMedia.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/TranscodeMedia.lua line 42

#Fields

Signaturecp.apple.finalcutpro.activeCommandSetPath <cp.prop: string>
TypeField
DescriptionGets the 'Active Command Set' value from the Final Cut Pro preferences
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1033

Signaturecp.apple.finalcutpro.alert <cp.ui.Alert>
TypeField
DescriptionProvides basic access to any 'alert' dialog windows in the app.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 907

Signaturecp.apple.finalcutpro.inspector.color.VideoInspector.audioEnhancements <cp.prop: PropertyRow>
TypeField
DescriptionAudio Enhancements
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/audio/AudioInspector.lua line 139

Signaturecp.apple.finalcutpro.timeline.audioLanes <cp.prop: boolean>
TypeField
DescriptionIndicates if audio lanes are currently showing. May be set to ensure it is showing or hidden.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 103

Signaturecp.apple.finalcutpro.viewer.audioMeters <cp.ui.Button>
TypeField
DescriptionAudio Meters button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 93

Signaturecp.apple.finalcutpro.backgroundTasksDialog <cp.apple.finalcutpro.main.BackgroundTasksDialog>
TypeField
DescriptionThe BackgroundTasksDialog dialog window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 790

Signaturecp.apple.finalcutpro.browser <cp.apple.finalcutpro.main.Browser>
TypeField
DescriptionThe Browser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 844

Signaturecp.apple.finalcutpro.viewer.changePosition <cp.ui.Button>
TypeField
DescriptionChange Position Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 236

Signaturecp.apple.finalcutpro.color <ColorInspector>
TypeField
DescriptionThe ColorInspector instance from the primary window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 900

Signaturecp.apple.finalcutpro.colorBoard <ColorBoard>
TypeField
DescriptionThe ColorBoard instance from the primary window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 893

Signaturecp.apple.finalcutpro.presfs.GeneralPanel.colorCorrection <cp.ui.PopUpButton>
TypeField
DescriptionThe "Color Correction" PopUpButton.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/prefs/GeneralPanel.lua line 116

Signaturecp.apple.finalcutpro.commandDescriptions <cp.strings>
TypeField
DescriptionThe table of all available command descriptions, with keys mapped to human-readable descriptions in the current locale.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1135

Signaturecp.apple.finalcutpro.commandEditor <CommandEditor>
TypeField
DescriptionThe Final Cut Pro Command Editor
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 755

Signaturecp.apple.finalcutpro.commandNames <cp.strings>
TypeField
DescriptionThe table of all available command names, with keys mapped to human-readable names in the current locale.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1114

Signaturecp.apple.finalcutpro.commandPostWorkflowExtension <CommandPostWindow>
TypeField
DescriptionThe CommandPost Workflow Extension window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 714

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.contentUI <cp.prop: hs.axuielement; read-only>
TypeField
DescriptionThe axuielement containing the properties rows, if available.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 438

Signaturecp.apple.finalcutpro.inspector.color.ShareInspector.contentUI <cp.prop: hs.axuielement; read-only>
TypeField
DescriptionThe axuielement containing the properties rows, if available.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/share/ShareInspector.lua line 105

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.deselectAll <cp.ui.Button>
TypeField
DescriptionThe left text layer arrow at the bottom of the Inspector.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 473

Signaturecp.apple.finalcutpro.effects <cp.apple.finalcutpro.main.EffectsBrowser>
TypeField
DescriptionThe EffectsBrowser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 872

Signaturecp.apple.finalcutpro.inspector.color.VideoInspector.effects <cp.prop: PropertyRow>
TypeField
DescriptionEffects
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/audio/AudioInspector.lua line 153

Signaturecp.apple.finalcutpro.eventViewer <cp.apple.finalcutpro.viewer.Viewer>
TypeField
DescriptionThe Event Viewer instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 837

Signaturecp.apple.finalcutpro.exportDialog <cp.apple.finalcutpro.main.ExportDialog>
TypeField
DescriptionThe Final Cut Pro Export Dialog Box
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 776

Signaturecp.apple.finalcutpro.findAndReplaceTitleText <cp.apple.finalcutpro.main.FindAndReplaceTitleText>
TypeField
DescriptionThe FindAndReplaceTitleText dialog window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 783

Signaturecp.apple.finalcutpro.fullScreenPlayer <FullScreenPlayer>
TypeField
DescriptionReturns the Final Cut Pro Full Screen Window (usually triggered by Cmd+Shift+F)
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 748

Signaturecp.apple.finalcutpro.generators <cp.apple.finalcutpro.main.GeneratorsBrowser>
TypeField
DescriptionThe GeneratorsBrowser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 865

Signaturecp.apple.finalcutpro.inspector <cp.apple.finalcutpro.inspector.Inspector>
TypeField
DescriptionThe Inspector instance from the primary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 886

Signaturecp.apple.finalcutpro.presfs.GeneralPanel.inspectorUnits <cp.ui.PopUpButton>
TypeField
DescriptionThe "Inspector Units" PopUpButton.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/prefs/GeneralPanel.lua line 125

Signaturecp.apple.finalcutpro.isAudioScrubbingEnabled <bool; live>
TypeField
DescriptionReturns true if the audio scrubbing is enabled for the application.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1163

Signaturecp.apple.finalcutpro:isFrontmost <cp.prop: boolean; read-only; live>
TypeField
DescriptionIs Final Cut Pro Frontmost?
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 288

Signaturecp.apple.finalcutpro.isInstalled <cp.prop: boolean; read-only>
TypeField
DescriptionIs any version of Final Cut Pro Installed?
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 281

Signaturecp.apple.finalcutpro:isModalDialogOpen <cp.prop: boolean; read-only>
TypeField
DescriptionIs a modal dialog currently open?
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 295

Signaturecp.apple.finalcutpro.main.ControlBar.isPlaying <cp.prop: boolean>
TypeField
DescriptionThe 'playing' status of the viewer. If true, it is playing, if not it is paused.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 254

Signaturecp.apple.finalcutpro.main.Viewer.isPlaying <cp.prop: boolean>
TypeField
DescriptionThe 'playing' status of the viewer. If true, it is playing, if not it is paused.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/Viewer.lua line 336

Signaturecp.apple.finalcutpro.isRunning <cp.prop: boolean; read-only>
TypeField
DescriptionIs Final Cut Pro Running?
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 263

Signaturecp.apple.finalcutpro.isShowing <cp.prop: boolean; read-only; live>
TypeField
DescriptionIs Final Cut visible on screen?
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 274

Signaturecp.apple.finalcutpro.isSkimmingEnabled <bool; live>
TypeField
DescriptionReturns true if the skimming playhead is enabled for the application.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1156

Signaturecp.apple.finalcutpro.isSupported <cp.prop: boolean; read-only; live>
TypeField
DescriptionIs a supported version of Final Cut Pro installed?
Notes
  • Supported version refers to any version of Final Cut Pro equal or higher to cp.apple.finalcutpro.EARLIEST_SUPPORTED_VERSION
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 302

Signaturecp.apple.finalcutpro.isUnsupported <cp.prop: boolean; read-only>
TypeField
DescriptionIs an unsupported version of Final Cut Pro installed?
Notes
  • Supported version refers to any version of Final Cut Pro equal or higher to cp.apple.finalcutpro.EARLIEST_SUPPORTED_VERSION
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 315

Signaturecp.apple.finalcutpro.keywordEditor <KeywordEditor>
TypeField
DescriptionThe Final Cut Pro Keyword Editor
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 762

Signaturecp.apple.finalcutpro.libraries <cp.apple.finalcutpro.main.LibrariesBrowser>
TypeField
DescriptionThe LibrariesBrowser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 851

Signaturecp.apple.finalcutpro.media <cp.apple.finalcutpro.main.MediaBrowser>
TypeField
DescriptionThe MediaBrowser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 858

Signaturecp.apple.finalcutpro.mediaImport <MediaImport>
TypeField
DescriptionThe Final Cut Pro Media Import Window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 769

Signaturecp.apple.finalcutpro.inspector.color.VideoInspector.pan <cp.prop: PropertyRow>
TypeField
DescriptionPan
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/audio/AudioInspector.lua line 146

Signaturecp.apple.finalcutpro.viewer.playButton <cp.ui.Button>
TypeField
DescriptionPlay Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 245

Signaturecp.apple.finalcutpro.viewer.playFullScreen <cp.ui.Button>
TypeField
DescriptionPlay Full Screen Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 84

Signaturecp.apple.finalcutpro.viewer.playImage <cp.ui.Image>
TypeField
DescriptionPlay Image.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 279

Signaturecp.apple.finalcutpro.preferencesWindow <PreferencesWindow>
TypeField
DescriptionThe Final Cut Pro Preferences Window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 727

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.preset <cp.ui.PopUpButton>
TypeField
DescriptionThe preset popup found at the top of the inspector.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 483

Signaturecp.apple.finalcutpro.primaryWindow <cp.apple.finalcutpro.main.PrimaryWindow>
TypeField
DescriptionThe Final Cut Pro Primary Window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 734

Signaturecp.apple.finalcutpro.presfs.GeneralPanel.resetDialogWarnings <cp.ui.Buton>
TypeField
DescriptionThe "Reset Dialog warnings" Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/prefs/GeneralPanel.lua line 98

Signaturecp.apple.finalcutpro.secondaryWindow <cp.apple.finalcutpro.main.SecondaryWindow>
TypeField
DescriptionThe Final Cut Pro Preferences Window
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 741

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.textArea <cp.ui.TextArea>
TypeField
DescriptionThe Text Inspector main Text Area.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 493

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.textLayerLeft <cp.ui.Button>
TypeField
DescriptionThe left text layer arrow at the bottom of the Inspector.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 451

Signaturecp.apple.finalcutpro.inspector.color.TextInspector.textLayerRight <cp.ui.Button>
TypeField
DescriptionThe left text layer arrow at the bottom of the Inspector.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/text/TextInspector.lua line 462

Signaturecp.apple.finalcutpro.viewer.timecodeField <cp.ui.StaticText>
TypeField
DescriptionTimecode Field
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/viewer/ControlBar.lua line 102

Signaturecp.apple.finalcutpro.presfs.GeneralPanel.timeDisplay <cp.ui.PopUpButton>
TypeField
DescriptionThe "Time Display" PopUpButton.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/prefs/GeneralPanel.lua line 89

Signaturecp.apple.finalcutpro.timeline <Timeline>
TypeField
DescriptionThe Timeline instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 823

Signaturecp.apple.finalcutpro.toolbar <cp.apple.finalcutpro.main.PrimaryToolbar>
TypeField
DescriptionThe Primary Toolbar - the toolbar at the top of the Primary Window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 816

Signaturecp.apple.finalcutpro.transcodeMedia <cp.apple.finalcutpro.main.TranscodeMedia>
TypeField
DescriptionThe TranscodeMedia sheet.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 803

Signaturecp.apple.finalcutpro.transitions <cp.apple.finalcutpro.main.EffectsBrowser>
TypeField
DescriptionThe Transitions EffectsBrowser instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 879

Signaturecp.apple.finalcutpro.UI <cp.prop: hs.axuielement; read-only; live>
TypeField
DescriptionThe Final Cut Pro axuielement, if available.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 270

Signaturecp.apple.finalcutpro.presfs.GeneralPanel.validateAudioUnits <cp.ui.Buton>
TypeField
DescriptionThe "Validate Audio Units" Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/prefs/GeneralPanel.lua line 107

Signaturecp.apple.finalcutpro.viewer <cp.apple.finalcutpro.viewer.Viewer>
TypeField
DescriptionThe Viewer instance, whether it is in the primary or secondary window.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 830

Signaturecp.apple.finalcutpro.inspector.color.VideoInspector.volume <cp.prop: PropertyRow>
TypeField
DescriptionVolume
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/inspector/audio/AudioInspector.lua line 132

#Methods

Signaturecp.apple.finalcutpro:activeLibraryPaths() -> table
TypeMethod
DescriptionGets a table of all the active library paths.
Parameters
  • None
Returns
  • A table containing any active library paths.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 400

Signaturecp.apple.finalcutpro:closeLibrary(title) -> boolean
TypeMethod
DescriptionAttempts to close a library with the specified title.
Parameters
  • title - The title of the FCP Library to close.
Returns
  • true if successful, or false if not.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 505

Signaturecp.apple.finalcutpro:defaultCommandSetPath([locale]) -> string
TypeMethod
DescriptionGets the path to the 'Default' Command Set.
Parameters
Returns
  • The 'Default' Command Set path, or nil if an error occurred
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1019

Signaturecp.apple.finalcutpro:doShortcut(whichShortcut[, suppressPrompt]) -> Statement
TypeMethod
DescriptionPerform a Final Cut Pro Keyboard Shortcut
Parameters
  • whichShortcut - As per the Command Set name
  • suppressPrompt - If true, and no shortcut is found for the specified command, then no prompt will be shown and an error is thrown Defaults to false.
Returns
  • A Statement that will perform the shortcut when executed.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1173

Signaturecp.apple.finalcutpro.getCommandShortcuts(id) -> table of hs.commands.shortcut
TypeMethod
DescriptionFinds a shortcut from the Active Command Set with the specified ID and returns a table of hs.commands.shortcuts for the specified command, or nil if it doesn't exist.
Parameters
  • id - The unique ID for the command.
Returns
  • The array of shortcuts, or nil if no command exists with the specified id.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 1088

Signaturecp.apple.finalcutpro:getPath() -> string or nil
TypeMethod
DescriptionPath to Final Cut Pro Application
Parameters
  • None
Returns
  • A string containing Final Cut Pro's filesystem path, or nil if Final Cut Pro's path could not be determined.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 357

Signaturecp.apple.finalcutpro:importXML(path) -> boolean
TypeMethod
DescriptionImports an XML file into Final Cut Pro
Parameters
  • path = Path to XML File
Returns
  • A boolean value indicating whether the AppleScript succeeded or not
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 920

Signaturecp.apple.finalcutpro:keysWithString(string[, locale]) -> {string}
TypeMethod
DescriptionLooks up an application string and returns an array of keys that match. It will take into account current locale the app is running in, or use locale if provided.
Parameters
  • key - The key to look up.
  • locale - The locale (defaults to current FCPX locale).
Returns
  • The array of keys with a matching string.
Notes
  • This method may be very inefficient, since it has to search through every possible key/value pair to find matches. It is not recommended that this is used in production.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 340

Signaturecp.apple.finalcutpro:openLibrary(path) -> boolean
TypeMethod
DescriptionAttempts to open a file at the specified absolute path.
Parameters
  • path - The path to the FCP Library to open.
Returns
  • true if successful, or false if not.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 467

Signaturecp.apple.finalcutpro:plugins() -> cp.apple.finalcutpro.plugins
TypeMethod
DescriptionReturns the plugins manager for the app.
Parameters
  • None
Returns
  • The plugins manager.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 552

Signaturecp.apple.finalcutpro:recentLibraryNames() -> table
TypeMethod
DescriptionGets a table of all the recent library names (that are accessible).
Parameters
  • None
Returns
  • A table containing any recent library names.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 446

Signaturecp.apple.finalcutpro:recentLibraryPaths() -> table
TypeMethod
DescriptionGets a table of all the recent library paths (that are accessible).
Parameters
  • None
Returns
  • A table containing any recent library paths.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 421

Signaturecp.apple.finalcutpro:scanPlugins() -> table
TypeMethod
DescriptionScan Final Cut Pro Plugins
Parameters
  • None
Returns
  • A MenuBar object
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 565

Signaturecp.apple.finalcutpro:selectLibrary(title) -> axuielement
TypeMethod
DescriptionAttempts to select an open library with the specified title.
Parameters
  • title - The title of the library to select.
Returns
  • The library row axuielement.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 492

Signaturecp.apple.finalcutpro:string(key[, locale[, quiet]]) -> string
TypeMethod
DescriptionLooks up an application string with the specified key. If no locale value is provided, the current locale is used.
Parameters
  • key - The key to look up.
  • locale - The locale code to use. Defaults to the current locale.
  • quiet - Optional boolean, defaults to false. If true, no warnings are logged for missing keys.
Returns
  • The requested string or nil if the application is not running.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 325

Signaturecp.apple.finalcutpro:userCommandSets() -> table
TypeMethod
DescriptionGets the names of all of the user command sets.
Parameters
  • None
Returns
  • A table of user command sets as strings.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/init.lua line 997