2 Replies Latest reply on Jan 3, 2012 6:27 AM by VenturaDon

    Open URL and correct variables syntax for opening a pdf file

    VenturaDon

      Title

      Open URL and correct variables syntax for opening a pdf file

      Post

      I've struggled with a seemingly simple script to open a pdf file.

      The field has parcel numbers such as: 223-0-052-075

      I need to open the tract map called 223-05.pdf

      The URL should be "file:///Drive:/FM11.fm7/Book223/223-05.pdf" (works fine as a static URL)

      I've got two variables:

           Set variable [$Book; Value:Left ( File::Field ; 3 )]

           Set variable [$Page; Value:Middle (File::Field ; 7 ; 2 )]

      The 2 variables correctly generate 223 and 05.

      My failed URL syntax is: Open URL [No dialog; "file:///Drive:/FM11.fm7/Book($Book)/($Book)-($Page).pdf"

      Thanks and Happy New Year to all!