function openDocument(){
var fileRef = new File(“~/Downloads/myFile.jpg”);
var docRef = app.open(fileRef);
}
this is the extension script to drop an image from CEP with specified path,
but i need to achieve the drop functionality with url.
eg:(https://www.google.com/imgres?q=google%20images&imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F2%2F2f%2FGoogle_2015_logo.svg%2F800px-Google_2015_logo.svg.png&imgrefurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FGoogle_logo&docid=YYcJ4Dx_qJL9iM&tbnid=hcKs2PpO8qkg_M&vet=12ahUKEwiU_dun_ZOGAxU4mVYBHaq2DN8QM3oECBgQAA..i&w=800&h=271&hcb=2&ved=2ahUKEwiU_dun_ZOGAxU4mVYBHaq2DN8QM3oECBgQAA)
Can anyone please help me out.
Thanks.