File Mac.lua
Functions
Mac:getShellName () | Return OS shell name (e.g. |
Mac:makeFileLink (linkPath, filePath) | mac implementation of operating-system--make-folder-link. |
Mac:makeFolderLink (linkPath, folderPath) | mac implementation of operating-system--make-folder-link. |
Mac:new (t) | Constructor for new instance. |
Mac:newClass (t) | Constructor for extending class. |
Mac:openFileInDefaultApp (file) | Open file in default app. |
Mac:sendModifiedKeys (modKeys) | Send mac-modified keystroke sequence to mac os / lightroom. |
Mac:sendUnmodifiedKeys (keyStr, keyDowns, keyUps) | Send key string verbatim to Lightroom. |
Functions
- Mac:getShellName ()
- Return OS shell name (e.g. Explorer or Finder)
- Mac:makeFileLink (linkPath, filePath)
-
mac implementation of operating-system--make-folder-link. ###1 test on Mac
Parameters:
-
linkPath
: -
filePath
:
-
- Mac:makeFolderLink (linkPath, folderPath)
-
mac implementation of operating-system--make-folder-link.
Parameters:
-
linkPath
: -
folderPath
:
-
- Mac:new (t)
-
Constructor for new instance.
Parameters:
-
t
:
-
- Mac:newClass (t)
-
Constructor for extending class.
Parameters:
-
t
:
-
- Mac:openFileInDefaultApp (file)
-
Open file in default app.
Parameters:
-
file
: path
-
- Mac:sendModifiedKeys (modKeys)
-
Send mac-modified keystroke sequence to mac os / lightroom.
Format examples:
Ctrl-S
Cmd-FS
ShiftCtrl-SParameters:
-
modKeys
: Mash the modifiers together (in any order), follow with a dash, then mash the keystrokes together (order matters).
-
- Mac:sendUnmodifiedKeys (keyStr, keyDowns, keyUps)
-
Send key string verbatim to Lightroom.
Uses applescript string passed to osascript.
Parameters:
-
keyStr
: -
keyDowns
: -
keyUps
:
-