October 11, 20205 yr My script in a hosted file needs to export records as pdf into the user Downloads folder, needs to run under Mac and Windows, so I set the variable $path_filename to: Case ( Get ( SystemPlatform ) = 1; "filemac:"; Get ( SystemPlatform ) = -2; "filewin:"; "file:" ) & Substitute (Get (DocumentsPath); "Documents"; "Downloads" ) & "file.pdf" And then: Save Records as PDF [With dialog: Off; $path_filename ; Records being browsed ; Create folders: Off] The script it works in Mac but not in Windows: I get an 800 Error and a message warning that it can't create the file. I don't get what's wrong with the windows version, any idea?
October 14, 20205 yr On Windows I just use Get ( DocumentsPath ). No "filewin:" prefix and it works fine. Edited October 14, 20205 yr by jaboda
October 16, 20205 yr Author This issue seems related to Windows 10 file permissions because I've tried to run the script under a windows admin account and it worked well, so it doesn't look like a FileMaker problem but I'm completely lost. jaboda: Thanks for the filewin tip anyway.
Create an account or sign in to comment