The thing is, In my project, I’m creating excel file by SheetJS and fileEntry.write() function.
And I have to execute excel file right after being created just like native sheetJS does.
but due to the security problem, it seems not easy(or impossible…).
Is there any way that I can do this?
Hi,
you could try to create your *.xlsx in the “Plugin Data Folder” of your plugin.
This folder does not require a token or open dialog for read/write access.
You can get this folder via:
Under Windows the folder content will be stored somewhere here: C:\Users\<username>\AppData\Roaming\Adobe\UXP\PluginsStorage\PHSP\22\Developer\<PluginName>\PluginData
If you want to write outside of the plugin storage you have two options.
First show a dialog where the user can then select the location to write the file to. This gives you some rights outside of the plugin storage. Storage module · Adobe XD Plugin Reference