Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7131 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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?

Posted

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

Posted

Mike:

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

-Stanley

This topic is 7131 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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