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.

simple print MS Word doc from file reference

Featured Replies

  • Newbies

Hello, this is too easy to find an answer to! I've been searching for an hour or so for this simple script. I've only been able to find really complicated and special situations...

Obviously I've never used applescript before.

I have datbase that stores file references to MS Word documents (in contianer fields, of course). I'm creating a loop script to print out the document in a certain order.

So I need a very simple script that will print the MS Word document, then close it. That's all.

I can specify the filepath dynamically in the "Perform AppleScript" script step in FMP.

Thanks!

Edited by Guest

  • Author
  • Newbies

I figured it out :smile2: ... I put this calculation into the "Perform AppleScript" script step:

"

tell application "Finder"¶

	activate¶

	print document file "" & Substitute ( GetValue ( fm_database_name::field_with_file_reference ; 2 ) ; ["filemac:/" ; ""] ; ["/"; ":"] ) & ""¶

end tell

"

And it works perfectly. However, it still displays the print dialog, which is fine, but I'd like to know how to prevent that. Does anyone know? Or is AppleScript a soon to be forgotten language?

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.