Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: choose from list bug??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: choose from list bug??



Le 27 mars 07 à 21:16 Soir, Michelle Steiner a écrit:

On Mar 27, 2007, at 11:57 AM, Arnaud Nicolet wrote:

Is it an improper coercion?

Because I tried this script:

set i to 3
set i to i as integer --Also a not needed coercion.
get i

so what's the difference?

It's not the same.

Try these four 2-line scripts:

set a "this is a string"
a as string

set a "this is a string"
string a

set a to 3
a as integer

set a to 3
integer a

You just missed a "to":
set a to "this is a string"
;-)

Thank you.
In fact, since I use another language, I often mix them and expect something to work or fail when it is not. _______________________________________________
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
References: 
 >Re: choose from list bug?? (From: "Stockly, Ed" <email@hidden>)
 >Re: choose from list bug?? (From: Arnaud Nicolet <email@hidden>)
 >Re: choose from list bug?? (From: Michelle Steiner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.