Namespace LrShell

This namespace provides access to some operating-system shell functions (Finder in Mac OS, Windows Explorer in Windows). All paths must be provided in platform-specific syntax.

Summary

LrShell.openFilesInApp( files, appPath )
Opens one or more files in another application.
Brings the Finder or Explorer to the foreground and highlights a file.

Functions

LrShell.openFilesInApp( files, appPath )
Opens one or more files in another application. For example:
 LrShell.openFilesInApp( { "/Users/example/myLightroomPlugin.lrplugin/Info.lua" }, "/Applications/TextEdit.app" ) 

First supported in version 1.3 of the Lightroom SDK.

Parameters

1. files
(array of strings) The paths to the files.
2. appPath
(string) The path to the external application.
LrShell.revealInShell( path )
Brings the Finder or Explorer to the foreground and highlights a file.

First supported in version 1.3 of the Lightroom SDK.

Parameters

1. path
(string) The path to the file.