# Export Design Contents(\*.json format) and Open My Application

**URL:** <https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960>\
**Category:** UXP Plugin API\
**Created:** [August 16, 2020, 1:34pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960 "2020-08-16T13:34:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![justsimple](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@justsimple](https://forums.creativeclouddeveloper.com/u/justsimple)\
**Post date:** [August 16, 2020, 1:34pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/1 "2020-08-16T13:34:33Z")

</div>

Hello, I want to export the contents from my AdobeXd design file(\*.json file) to my own application by using Plugin API, but there are some questions I can’t find answers to.

1- Is there any way to access all \*.json contents of an artboard.(My designs are in cloud). I searched and there is a way about this just use **instance of Rectangle** methods, but I think it is a waste of time.  
2- How can I open my application from the plugin? and how can I open the exact page of my application?  
3- Is there any easier way to export an artboard like this?

---

<div class="post-metadata">

**Author:** ![justsimple](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@justsimple](https://forums.creativeclouddeveloper.com/u/justsimple)\
**Post date:** [August 21, 2020, 11:48am UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/2 "2020-08-21T11:48:53Z")

</div>

Is there anyone who may help me?

---

<div class="post-metadata">

**Author:** ![TroyMc](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/troymc/32/882_2.png) [@TroyMc](https://forums.creativeclouddeveloper.com/u/TroyMc)\
**Post date:** [August 21, 2020, 8:16pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/3 "2020-08-21T20:16:52Z")

</div>

There are existing Adobe XD plugins to export a design from Adobe XD to some other format. For example:

1. [Anima for Adobe XD](https://docs.animaapp.com/v3/adobe-xd/getting-started/) - Export an Adobe XD design to a website (i.e. to HTML and CSS files).
2. [XD to Flutter](https://github.com/AdobeXD/xd-to-flutter-plugin) - Export an Adobe XD design to Flutter (i.e. Dart) code, i.e. to create a mobile app using Flutter.

Since those exist, it should be possible to do what you want.

The Adobe XD plugin APIs are documented at [https://adobexdplatform.com/plugin-docs/](https://adobexdplatform.com/plugin-docs/)

---

<div class="post-metadata">

**Author:** ![justsimple](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@justsimple](https://forums.creativeclouddeveloper.com/u/justsimple)\
**Post date:** [August 26, 2020, 7:29am UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/4 "2020-08-26T07:29:38Z")

</div>

Thanks @TroyMc, what about open my application from the plugin? how can i do that?

---

<div class="post-metadata">

**Author:** ![TroyMc](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/troymc/32/882_2.png) [@TroyMc](https://forums.creativeclouddeveloper.com/u/TroyMc)\
**Post date:** [August 26, 2020, 2:00pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/5 "2020-08-26T14:00:38Z")

</div>

> [@justsimple](#):
>
> what about open my application from the plugin? how can i do that?

I don’t know. I’ve never tried to do that. An Adobe XD plugin _can_ open a URL in the user’s system web browser, using code like:

```javascript
const shell = require("uxp");
shell.openExternal(url);

```

Maybe if you register a custom protocol for your application with the user’s operating system, then the operating system will open your application when it sees that custom protocol in the URL. For example, maybe your application’s custom protocol is “macp:” (for My Application’s Custom Protocol) instead of “http:”, “ftp:” or “mailto:”. You would have to try it and see what happens.

---

<div class="post-metadata">

**Author:** ![cpryland](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cpryland/32/1172_2.png) [@cpryland](https://forums.creativeclouddeveloper.com/u/cpryland)\
**Post date:** [August 26, 2020, 4:13pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/6 "2020-08-26T16:13:39Z")

</div>

`openExternal` won’t open anything except a real URL.

Adobe’s said they’re planning to offer some kind of companion-application opening, but it’s still theoretical as far as I can tell.

---

<div class="post-metadata">

**Author:** ![justsimple](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@justsimple](https://forums.creativeclouddeveloper.com/u/justsimple)\
**Post date:** [August 27, 2020, 1:41pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/7 "2020-08-27T13:41:43Z")

</div>

Axure plugin can open their apps from plugin without anything. @cpryland I wonder how they can manage it. Also, Thanks for response 🙂

---

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [August 27, 2020, 2:53pm UTC](https://forums.creativeclouddeveloper.com/t/export-design-contents-json-format-and-open-my-application/1960/8 "2020-08-27T14:53:02Z")

</div>

I’ve just tested the mentioned Axure plugin. When the app isn’t open, it tells you to open the app (and, as expected, isn’t able to open it by itself):

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/1X/cb3f5fec9c0fe34b8510714b69ec1da797e151b4.png)

Speculation (I don’t own Axure, meaning I can’t test this hypothesis):  
Now, something that they might be doing would be to let the app (that’s already open, but in the background) bring itself to the front when it receives the data (looking at the source code, it looks like the plugin does some communication via a web socket). That, however, is something the app does by itself (and not the plugin).
