• 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: text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text item delimiters


  • Subject: Re: text item delimiters
  • From: "Adam K. Wuellner" <email@hidden>
  • Date: Thu, 28 Oct 2004 15:54:02 -0500

On Oct 28, 2004, at 1:33 PM, Skinner Paul wrote:

script alpha
	set my text item delimiters to {","}
end script
AppleScript's text item delimiters
-->{""}

Being a little more explicit:

	set AppleScript's text item delimiters to {""}

	script alpha
		set my text item delimiters to {","}
	end script

	-- now check the two TIDs:
	log AppleScript's text item delimiters
	log alpha's text item delimiters

My log shows:
	(**)
	(**)

Changing alpha thusly:
[...]
	script alpha
		property text item delimiters : {","}
	end script
[...]

...the log now shows:
	(**)
	(*,*)

But, I can't figure out a way to _employ_ alpha's TIDs in any coercion of a list to a string:
[...]
set testText to "a,b,c"
log text items of testText
tell alpha to log text items of testText
tell alpha to log its text items of testText
log AppleScript's text item delimiters
log alpha's text item delimiters


gives this log:
	(*a, ,, b, ,, c*)
	(*a, ,, b, ,, c*)
	(*a, ,, b, ,, c*)
	(**)
	(*,*)

So, is it even possible to use a some TIDs other than AppleScript's when getting text items?

- Adam

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Dice (From: kai <email@hidden>)
 >Re: Dice (From: Malcolm Fitzgerald <email@hidden>)
 >Re: Dice (From: Joseph Weaks <email@hidden>)
 >Re: Dice (From: Malcolm Fitzgerald <email@hidden>)
 >text item delimiters (From: David Andrews <email@hidden>)
 >Re: text item delimiters (From: Skinner Paul <email@hidden>)

  • Prev by Date: Re: How to find current user?
  • Next by Date: Re: Inheritance and Loaded Libraries
  • Previous by thread: Re: text item delimiters
  • Next by thread: Re: text item delimiters
  • Index(es):
    • Date
    • Thread