#cp.apple.motion

Represents the Motion application, providing functions that allow different tasks to be accomplished.


#Submodules


#API Overview

Constants - Useful values which cannot be changed

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


#API Documentation

#Constants

Signaturecp.apple.motion.BUNDLE_ID
TypeConstant
DescriptionCompressor's Bundle ID
NotesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 14

#Methods

Signaturecp.apple.motion:bundleID() -> string
TypeMethod
DescriptionReturns the Compressor Bundle ID
Parameters
  • None
Returns
  • A string of the Compressor Bundle ID
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 96

Signaturecp.apple.motion:doRestart() -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will restart the application.
Parameters
  • None
Returns
  • true if the application was running and restarted successfully.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 141

Signaturecp.apple.motion:hide() -> self
TypeMethod
DescriptionHides Compressor
Parameters
  • None
Returns
  • The motion instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 172

Signaturecp.apple.motion:launch([waitSeconds]) -> self
TypeMethod
DescriptionLaunches Compressor, or brings it to the front if it was already running.
Parameters
  • waitSeconds - if provided, we will wait for up to the specified seconds for the launch to complete.
Returns
  • true if Compressor was either launched or focused, otherwise false (e.g. if Compressor doesn't exist)
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 122

Signaturecp.apple.motion:notifier() -> cp.ui.notifier
TypeMethod
DescriptionReturns a notifier that is tracking the application UI element. It has already been started.
Parameters
  • None
Returns
  • The notifier.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 109

Signaturecp.apple.motion:path() -> string or nil
TypeMethod
DescriptionPath to Compressor Application
Parameters
  • None
Returns
  • A string containing Compressor's filesystem path, or nil if the bundle identifier could not be located
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 208

Signaturecp.apple.motion:quit([waitSeconds]) -> self
TypeMethod
DescriptionQuits Compressor
Parameters
  • waitSeconds - if provided, we will wait for the specified time for the quit to complete before returning.
Returns
  • The motion instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 190

Signaturecp.apple.motion:show() -> self
TypeMethod
DescriptionActivate Compressor
Parameters
  • None
Returns
  • The motion instance.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/motion/init.lua line 154