• 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 15:23:14 -0500

I replied earlier, but my messages seems to have disappeared, so I'll try again ... in plain text

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 down the primrose path to never-never land, remember ...

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"}

'text items' depend on the value of 'text item delimiters'.

You should use ...
On Oct 2, 2008, at 9:55 AM, Axel Luttgens wrote:
So,

	set digitlist to every character of "0123456789"

should have always been more appropriate for fetching individual characters.

_______________________________________________ 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: AppleScript broken in 10.5.4
  • 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