July 29, 200421 yr This has been driving me nuts for years. I just did some troubleshooting and found that it's only a FileMaker problem, other programs are not affected, so I thought I'd ask here... If you print a page in FileMaker, then change the printer (applescript or manual), then print another page in FileMaker, the print dialog will still show the original printer unless you execute the second print AFTER the first job has FINISHED printing. I always thought it was an Apple problem, but strangely enough, this problem doesn't happen in other apps. It DOES work if you print something with another program, then change printers, then print something within FileMaker while the original print job is still running, suggesting to me that FileMaker somehow attaches itself to its own print jobs, unwilling to default to the default printer until its jobs are completed. Does anybody have any insight or workaround? Anybody NOT have this problem?
August 1, 200421 yr It is possible to get the name and busy status of the current printer by applecript and wait until the printer is done.
August 4, 200421 yr Do you have something that I can look at? I have been trying to change printers in FM 7 running on Mac OS X for awhile with no success. I can change the printer either in the Print Setup or an Applescript but when I perform the Print script step, it still has the previously used printer. Any idea's?B)
August 5, 200421 yr tell application "Printer Setup Utility" name of every printer choose from list result set selectedPrinter to result as text set myFlag to 1 set current printer to printer selectedPrinter repeat 10 times if name of current printer = selectedPrinter then set myFlag to 0 exit repeat end if delay 1 end repeat if myFlag = 1 then display dialog "Well this didn't work. Your printers are very busy and you should come back some othet time." end tell
December 27, 200421 yr Still no luck. Although the above will change the default printer in Printer Setup Utlility, FM7 will still print to the last printer used with the print script step is set for no dialogue. Any suggestions?
February 5, 200521 yr Getting a little closer on this one. Turns out the only way to make FMP see the printer changed in Printer Setup Utilility is to use call a print comand, have the GUI manager to cancel a print command, then print again. Now I just have to learn how to use the GUI manager, uggh.
February 15, 200521 yr You must be leaving something out. The script supplied above works fine and WILL print to the changed printer reliably every time without extra trickery.
February 18, 200521 yr When I use your solution with print without dialog, no sucess. See attached example.
February 22, 200521 yr Hi Doug, I agree with you 100%. I've been trying to control FMP with the GUI manager. No luck yet... Any idea what I've done wrong? tell application "FileMaker Developer" activate end tell tell application "System Events" tell application process "FileMaker Developer" click the menu item "Print
February 25, 200521 yr tell application process "FileMaker Developer" should be tell application process "FileMaker" I don't know why, but is must be. Actually kind of nice in that the process is the same for FMD and FMP. Check out the attached example. Cheers DJK
February 28, 200520 yr Of course it doesn't work. You are commanding it not to work. You choose a new printer with applescript and then immediately discard the result. You print with "restore printer" turned on. Turn it OFF. PrintProb.zip
Create an account or sign in to comment