2 Replies Latest reply on Oct 17, 2013 12:27 PM by BillisSaved

    Using Windows relative file path?

    BillisSaved

      Hey all,

       

      Thanks in advance for any assistance and/or advice you are willing to provide! I'm attempting to implement the attachment portion of the Send Mail script. It needs to work for Windows and Mac machines. Setting up a relative file path for the Macs was simple, but I can't get the relative path to work for Windows users. Here is an example of the path format I used:

       

      filewin:/c:/Users/%username%/Desktop/Filename.pdf

       

      Filemaker changes the path to this:

       

      filewin:/c:/Users/%25username%25/Desktop/Filename.pdf

       

      If I substitute the %username% variable with the actual username the script works as expected, which seems to indicate the variable I'm trying to use is incorrect. I also tried setting the file path as a variable and inserting it to the file path dialog box, but that didn't work either. Any help you can offer would be greatly appeciated! Thanks and have a great day!

       

      God bless,

       

       

      Bill