February 3, 201015 yr I'd like to set the default printer using applescript, so that I can print w/o the dialog from a script in filemaker. I'm using FM 9 & 10 in snow leopard. I came across the following script, but cannot get it to work properly. Can someone please help!!! tell application "Printer Setup Utility" set printerlist to name of printers set oldprinter to name of current printer end tell set printerchoice to (choose from list printerlist with prompt ¬ "Which printer to be default?" default items oldprinter) set myprinter to (printerchoice as string) tell application "Printer Setup Utility" to set current printer to myprinter
February 3, 201015 yr Error in last line. Was: tell application "Printer Setup Utility" to set current printer to myprinter Should be: tell application "Printer Setup Utility" to set current printer to printer myprinter
March 17, 201015 yr I think you need to do this in Print rather than in Print Setup. If you set to Any Printer in the Print Setup, then set the destination printer in the Print section that follows at the time of actual printing, you may have better success.
Create an account or sign in to comment