Re: OS 10.6 Set Current Printer not working
Re: OS 10.6 Set Current Printer not working
- Subject: Re: OS 10.6 Set Current Printer not working
- From: CYB <email@hidden>
- Date: Fri, 19 Mar 2010 11:15:41 -0600
- Thread-topic: OS 10.6 Set Current Printer not working
Title: Re: OS 10.6 Set Current Printer not working
Denis, your code is running ok here even triggering from FileMaker 9 and OS 10.6.2
I can not reproduce the error
Carlos Ysunza
Carlos Ysunza B.
Director
Ysunza/Santiago
Comunicación Visual • Automatización
Tel. (52)55 5256-0336
email@hidden
http://www.ysunzasantiago.com
http://www.thesecretmexico.com
http://www.softrobot.com.mx
On March 19; 2010 Denis wrote
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