# Can we use one UXP plugin for both InDesign and Photoshop?

**URL:** <https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182>\
**Category:** InDesign\
**Tags:** uxp, javascript\
**Created:** [November 28, 2023, 8:57am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182 "2023-11-28T08:57:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niraj](https://avatars.discourse-cdn.com/v4/letter/n/7ba0ec/32.png) [@Niraj](https://forums.creativeclouddeveloper.com/u/Niraj)\
**Post date:** [November 28, 2023, 8:57am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/1 "2023-11-28T08:57:05Z")

</div>

Hi all,  
I am developing a UXP plugin for InDesign app and I want to use same plugin for Photoshop as well. Can we do this if yes then how?

---

<div class="post-metadata">

**Author:** ![medium\_jon](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/medium_jon/32/2371_2.png) [@medium\_jon](https://forums.creativeclouddeveloper.com/u/medium_jon)\
**Post date:** [November 28, 2023, 1:19pm UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/2 "2023-11-28T13:19:06Z")

</div>

Easily? No, stuff can’t be shared because:

1. Each UXP plug-in needs it’s own manifest file with details on the plug-in’s id and application requirement.
2. Manifest files must be named `manifest.json`
3. The plug-in can’t contain anything from folders outside the folder that holds the `manifest.json` file. Internal folders are fine, just not exterior folders.

The best, that I’m aware of, would be to develop the equivalent of a library of code and then use WebPack (or equivalents) to copy the shared code to each plug-in’s root folder holding the manifest file.

jsw

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [November 30, 2023, 3:50pm UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/3 "2023-11-30T15:50:41Z")

</div>

Well the manifest schema definitions says that `host` property can also be an array and each host item can have its own `entrypoints`. But in reality this is not yet implemented or supported in any host app known to me. Maybe in future version of manifest or UXP.

What you can do is to make single code base… add condition if/else based on host app. And then setup webpack to place different manifest file into bundle.

---

<div class="post-metadata">

**Author:** ![j\_macc](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/j_macc/32/4020_2.png) [@j\_macc](https://forums.creativeclouddeveloper.com/u/j_macc)\
**Post date:** [November 6, 2024, 1:41pm UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/4 "2024-11-06T13:41:49Z")

</div>

In 2024 is this still the case? I’ve noticed the same—that the `host` property can be an array—but it seems that I can only have one host installed at a time in the Creative Cloud-app. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sttk3](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sttk3](https://forums.creativeclouddeveloper.com/u/sttk3)\
**Post date:** [November 7, 2024, 2:01am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/5 "2024-11-07T02:01:16Z")

</div>

The plugin created with the template [@swc-uxp-wrappers/create-swc-uxp-react-app](https://www.npmjs.com/package/@swc-uxp-wrappers/create-swc-uxp-react-app) has an array of `host` and Photoshop and InDesign are specified.

Then, when I try it with 2025 for Photoshop and InDesign respectively, the plugin actually loads and the panel appears. It seems to work with both, at least if using UXP8 and loading with Adobe UXP Developer Tools.

Not sure about installing with CCX files or publishing on Marketplace as I haven’t tried that.

---

<div class="post-metadata">

**Author:** ![j\_macc](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/j_macc/32/4020_2.png) [@j\_macc](https://forums.creativeclouddeveloper.com/u/j_macc)\
**Post date:** [November 7, 2024, 8:27am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/6 "2024-11-07T08:27:57Z")

</div>

Thanks for your response!

Yes, I can use the same codebase and `manifest.json` with `hosts` as an array during development. However, when exporting, it seems there’s no option to create a “unified” plugin. Instead, the plugin appears as two separate entries, and you can run “Package” for each, resulting in two `.ccx` files. However, unless the plugin IDs are different, you can’t have the exported plugins installed in both Photoshop and InDesign simultaneously. It seems the IDs need to be unique for each host.

 ![CleanShot 2024-11-07 at 09.24.38@2x](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/6/6bc3e24431e83e831f513e1fefe825282a9d2786.png)

---

<div class="post-metadata">

**Author:** ![sttk3](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sttk3](https://forums.creativeclouddeveloper.com/u/sttk3)\
**Post date:** [November 7, 2024, 10:30am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/7 "2024-11-07T10:30:56Z")

</div>

I understand now. It would certainly be nice to merge them into one, but unclear how to do it.

---

<div class="post-metadata">

**Author:** ![j\_macc](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/j_macc/32/4020_2.png) [@j\_macc](https://forums.creativeclouddeveloper.com/u/j_macc)\
**Post date:** [November 8, 2024, 7:42am UTC](https://forums.creativeclouddeveloper.com/t/can-we-use-one-uxp-plugin-for-both-indesign-and-photoshop/7182/8 "2024-11-08T07:42:22Z")

</div>

I went ahead and published the plugins yesterday, and it seems you have to choose a specific app when creating a new listing. From what I understand, a unified UXP plugin doesn’t seem to be possible on the marketplace at the moment.
