Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: How to open an image in the same folder as a script (relative path)

$
0
0

Thanks for your response. I've just started with Javascript scripting in Photoshop so I'm still just a bit confused though .

 

The code you've provided will return the location on my computer of where the script resides, am I right? And since the script and the images are in the same folder, this should mean a relative address is obtainable?

 

How could I use this in connection with:

 

var fileRef = new File("image01.jpg");

var docRef = app.open(fileRef);


where image01,jpg is the image I'd like to open in the same folder as the script?


Thanks again for your help.


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>