David Jondreau Posted May 20, 2008 Share Posted May 20, 2008 I'm trying to get the script step, Save Records as PDF, to work with a variable filepath cross platform, but I can't remember the syntax. I'm starting with: Set Variable[$filepath; Get(TemporaryPath) & ORDERS::Invoice Number & ".pdf" This works fine on the Mac, but not a PC. I'm getting an error message that the file could not be created. What am I missing? Thanks, DJ Link to comment Share on other sites More sharing options...
mr_vodka Posted May 20, 2008 Share Posted May 20, 2008 Try Set Variable [ $filepath; "filewin:" & Get ( TemporaryPath ) & ORDERS::Invoice Number & ".pdf" ] Link to comment Share on other sites More sharing options...
David Jondreau Posted May 20, 2008 Author Share Posted May 20, 2008 Don't know how I forgot that. The Mac doesn't need a prefix, it's been working fine without it, but now I've added a Case() that will assign the filewin or filemac as needed. Just need to test it... Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5827 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