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.

Open File script step using variable as path

Featured Replies

Hi fmforums!

 

I'm drawing up a simple database management tool to manage multiple databases in FMP11.

Nothing fancy, just the ability to assign users to multiple databases on FMServer 11, and then run a script to add these users to the assigned databases.

 

I have created the following fields in my database table:

Filename

ExportFilename

SvrLocation

WinLocation

MacLocation

 

on the basis that the database filename would be recorded under filename and the full path to it would be recorded under WinLocation - if stored on a PC, MacLocation, if stored on a Mac and SvrLocation if stored on a server [just covering the bases]

 

The script step that I'm having issue with is: Open File

I was under the impression that Open File would allow me to provide a variable path similar to the Export File Script step. 

In that you can do:

Set Variable $path = Database::MacLocation & Database::ExportFilename

Export File using variable $path

 

Is there some way that I could reproduce this flexibilty in the Open Path script step so that I wouldn't have to re-edit the script everytime a new database is created?

 

Any suggestions would be appreciated.

The Open File script step requires a defined External Data Source, so you won't be able to make that work. However, you could use Open URL.

 

That said, I can see the potential utility of this if you're building a file launcher. However, if your need is to manage user access, I'd highly encourage you to delve into external authentication.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.