• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OS 10.6 Set Current Printer not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OS 10.6 Set Current Printer not working


  • Subject: OS 10.6 Set Current Printer not working
  • From: Denis Somar <email@hidden>
  • Date: Fri, 19 Mar 2010 12:00:18 -0400

Hi all,

I'm using an AppleScript to change printers in a filemaker database and for some completely unbeknown reason to me, this script works in one file and not another.  I've tested this all on OS 10.6, FileMaker v10 and v11 and in both files I have full developer privileges.

Here's the script:

tell application "Printer Setup Utility"
          set defined_printers to name of every printer
end tell

set ChosenPrinter to choose from list defined_printers
set ChosenPrinter to ChosenPrinter as text

try
tell application "Printer Setup Utility"
set the current printer to printer ChosenPrinter
end tell

on error err_msg number err_num
display dialog "Error #" & err_num & " - " & err_msg buttons "OK" default button 1
end try

The scriptstep doesn't return any errors in FileMaker and this script compiles ok in FM.  It's when I click Print that I see the printer has not changed in my problem file.  If anyone has any ideas on what on earth would cause Set the current printer to not work, that would be great!

Thanks,
Denis
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: OS 10.6 Set Current Printer not working
      • From: "Stockly, Ed" <email@hidden>
    • Re: OS 10.6 Set Current Printer not working
      • From: CYB <email@hidden>
  • Prev by Date: Re: AppleScript, Pages and Text boxes (part 1)
  • Next by Date: Re: AppleScript, Pages and Text boxes (part 1)
  • Previous by thread: Is that possible to use applescript to detect GUI truncation issue?
  • Next by thread: Re: OS 10.6 Set Current Printer not working
  • Index(es):
    • Date
    • Thread