Hi Joe, '../' means 'step into the parent directory'.
It doesn’t care what that parent directory is called. It is necessary when the the file you are pointing to is not located in the same or sibling directory of your HTML file. In this case 'Archive Photos/' is a child of a directory two levels up from the HTML file in the directory structure, which is why the '../' is repeated '../../'. Hope that clarifies. Cheers Ollie On 10 December 2016 at 19:28, jgill <[email protected]> wrote: > 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. > -- 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.
