Applescript's text item delimiters in SnowLeopard

In SnowLeopard, a previously recommended statement such as:

set zzz to AppleScript’s text item delimiters

no longer compiles. Neither “AppleScript’s” nor “text item delimiters” is recognized by the now renamed AppleScript Editor.

This always worked before (and was previously recommended by Apple).

Can anyone indicate the correct statement in SnowLeopard?

This is compiling and working OMM.

I did upgrade to 10.6.1 so don’t know if that makes a difference.

	set zzz to AppleScript's text item delimiters
	set AppleScript's text item delimiters to paramHere
	set theItems to text items of textHere
	set AppleScript's text item delimiters to zzz

Thank you for your comment.

Yes, I have noticed in the meantime that the statement does indeed execute correctly. I was misled by the fact that on my machine in AppleScript Editor the word “AppleScript” and “text item delimiters” did not adopt the correct context colouring (for syntax which is recognized) once compiled. This is also visible in the screenshot that you posted (the words remain purple, i.e. are not marked by the Editor as recognized).

Since the execution is correct nevertheless, this is a lesser problem.

Thanks again

I thought “purple” indicated properties. Is that not correct?

That depends on if you customized it, I hate the green and purple so the first thing I do is change them to something else.

I was fooled too by the purple properties.
I added the underlined attribute to properties so I’m no longer fooled.

Yvan KOENIG (VALLAURIS, France) samedi 12 septembre 2009 19:27:58

That’s nice Yvan. Helps a lot!