kitesurfer3 Posted June 17, 2007 Share Posted June 17, 2007 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 Link to comment Share on other sites More sharing options...
Fenton Posted June 18, 2007 Share Posted June 18, 2007 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 ) Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6181 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now