June 17, 200718 yr I am a newbie customizing an existing database and noticed every time I send a PDF on an e-mail it also saves it to the desktop, and I don't want that. I noticed this in the script: ================================================= Let ( [MAC = "filemac:" & Get ( DesktopPath ) ;PC = "filewin:" & Get ( DesktopPath )];Case(Abs(Get ( SystemPlatform )) = 1; MAC; Abs(Get ( SystemPlatform ))= 2 ;PC ) & "Proposal" & Sales Orders::Invoice ID & ".pdf") ================================================= What can I change to avoid ending up with a bunch of PDF's in the Desktop? Thanks for any help, Emilio
June 18, 200718 yr You can export to the "temporary items" folder on either platform. Its items are usable for now, but will be lost after restarting the computer (at least on Mac, and I assume on Windows). Here's a calculation for the path. Let ( [ documents_path = Get ( DocumentsPath ); drive_path = Get ( SystemDrive ); file_path = Case ( Get ( SystemPlatform ) = 2; "filewin:" & Substitute ( documents_path ; "My Documents" ; "Local Settings" ) & "Temp/" ; "filemac:" & drive_path & "private/var/tmp/folders.501/TemporaryItems/" ) ]; file_path & _gFileName )
Create an account or sign in to comment