AnsweredAssumed Answered


Question asked by RickWhitelaw on Feb 28, 2010
Latest reply on Mar 1, 2010 by RickWhitelaw






In some scripting I had been saving pdf's to my desktop temporarily, printing, and then automatically deleting the files. I decided that saving them to the Temporary Path would be smarter, as the files would be cleaned up automatically without further scripting. However "Get(TemporaryPath)" is returning a folder that doesn't exist and my shell script, of course, won't print from it. Oddly, using the Save Records as PDF step with a variable file path, value is Get(TemoraryPath)&"myfile.pdf" does not return an error in FMPA even though, after canceling the script (but after "saving pdf"), the pdf is nowhere to be found. Printing, via lpr, does produce an error; "directory . . . . .not found" (or "does not exist"). So, FMPA apparently has no problem with a directory that doesn't exist, the OS definitely has that problem, and the pdf's are nowhere even though FMPA seems to have had "no problem" saving them.


From Help, the Temporary path is defined as:  /DriveName/private/var/tmp/folders/501/TemporaryItems/FileMaker/S<n> where DriveName is the name of your hard disk.

Currently, Get(TemporaryPath) is returnung "/System 250/private/var/folders/4D/4DANsW03HG0DdU1dyriORE+++TI/Cleanup At Startup/S10/"

"/Cleanup At Startup/S10" does not exist on my drive.




FMPA 10v3

Mac OS X 10.6.2

bash shell