May 18, 200520 yr 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.
May 18, 200520 yr 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?
May 18, 200520 yr 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
May 18, 200520 yr 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