• 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 broken in 10.5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript broken in 10.5.4


  • Subject: Re: AppleScript broken in 10.5.4
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 2 Oct 2008 13:54:27 -0500

On Oct 2, 2008, at 9:21 AM, Bob Anderson wrote:

The following script works in 10.4.x but fails in 10.5.4. Suggestions?

    set digitlist to every item of "0123456789"

Before we go into never-never land ... Run this!

set someText to "abcdefgh0123456789"
set AppleScript's text item delimiters to {""} -- the default value
text items of someText --> {"a", "b", "c", "d", "e", "f", "g", "h", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}

set AppleScript's text item delimiters to {"h0"}
text items of someText --> {"abcdefg", "123456789"}

set AppleScript's text item delimiters to {"pdq"}
text items of someText --> {"abcdefgh0123456789"}

The results you get with 'text items' depends on the value of 'text item delimiters'.

 _______________________________________________
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: 
 >AppleScript broken in 10.5.4 (From: Bob Anderson <email@hidden>)

  • Prev by Date: Re: Ignoring Smart Quotes
  • Next by Date: Re: AppleScript broken in 10.5.4
  • Previous by thread: Re: AppleScript broken in 10.5.4
  • Next by thread: Re: AppleScript broken in 10.5.4
  • Index(es):
    • Date
    • Thread