• 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
TID's in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TID's in Snow Leopard


  • Subject: TID's in Snow Leopard
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 30 Aug 2009 08:40:40 -0500

Here is a small snippet of code I've been using for years without error in 10.4 and 10.5 ...

set x to ""
set AppleScript's text item delimiters to {tab}
set y to (text item 1 of x)

If x = "", then y = "" without error. But, in 10.6 the last line returns the error message

Can't get text item 1 of "".

It took me more than an hour to find this one line of code.

 _______________________________________________
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: TID's in Snow Leopard
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Snow Leopard AppleScript Release Notes
  • Next by Date: Re: TID's in Snow Leopard
  • Previous by thread: Re: Confused with Applescript and 10.6
  • Next by thread: Re: TID's in Snow Leopard
  • Index(es):
    • Date
    • Thread