AnsweredAssumed Answered

Web Viewer Not Displaying from TempPath

Question asked by rouelf on May 1, 2017
Latest reply on May 1, 2017 by rouelf

Am stump, until a few weeks ago this script used to work in OS X. Today is not working. But still works in FM Go. Checked other FM files that use this technique, and they also don’t work in OS X.

Using FMA 15.0.3.305, obviously something has changed. How can I get it to work ??

 

The Web Address looks like this:  file://Macintosh HD/var/folders/k5/n2kb9v_s7md4x_t4skct8fjc0000gn/T/S10/Pink Minnie Mouse.jpg

 

Message: The requested URL was not found on this server.

 

 

If [ OpenDirectory::File WebView = "View Import" ]

     Set Variable [ $$fileURL; Value:"file:" & Get ( TemporaryPath ) & GetContainerAttribute ( OpenDirectory::Import Container ; "filename" ) ]

     Export Field Contents [ OpenDirectory::Import Container; “$$fileURL” ]

     Set Variable [ $$fileURL; Value:Substitute ( $$fileURL ; "file:" ; "file:/" ) ]

     Set Field [ OpenDirectory::WebViewer; $$fileURL ]
     Set Web Viewer [ Object Name: "FileView"; Action: Reset ]

Else If [ OpenDirectory::File WebView = "View Export" ]
     Set Variable [ $$fileURL; Value:"file:" & Get ( TemporaryPath ) & GetContainerAttribute ( OpenDirectory::Export Container ; "filename" ) ]

     Export Field Contents [ OpenDirectory::Export Container; “$$fileURL” ]

     Set Variable [ $$fileURL; Value:Substitute ( $$fileURL ; "file:" ; "file:/" ) ]

     Set Field [ OpenDirectory::WebViewer; $$fileURL ]
     Set Web Viewer [ Object Name: "FileView"; Action: Reset ]

End If

 

Outcomes