Thanks, Christopher. 

This script, which I don't understand as I don't know Python or shell 
scripts, gives '../../Commoner Species Photos/Shag.htm', which has an extra 
../ at the beginning. 

I could chop of the first three characters but I don't understand why they 
are there in the first place.







On Friday, December 9, 2016 at 1:11:06 PM UTC, jgill wrote:
>
> I am trying to automate the process of importing an image and adding a 
> caption, which will be parsed out of the file name. I can manage that bit, 
> where I am stuck is with using 'choose file' to produce the *relative* file 
> path to the page I am working on. I could laboriously split and subtract 
> elements of the POSIX file path to the .jpg file but there must be a more 
> elegant way?
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to