# How can I execute excel file just created

**URL:** <https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330>\
**Category:** UXP Plugin API\
**Created:** [July 20, 2021, 8:36am UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330 "2021-07-20T08:36:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saint\_Jung](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Saint\_Jung](https://forums.creativeclouddeveloper.com/u/Saint_Jung)\
**Post date:** [July 20, 2021, 8:36am UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330/1 "2021-07-20T08:36:56Z")

</div>

Hi, I always thank you for all your advice.

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?

thank you in advance.

---

<div class="post-metadata">

**Author:** ![Jens\_z](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Jens\_z](https://forums.creativeclouddeveloper.com/u/Jens_z)\
**Post date:** [July 20, 2021, 3:21pm UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330/2 "2021-07-20T15:21:56Z")

</div>

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:

```auto
require('uxp').storage.localFileSystem.getDataFolder();

```

Under Windows the folder content will be stored somewhere here:  
`C:\Users\<username>\AppData\Roaming\Adobe\UXP\PluginsStorage\PHSP\22\Developer\<PluginName>\PluginData`

Best Regards  
Jens

---

<div class="post-metadata">

**Author:** ![Saint\_Jung](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Saint\_Jung](https://forums.creativeclouddeveloper.com/u/Saint_Jung)\
**Post date:** [July 21, 2021, 12:28am UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330/3 "2021-07-21T00:28:13Z")

</div>

Actually, the excel file should be saved in the user’s document folder.  
Thank you for reply!

---

<div class="post-metadata">

**Author:** ![jjdenhertog](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jjdenhertog/32/1131_2.png) [@jjdenhertog](https://forums.creativeclouddeveloper.com/u/jjdenhertog)\
**Post date:** [July 24, 2021, 7:20am UTC](https://forums.creativeclouddeveloper.com/t/how-can-i-execute-excel-file-just-created/3330/4 "2021-07-24T07:20:58Z")

</div>

If you want to write outside of the plugin storage you have two options.

1. 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](https://adobexdplatform.com/plugin-docs/reference/uxp/module/storage.html#module-storage-filesystemprovider-getfolder)

2. Build an app next to your photoshop plugin where you communicate with. So for example you would build a node.js app that would run locally. Than using an XMLHTTPRequest or Websock to communicate with that app to do the writing outside of the security context.  
[https://www.adobe.io/photoshop/uxp/uxp/reference-js/Global%20Members/Data%20Transfers/XMLHttpRequest/](https://www.adobe.io/photoshop/uxp/uxp/reference-js/Global%20Members/Data%20Transfers/XMLHttpRequest/)
