• 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
Why does this script NOT error?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does this script NOT error?


  • Subject: Why does this script NOT error?
  • From: Bert Groeneveld <email@hidden>
  • Date: Wed, 19 Sep 2012 00:45:22 +0200

set myString to "This is a string"
set AppleScript's text item delimiters to "something"
set x to count text items of myString -- 1
set y to text item -2 of myString -- I would expect an error here?
 _______________________________________________
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

  • Follow-Ups:
    • Re: Why does this script NOT error?
      • From: Andreas Demski <email@hidden>
  • Prev by Date: Re: applescript SAY command help needed
  • Next by Date: Re: Count's 'each' parameter deprecated?
  • Previous by thread: Re: applescript SAY command help needed
  • Next by thread: Re: Why does this script NOT error?
  • Index(es):
    • Date
    • Thread