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

Latest commit

 

History

History
78 lines (65 loc) · 6.32 KB

cp.apple.commandeditor.md

File metadata and controls

78 lines (65 loc) · 6.32 KB

docs » cp.apple.commandeditor


Functions to control and manage Apple's Command Editor - used in Final Cut Pro, Motion and Compressor.

API Overview

API Documentation

Variables

Signature cp.apple.commandeditor.padKeys -> table
Type Variable
Description Table of Pad Keys

Functions

Signature cp.apple.commandeditor.characterStringToKeyCode() -> string
Type Function
Description Translate Keyboard Character Strings from Command Set Format into Hammerspoon Format.
Parameters
  • input - Character String
Returns
  • Keycode as String or ""
Signature cp.apple.commandeditor.keypadCharacterToKeyCode() -> string
Type Function
Description Translate Keyboard Keypad Character Strings from Command Set Format into Hammerspoon Format.
Parameters
  • input - Character String
Returns
  • string or nil
Signature cp.apple.commandeditor.modifierMaskToModifiers() -> table
Type Function
Description Translate Keyboard Modifiers from Apple's Property List Format into Hammerspoon Format.
Parameters
  • value - Modifiers String
Returns
  • A table of modifier strings.
Signature cp.apple.commandeditor.modifierMatch(inputA, inputB) -> boolean
Type Function
Description Compares two modifier tables.
Parameters
  • inputA - table of modifiers
  • inputB - table of modifiers
Returns
  • true if there's a match otherwise false
Notes
  • This function only takes into account 'ctrl', 'alt', 'cmd', 'shift'.
Signature cp.apple.commandeditor.shortcutsFromCommandSet(id, commandSet) -> table
Type Function
Description Gets a specific command from a specified Command Set and returns a table of Shortcuts.
Parameters
  • id - The ID of the command you want to get.
  • commandSet - A table containing an entire Command Set.
Returns
  • A table of shortcuts for a specific command.
Signature cp.apple.commandeditor.translateModifiers() -> table
Type Function
Description Translate Keyboard Modifiers from Command Set Format into Hammerspoon Format.
Parameters
  • input - Modifiers String
Returns
  • table