It’s been multiple times now, that you ask not simply for help, but directly for someone to convert your jsx scripts to psjs, and without showing any effort made by yourself. Did you at least try to convert it? If so, could you share what you did to get it working? What failed?
Sorry, but currently I see your posts as a search for a free labour…
Sorry to make you feel this way, I understand your point of view. I did try to convert it, but encountered some technical issues, perhaps due to my limited understanding and experience. To resolve the problem more effectively, I will do more research and make further attempts, and I will share my progress. If there are any developments, I will share the efforts I have made. Thank you for your patience and understanding, and I apologize again for the inconvenience caused.
you have to try a little harder
I am also a beginner and I try to ask for help only when I can’t find a solution in any way.
Anyway you can use alchemist which is designed specifically to help with uxp programming,
Jarda did a great job.
anyway let’s get to your request
with uxp you need tokens to do what you ask
and the path desktop/1.jpg is not good
in uxp you need the complete path
I use mac the path is the following
/Users/your_name/Desktop/1.jpg
this is the psjs script you can use for your project
Thank you very much for providing the correct code. I really appreciate your help. Before this, I also tried converting it into a psjs code using actions, but it didn’t work properly. Thank you again!