• 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
Applescript Not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Applescript Not working
      • From: James Nierodzik <email@hidden>
  • Prev by Date: RE: Scripting Filemaker 8.5.. (HEEELP)
  • Next by Date: Re: Applescript Not working
  • Previous by thread: Printing to PDF
  • Next by thread: Re: Applescript Not working
  • Index(es):
    • Date
    • Thread