i'm real new to any scripting so please be gentle.
I'd like to write a script based on the AddFileNamePlusDate.js for photoshop.
For anyone who doesn't know this script gets the file name and adds a text layer of a photoshop document and places the file name text into a text object on the new layer followed by the date.
What i'd like to achieve is to include one of the parent directories of the file in the text that is passed into the text item - but as i am new to java i don't know how to go about doing this.
Hope that makes sense.
any help is much appreciated.