Applescript Not working
Applescript Not working
- Subject: Applescript Not working
- From: Don Wieland <email@hidden>
- Date: Thu, 12 Apr 2007 12:43:35 -0700
I am trying to run this from FileMaker Pro 8.5 in a script:
tell application "Printer Setup Utility"
set printerlist to name of printers
set oldprinter to name of current printer
set printerchoice to (choose from list printerlist with prompt ¬
"Which printer to be default?" default items oldprinter)
set myprinter to printer (printerchoice as string)
set current printer to myprinter
quit
end tell
tell application "FileMaker Pro"
set field "Default_Printer" of table "Computers" to myprinter
end tell
All I want to do is grab a printer name and put it in a field. I don't need
to change the PRINTER.
Can someone do a quick tweak to my script to help me out. Thanks!!!
Don Wieland
DW DATA CONCEPTS
~~~~~~~~~~~~~~~~~~~~~~~~~
Direct Line - (714) 389-4026
Fax - (714) 389-4027
email@hidden
http://www.dwdataconcepts.com
Integrated data solutions to fit your business needs.
APPOINTMENT 1.0v7 - Add powerful scheduling to your database system.
http://www.appointment10.com/
_______________________________________________
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