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

Get (FilePath) not working

Featured Replies

Hi, I wonder if anyone can help. I have a folder on my desktop called “quotes” and have a working script that saves quotes in a PDF format to that folder.

1). This works just fine…

Get ( DesktopPath )  & "/" & "quotes" & "/" &  Quotes::Quote_Pk & "-Quote.pdf"

2). But can anyone tell me why this doesn’t…

Get ( FilePath )  & "/" & "quotes" & "/" &  Quotes::Quote_Pk & "-Quote.pdf”

…using the second I get the following error message…

Quote

“Q-00272-Quote.pdf” could not be created on this disk.  Use a different name, make more room on the disk, unlock it or use a different disk.

I need the second script to work because we have had to move the database as well as the "quotes” folder, to another location.

Any help would be greatly appreciated.

Karlos.

 

The Get ( FilePath ) function returns the full path to your solution file - including the filename. It makes no sense to append a "/" to the result.

If you want to calculate a path relative to your solution file, you must start by removing the filename from the path returned by Get ( FilePath ). For example, if the folder named "quotes" is in the same folder as your solution file, the following should work as the path for the saved PDF file:
 

Let ( [
path = Get ( FilePath ) ;
pos = Position ( path ; "/" ; Length ( path ) ; - 1 ) ;
dir = Left ( path ; pos )
] ;
dir & "quotes/" & Quotes::Quote_Pk &"-Quote.pdf”
)

 

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.