Place Images With URL FIle PNG

Help me…!!!
I want to use the Place Embed function to Place an image from url (http://demo.com/images.png)
Please help me with batchPlay code
I thank you

1 Like

Photoshop can’t open files from a URL, you’ll need to download it to the disk first.
Essentially, these would be the steps:

  1. use fetch to download the image
  2. create a session token
  3. run a batchPlay command for the place event (you can record it with Alchemist)
1 Like

on extenScript i was able to do it, but when i go to uxp i don’t know how to do it, the language is very new to me
Do you have sample code?

  1. use fetch to download the image
  2. create a session token

Do you need it though, if downloading to - lets say - plugin data folder?

i just download temp folder and place

Are we saying that UXP can’t open files from a URL, because Photoshop definitely can? Would that mean I could use Alchemist and batchplay a file being opened via a URL?