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?
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.
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):
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).