Bikeman17 Posted December 1, 2013 Posted December 1, 2013 I am struggling to create paths to save a pdf document on a Mac and Windows desktops. I don't want to save it in a folder just on the desktop. Any help will be appreciated
doughemi Posted December 1, 2013 Posted December 1, 2013 The built-in function Get(DesktopPath) is designed for just that purpose, and is cross-platform. Set a variable to Get(DesktopPath) & "YourFileName.pdf" and use that variable in your save command.
Bikeman17 Posted December 1, 2013 Author Posted December 1, 2013 I must be missing something. I entered it but there is no file on the desktop. In the Specify Output File dialog box, entered the following calc file:Get (DesktopPath) & mylist.pdf
doughemi Posted December 1, 2013 Posted December 1, 2013 No, create a variable (let's call it $thePath): $thePath = Get(DesktopPath) & "YourFileName.pdf" <—note the quotes! In the Specify Output File dialog, enter $thePath .
Bikeman17 Posted December 1, 2013 Author Posted December 1, 2013 Well ... I entered different strings with no results $thePath = Get (DesktopPath) & "YourFileName.pdf" $thePath / Get (DesktopPath) & "YourFileName.pdf" $thePath: Get (DesktopPath) & "YourFileName.pdf" Please advise
bruceR Posted December 1, 2013 Posted December 1, 2013 It is difficult to answer questions when you provide such incomplete information. Best would be to post your entire file; or a simplified example. Next best would be to post a complete copy of your script. This works best if you print the script to PDF.
Bikeman17 Posted December 1, 2013 Author Posted December 1, 2013 Basically, I try to save a pdf file on the desktop using the Save Records as PDF command. That's all. I tried several ways with no results.
eos Posted December 1, 2013 Posted December 1, 2013 Well ... I entered different strings with no results $thePath = Get (DesktopPath) & "YourFileName.pdf" $thePath / Get (DesktopPath) & "YourFileName.pdf" $thePath: Get (DesktopPath) & "YourFileName.pdf" Please advise The Specify Output File doesn't allow calculations, that's why you need to define the complete path as variable first, then use it as the path expression: Set Variable [ $path ; Get ( DesktopPath ) & "YourFileName.pdf" ] Save Records as PDF … [ Specify Output File: $path ]
bruceR Posted December 2, 2013 Posted December 2, 2013 "Basically, I try to save a pdf file on the desktop using the Save Records as PDF command. That's all. I tried several ways with no results." That's why it is more considerate to actually SHOW what you are doing by providing a copy of your file or copy of your script.
Recommended Posts
This topic is 4008 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