• 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
Re: Desperately seeking an error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Desperately seeking an error


  • Subject: Re: Desperately seeking an error
  • From: John W Baxter <email@hidden>
  • Date: Sun, 19 Aug 2001 21:35:50 -0700

At 23:44 -0400 8/19/01, Paul Skinner wrote:
> I understand that all of these pieces of data may be generated by an
>error. Can anyone tell me of an instance where all of these pieces of data
>are not generated by an error?
> I'm trying to test this with an error that produces only some of the
>values, but I haven't found an error that fails to give me all of them.

I don't know what would happen if you wrote a Scripting Addition which only
provides values for some of the items...one of Apple's behaves sensibly
(usual line wrap warning):

set handlerName to "run"
try
date string of 5
on error errorMessage number errorNumber partial result errorResult from
errorFrom to ErrorTo
set theResults to {handlerName:handlerName, errorMessage:errorMessage,
errorNumber:errorNumber, errorResult:errorResult, errorFrom:errorFrom,
ErrorTo:ErrorTo}
end try

builds the record:
{
handlerName:"run",
errorMessage:"Can't get date string of 5.",
errorNumber:-1728,
errorResult:{},
errorFrom:date string of 5,
ErrorTo:{}
}

I never tested the ones I wrote to see what would happen with the missing
items (and now I don't recall what items were missing). I suspect you'll
always see *some* value...perhaps the empty lists as seen above--unless
they are empty records...AEPrint renders those as [].

--John


--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Desperately seeking an error (From: Paul Skinner <email@hidden>)

  • Prev by Date: Desperately seeking an error
  • Next by Date: Variable to an application keyword
  • Previous by thread: Desperately seeking an error
  • Next by thread: Re: Desperately seeking an error
  • Index(es):
    • Date
    • Thread