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

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

Recommended Posts

Posted

I used to use the following AppleScript to change printers in FileMaker:

tell application "FileMaker Pro" to set printerChoice to cell "gPrinterReceipt" of table "Preferences"

try

tell application "Printer Setup Utility" to set current printer to printer (printerChoice as string)

on error

display dialog "Sorry, the printer, '" & printerChoice & "' was not found." buttons {"dang"} default button 1

tell application "FileMaker Pro" to set cell "gBlnAppleScriptError" of table "Preferences" to "1"

end try

But now the Printer Setup Utility is gone, and its functions included in System Preferences. Can this be scripted? If so, can my code be modified to handle both cases?

  • 1 month later...
Posted

though there's not an application by that name, you can still

tell application "Printer Setup Utility"

and if you Open Dictionary ... in Script Editor, you'll see you can indeed view a the dictionary

Posted

though there's not an application by that name, you can still

tell application "Printer Setup Utility"

and if you Open Dictionary ... in Script Editor, you'll see you can indeed view a the dictionary

Wow, it works perfectly. I feel silly. I swear it wasn't there when Leopard first came out.

This topic is 6101 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.