Before using anything in this namespace, make sure to import LensStudio:Shell.
Example
// LensStudio:Shell provides utilities for interacting with the OS shell. constShell = awaitimport('LensStudio:Shell');
// openUrl(baseUrl, queryData) opens a URL in the default browser. // queryData is appended as query parameters. constopened = Shell.openUrl('https://docs.snap.com', {}); console.log('openUrl returned:', opened);
// showItemInFolder(path) reveals a file or folder in the system explorer. constexamplePath = newEditor.Path('/tmp'); Shell.showItemInFolder(examplePath); console.log('Revealed path in file explorer:', examplePath.toString());
Before using anything in this namespace, make sure to import
LensStudio:Shell.Example