Bill_misc_IT Posted February 3, 2010 Posted February 3, 2010 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
bruceR Posted February 3, 2010 Posted February 3, 2010 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
FMReader Posted March 17, 2010 Posted March 17, 2010 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.
Recommended Posts
This topic is 5363 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 accountSign in
Already have an account? Sign in here.
Sign In Now