Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Paths Issue on Mac & Windows

Featured Replies

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

 

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.

  • Author

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

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 .

  • Author

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

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.

  • Author

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.

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 ]

  • Author

Ahhhh there you go EOS!

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.