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.

Opening docs from other applications

Featured Replies

i have a filepath to a pdf document that imported with this information:

file:// G4/Users/jeffbill/Documents/tutorials/Page 4 - Channels Masking.pdf

into a field called "path"

How do I automate Filemaker with apple events or applescript to launch the file at the end of this path?

I'm new to applescript and apple events

-thanks

-J

Make a new text calculation field called "path_applescript_calc":

"tell application ""Finder""par.gif

activatepar.gif

if file """ & path & """ exists thenpar.gif

select file """ & path & """par.gif

open selectionpar.gif

elsepar.gif

beeppar.gif

display dialog ""There is no PDF for this file."" with icon 1 buttons (""OK"") default button 1par.gif

end ifpar.gif

end tell"

The triple quote marks pass a single quote mark to the AppleScript. The paragraph markers at the end of each line are to keep the calculation result pretty. It's indented too, but it didn't show up in my post.

  • Author

Matt,

Do I type everything from "tell . . . end tell" AS-IS into the "path_applescript_calc" field along with appropriate indents?

I'm dumber than a skunk on this issue, go easy on me smirk.gif

No. Do NOT use that method. And the post has several errors. Creating fields for applescript is poor practice. Use the perform applescript method and put the script there.

copy cell "Path" of current record to filePath

Tell app "Finder"

try

open file filePath

on error

display dialog ""There is no PDF for this file."" with icon 1 buttons {"OK"} default button 1

end try

end tell

  • 1 month later...
  • Author

Thanks all

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.