Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4008 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

 

Posted

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.

Posted

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

Posted

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 .

Posted

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

Posted

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.

Posted

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.

Posted

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 [ $pathGet ( DesktopPath ) & "YourFileName.pdf" ]

Save Records as PDF … [ Specify Output File: $path ]

Posted

"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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.