Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Restore default printer in OS X

Featured Replies

I've used an Applescript to change the default printer in OS X but everything I've tried to restore the original printer has failed. First I tried capturing the current printer name in a global field with status(CurrentPrinterName). In OS X it returns '<unknown>' as the printer name.

The next thing I tried was to have Applescript capture the current printer and populate my global field as follows:

tell application "Print Center"

set defprinter to current printer

tell application "FileMaker Pro"

set data field "gPrinter Default" of database "db.fp5" to defprinter

end tell

end tell

It returns an error "Can't make <<class prnt>> "Printer Name" of application "Print Center" into the expected type."

Does anybody know why either one of these procedures is failing? Is there a better way to restore the original printer that I'm overlooking?

Try changing this step:

set defprinter to current printer

to:

set defprinter to name of current printer

  • Author

Excellent...I knew It was something simple I overlooked. Thank You.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.