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.

Status(CurrentPrinterName) returns <unknown>

Featured Replies

Hello, this is my first post and after searching a lot of the older posts, I couldn't find an answer to my problem. I am running a script with the Status(CurrentPrinterName) to check the name of the selected printer, so I can move to the correct layout for that printer model. FM Pro Dev 6 works fine in Mac OS 9, returning the correct name, but in Mac OS X it returns <unknown>. Am I missing something or doing something wrong or It is a bug on the Mac OS X version. Is there a work around this? Thanks, in advance. confused.gif

After testing this myself, I am thinking the answer to your question is yes

This is an OS X problem when working in FMP v6.

It works under OS 9 with v6, and it works under OS X with v7, but OS X and v6 always seems to return a result of <unknown>.

Perhaps someone can suggest a plug-in that helps with this problem?

  • Author

Brian:

Thanks, for the response, but I couldn't sit, waiting for a response that I already knew by heart, knowing Filemaker since version 1. So...., I created my own solution and a very easy one.

I just created a global:text field in my file, then I created a subroutine script with an applescript inside that just set the global with the name of the current printer (the default one) a simple call to the subroutine and instead of asking for the Status(CurrentPrinterName) I just check the content of the global. It works fine.

Here is the Applescript:

tell application "Printer Setup Utility"

set the current_printer to the name of the current printer

end tell

tell application "FileMaker Developer"

set field named "Printer_name" to current_printer

end tell

As you can see it was only tested with FileMaker Developer 6.0v4 running in Mac OS X.3.8

Mike:

The same error occurs in FMP 5.5 on OSX. I never noticed it until you brought it up.

-Stanley

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.