"/Users/jgill/Documents/Web/CHOG/CHOG1and1/Archive Photos/Juvenile-Shag.jpg" --> path to image I want to import using 'choose file' "/Users/jgill/Documents/Web/CHOG/CHOG1and1/Commoner Species Photos/Shag.htm" --> path to html file using 'set thepath to file of thefile'
I have set up a loop to find the difference between these two paths and it produces "../Archive Photos/Juvenile-Shag.jpg" after a bit of massaging. That is what I want. I just wondered if there is a more elegant way for doing it? 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.
