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.

Changing Default Printing Applescript

Featured Replies

I have a script working under Mac osX

tell application "Printer Setup Utility"

Set the current printer to printer "iR2200i"

end tell

Since upgrading to Leopard there seems to be no "Printer Setup Utility" so FMP will not change the default printer...

Any ideas how applescript can change printer defaults

Why do you need AppleScript to do it?

If you use 'page setup' and 'print' steps in your FileMaker script, you can specify which printer FileMaker should send the output to.

No need for an AppleScript as this method works fine on Mac OS X. (Windows is another story, printing is a nightmare!)

Hope this helps.

J

  • Author

Applescript is used to give users the options of using different printer around the office via a message window, this will set page setup and print options without the user having to thimk as what to do.

it seams that Apple has removed the Printer Setup Utility in Leopard

Ah, I see. Apparently they have changed it again in Snow Leopard so even if you find a fix I wouldn't guarantee it works for long!

If you know about all the printers in the office it is probably simpler to script it all in FileMaker something like this:


show custom dialog 'Choose printer'

if get(lastmessagechoice) = 1

     page setup [restore, no dialog]      /* settings for printer 1 */

     print [no dialog]                    /* print to printer 1 */

else if get(lastmessagechoice) = 2

     page setup [restore, no dialog]      /* settings for printer 2 */

     print [no dialog]                    /* print to printer 2 */

else if get(lastmessagechoice) = 3

     page setup [restore, no dialog]      /* settings for printer 3 */

     print [no dialog]                    /* print to printer 3 */

end if

If you have more than three printers, you can't use a FileMaker dialog so you would perhaps be best off creating a little dialog layout with a drop-down list on it and showing that in a new window, then setting a variable to the result and doing your IF statements based on the variable.

This method will cope with changes in the OS and people who may be using different versions of it. If the wind is blowing the right way it may even work in Windows too ;-)

J

Applescript is used to give users the options of using different printer around the office via a message window, this will set page setup and print options without the user having to thimk as what to do.

it seams that Apple has removed the Printer Setup Utility in Leopard

What makes you say that? Have you tried it?

The app is still there and is called the same way, but it is a little bit hidden.

For instance try this in the applescript script editor:

path to application "Printer Setup Utility"

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.