Workaround for missing API methods (get all layercomps)

You could use getTemporaryFolder(), which IIRC doesn’t require user interaction. Same as getPluginFolder() and getDataFolder()

But beware, that running scripts from UXP might stop working on any time, even through actions (I think)