jasonwood Posted February 6, 2008 Posted February 6, 2008 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?
garbanzito Posted March 6, 2008 Posted March 6, 2008 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
jasonwood Posted March 10, 2008 Author Posted March 10, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now