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

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

Recommended Posts

Posted

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

Posted

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

  • 1 month later...
Posted

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.

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 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.