• 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
AS ERROR...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AS ERROR...


  • Subject: AS ERROR...
  • From: Don Wieland <email@hidden>
  • Date: Thu, 12 Apr 2007 16:12:03 -0700

I am trying to capture an ERROR when I run this script in FMP 8.5:

tell application "Printer Setup Utility"
try
set the current printer to printer "Officejet 6200 series"
on error errMsg number errNum
end try
quit
end tell

set field "gERROR" of table "Computers" to errMsg

When I MISPELL the printer name, the script run to completion and spits the
error in my FMP fields called "gERROR".

When I spell the printer name CORRECTLY, the script generates AS errors
saying the errMsg was not declared (also an error number).  What do I need
to change to get it to run to completion in both scenarios?

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: AS ERROR...
      • From: kai <email@hidden>
References: 
 >Re: Symbol typing (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Symbol typing
  • Next by Date: Re: AS ERROR...
  • Previous by thread: Re: Symbol typing
  • Next by thread: Re: AS ERROR...
  • Index(es):
    • Date
    • Thread