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.

Launching or opening a file

Featured Replies

  • Newbies

I'm sure this is a very simple question; I just haven't found the answer.

Once I have the path to a file, how do I use ScriptMaster to open the file with it's native app?

Here's one way

Would be interested to see how others might do it.

Needs Java 1.6 - so won't run on OSX 10.5 or less




// FileOpen ( fm_fileIn ))

// 12_02_22 JR

// v1.2

// open any file in registered desktop application





import java.awt.Desktop

if (java.awt.Desktop.isDesktopSupported()) {

desktop = new Desktop()

try {

  desktop.open(new File(fm_fileIn))

} catch (e) {

  return e.getMessage()

}

return true

}  else {

return 'ERROR'

} //end if



John - I find your version to work just fine (at least on the Mac). In particular, it's nice that it also works to reveal a folder in Finder if you send a folder path and not a file path.

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.