Preparing search index...

    Module LensStudio:Shell

    Before using anything in this namespace, make sure to import LensStudio:Shell.

        // LensStudio:Shell provides utilities for interacting with the OS shell.
    const Shell = await import('LensStudio:Shell');

    // openUrl(baseUrl, queryData) opens a URL in the default browser.
    // queryData is appended as query parameters.
    const opened = Shell.openUrl('https://docs.snap.com', {});
    console.log('openUrl returned:', opened);

    // showItemInFolder(path) reveals a file or folder in the system explorer.
    const examplePath = new Editor.Path('/tmp');
    Shell.showItemInFolder(examplePath);
    console.log('Revealed path in file explorer:', examplePath.toString());

    Functions

    openUrl
    showItemInFolder