• 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: AppleScript 1.6 issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript 1.6 issues


  • Subject: Re: AppleScript 1.6 issues
  • From: John W Baxter <email@hidden>
  • Date: Fri, 13 Apr 2001 21:29:43 -0700

At 17:43 -0700 4/13/01, Christopher Nebel wrote:
>> I recently updated to AppleScript 1.6 and have noticed a few things
>> don't
>> work as before.
>>
>> *The data type short doesn't work. I can't coerce an integer into a
>> short
>> integer. eg:
>> set y to 3
>> set x to y as short
>
>As far as I can tell, AppleScript has never defined the term "short",
>though it does define "small integer", and that still works in
>AppleScript 1.6. Might you have a scripting addition that went AWOL
>during your upgrade?

I don't recall "short" as a bit of terminology, either. There is indeed an
underlying Apple Event Manager data type coded 'shor' which is a 16-bit
integer. The direct representation of that would be
<<class shor>>
which compiles to "small integer" as I expected it to based on Chris'
comments above. [I've never used it.]

In what context did you need a short?

--John


--
John Baxter email@hidden Port Ludlow, WA, USA


  • Follow-Ups:
    • Re: AppleScript 1.6 issues
      • From: John W Baxter <email@hidden>
References: 
 >Re: AppleScript 1.6 issues (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Coerce String to Handler?
  • Next by Date: Re: AppleScript 1.6 issues
  • Previous by thread: Re: AppleScript 1.6 issues
  • Next by thread: Re: AppleScript 1.6 issues
  • Index(es):
    • Date
    • Thread