• 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: "result" corruption
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "result" corruption


  • Subject: Re: "result" corruption
  • From: Steven Angier <email@hidden>
  • Date: Mon, 29 Jul 2002 22:38:10 +1000

On 29/7/02 6:12 PM, "Steven Angier" <email@hidden> wrote:

> It seems that this has something to do with
> alias coercion, as I haven't been able to replicate the effects with
> other classes (see example 2). Mac OS 9.2.1 / AS 1.8.3.

I think I have figured out that "result" has global scope (OS 9.2.1 / AS
1.8.3):


get "1.0"

if CouldBeInteger(result) then
return result
else
return result
end if

--> 1 (a number, not a string)


on CouldBeInteger(theValue)
try
get (theValue as number)
return true
on error
return false
end try
end CouldBeInteger


This is probably documented somewhere and common knowledge to everyone else
:-)


Steven Angier
Macscript.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >"result" corruption (From: Steven Angier <email@hidden>)

  • Prev by Date: Re: Q: Does someone already have a > hard wrapper?
  • Next by Date: [Off] strange system error 119
  • Previous by thread: Re: "result" corruption
  • Next by thread: Q: Does someone already have a > hard wrapper?
  • Index(es):
    • Date
    • Thread