I think you put the $finalPath reference in the Path window into quotes (that's why you see it in wrapped in two pairs of quotes in the script code), which you must not do, since it is a reference, rather than a string.
Thank you, I would have never seen that. Works great now.
Something still not right. I have my manuals in a portal, and when I hit the open button, It is only opening one of the manuals, no matter which open button I click. It only opens manual 2, Any ideas?
What relationship is your portal based on? Your script indicates it the Manuals relationship. If it is difference you need to change the fields in your script to match the correct relationship.
Thank you, I am having brain fart after brain fart this morning. I think I need to step back and go do something else for a while. Work great now thank you.
I had a recent issue where I was trying to append the date to the filepath. And, as expected (now), I got a similar error since FileMaker couldn't create a file with the "/" between the date parts.
Fortunately, the solution was simple. I just used the SUBSTITUTE command to change "/" for another character that wouldn't be misinterpreted as a file path.
So, Substitute(Get(CurrentDate); "/" ; "-")
was all I needed to change when I broke up the "file:" string to append the date to the filename.