Copy link to clipboard
Copied
Hi. Just a quickie...
I am putting together a script that opens a txt file in a folder in relation to the script using:
var myFile = File(app.activeScript.parent + "/textFolder/roys text file.txt");
Copy link to clipboard
Copied
Yes it is. See http://forums.adobe.com/message/2327073#2327073 for a workaround function.
Jeff
Copy link to clipboard
Copied
Sorry to be dense, but I didn't see where in that thread you linked to this issue was addressed. Can you give some more details?
*edit* oh, I see, you linked to a specific post in that long thread, my browser didn't land on that the first time for some reason:
I use Dave Saunders function to get path to current script file folder (allows debugging)
Copy link to clipboard
Copied
I encounter this issue a lot and it's very frustrating, but I find Dave Saunder's approach to be brilliant. Will start using it from now on.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now