Jump to content

Paths Issue on Mac & Windows


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

Recommended Posts

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.

Link to comment
Share on other sites

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 .

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 3819 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.