• 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: choose from list bug??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: choose from list bug??


  • Subject: RE: choose from list bug??
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 27 Mar 2007 12:15:06 -0700
  • Thread-topic: choose from list bug??

>>>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.
>>>so what's the difference?

The difference is, it's improper, not unneeded.

Maybe I should have said the form of the coersion was improper.

The form he was using was:

  string myVariable

That doesn't work, even if it is needed

  myVariable as string

That works even if it's not needed

So, in your example that would be the same as:

  integer i

Which wouldn't work.

Off the top of my head I can only think of a one case where a value can be
coerced by placing the class first:

  date "3/27/2007"

But that form doesn't work with most other classes

ES
 _______________________________________________
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

  • Prev by Date: Re: Shell script help - get date of last modified file in hierarchy
  • Next by Date: Re: choose from list bug??
  • Previous by thread: Re: choose from list bug??
  • Next by thread: RE: choose from list bug??
  • Index(es):
    • Date
    • Thread