Saturday, January 1, 2022

Photoshop extension update

Now that we have our Photoshop extension with all the fancy tools sometimes we need an update. We can streamline the process from a user standpoint but also from a developer standpoint. Adding in buttons and script referrals in html and js can be quite tricky and error prone.

I already created a batch file to create a new ZXP file, but I also wanted something that would just let me select a new script and then add that as a button and reinstall the updated extension. I did this by updating the extension with an extra button to add a new script. This would then edit the HTML file,  the main.js file and proceed to run a bat file that uninstalls and reinstalls the extension. The user is then prompted to restart Photoshop to see the changes.



We don't use this very often, but it was mainly a personal challenge to get it working. I can imagine we use this for the user to reinstall a new extension version or maybe even let users create a separate tab with their own tools.

No comments:

Post a Comment