AS ERROR...
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