Re: Bug in OS 9.2.1/2 S 1.6-1.8.2b? (also: Set t to true as boolean)
Re: Bug in OS 9.2.1/2 S 1.6-1.8.2b? (also: Set t to true as boolean)
- Subject: Re: Bug in OS 9.2.1/2 S 1.6-1.8.2b? (also: Set t to true as boolean)
- From: Kai Edwards <email@hidden>
- Date: Fri, 22 Feb 2002 19:18:33 +0000
on Wed, 20 Feb 2002 03:15:54 -0800, Paul Berkowitz <email@hidden>
wrote:
>
In AS 1.6 and 1.8.2b in OS 9.2.1/9.2.2:
>
>
set t to "true" as boolean
>
>
--> Can't make "true" into a boolean
>
>
>
>
In AS 1.8.2b/1.8.2 in OS 10.1.2/10.1.3 the result is
>
--> true
>
>
>
Has it not been coercible to a boolean previously in OS 9? It works with
>
Akua Sweets installed (NOT Jon's Commands) so perhaps that's been the only
>
way? Does anyone have an earlier OS/AS without Akua installed to test with?
I can go back to 8.1 (AS 1.1.2):
---------------------------------------
With Akua (predictably):
set t to "true" as boolean
--> true
---------------------------------------
Without Akua:
set t to "true" as boolean
--> Can't make "true" into a boolean.
---------------------------------------
Also, on Wed, 20 Feb 2002 17:16:42 EST, email@hidden wrote:
>
Try
>
>
set t to true as boolean
>
-- skipping the surrounding quotes around the word true, which omits a
>
coersion from string to boolean
But isn't the 'as boolean' a redundant coercion - since true (without the
surrounding quotes) is already boolean?
I got the impression that the question was centred more on which versions of
AS could coerce a string to a boolean.
Kai
--
**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************
_______________________________________________
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.