Have been using the script below, it works in FMA 16, but not in FMA 17. Fails with the Insert from URL step, giving Error 1630, URL format is incorrect.
Likely FMA17 handles the Insert from URL differently, have not been able to figure it out, how to correct this ??
Set Field [ Glbs::g_Text; "" ]
Set Variable [ $newFile; Value:"File.txt" ]
Set Variable [ $Path; Value:Get ( TemporaryPath ) & $newFile ]
# write the file back with a .txt extension so that FMP can import it.
Export Field Contents [ Glbs::g_Import_File; “filewin:$Path” OR “filemac:$Path”; Create directories:No ]
If [ Get ( Device ) = 2 ]
# Use this for Windows
Insert from URL [ Glbs::g_Text; "file://" & $Path ] [ No dialog ]
# Use this for OSX and iOS
Insert from URL [ Glbs::g_Text; "file:/" & $Path ] [ No dialog ]