• Editor
  • Can't figure out how to export photoshop files! Many Errors

Hey there, I've been trying to export a photoshop file with no avail. I downloaded the Photoshop To Spine script from here: https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop, and I made sure it saved as a script and not the webpage.

I first tried it with CS6, I kept getting "error 22". I checked out these forums as well as Adobe forums for answers and for some reason this seemed to be a common problem for CS5, not CS6. I still tried the suggested methods of fixing it (running as administrator, clearing preferences) but I kept getting error 22.

I decided maybe it was because I don't have the most recent version of photoshop, so I downloaded the trial version of CC 2018. I re-downloaded the script and moved it to the script folder and now I get "error 23". This new one I can't seem to find ANY info on. It looks like it might be a login issue with adobe?

I tried again to restart my computer and try it again with a fresh photoshop to spine download. When I tried to change the download location to the photoshop scripts folder, the download failed- citing only "insufficient permissions".

I am at my wit's end and I'm ready to just give up.

Related Discussions
...

Hello! It looks like you saved the webpage containing the script instead of the script!
Make sure the extension of the file is .jsx when saving the script.
spine-scripts/photoshop at master · EsotericSoftware/spine-scripts

If you're having troubles saving the script from github, you could clone to desktop the whole scripts folder, then extract and place the script in the correct folder. Or you could open the script page, select the contents, paste in a text editor, then change the extension to .jsx.

Erikari escribió

Hello! It looks like you saved the webpage containing the script instead of the script!
Make sure the extension of the file is .jsx when saving the script.
https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop

If you're having troubles saving the script from github, you could clone to desktop the whole scripts folder, then extract and place the script in the correct folder. Or you could open the script page, select the contents, paste in a text editor, then change the extension to .jsx.

I triple-checked to make sure it saved as a .jsx file. Just to make sure, I did a fresh download a minute ago and made sure it was a .jsx file, still got the same message:

Maybe the location is wrong? I put it in C:\Program Files\Adobe\Adobe Photoshop CC 2018\Presets\Scripts but maybe there's another place it should go?

Your error message shows HTML, so I am sure you have downloaded the file incorrectly. Renaming is not enough, you need to right click -> Save As, described here:
spine-scripts/photoshop at master · EsotericSoftware/spine-scripts
You can open the file with any text editor (eg, notepad) and it should have this contents (JavaScript code, not HTML):
https://raw.githubusercontent.com/EsotericSoftware/spine-scripts/master/photoshop/PhotoshopToSpine.jsx
A lot of people run into this gotcha, don't feel bad! 🙂

10 días más tarde

Maybe you guys could rar or zip it, this will solve the problem that many people have with downloading this jsx, when I try to right click and save as, I get the html page, both on chrome and edge.. I had to click the link, it opened the script in the browser, then I copied it all and pasted it in a new text file, then saved it as .jsx