Re: "result" corruption
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.