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.