• 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 Delimiter Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Item Delimiter Problem


  • Subject: Re: Text Item Delimiter Problem
  • From: "Allen Watson" <email@hidden>
  • Date: Wed, 12 Apr 2006 18:47:57 -0700

I'm not sure what external resources Gary is referring to, but for me, this works too:

set s to "this don't compute"
set od to AppleScript's text item delimiters
set AppleScript's text item delimiters to "don't"
set t to text items of s
set AppleScript's text item delimiters to od
return t
-- {"this "," compute"}

On 4/12/06, Gary (Lists) <email@hidden> wrote:
"Adam Bell" wrote:

> When the text of an AppleScript text item delimiter is or contains `, or ',
> the text is not delimited there. Escaping it (\`, or \') doesn't work either
> and it doesn't seem to matter whether it's unicode text or ASCII. How do I
> specify a text item delimiter that must include single quote(s), curly quotes,
> or a back quote (lower case ~)? Must it be entered by ASCII number, for
> example?

These both work, OMM.


set s to "what's this doin' to me?"
set the text item delimiters to "'"
set o_ to the text items of s
--> {"what", "s this doin", " to me?"}


set s to "what`s this doin` to me?"
set the text item delimiters to "`"
set o_ to the text items of s
--> {"what", "s this doin", " to me?"}


Adam, from your statement
> When the text of an AppleScript text item delimiter is or contains `, or '

it seems that you may be trying to use multiple characters in your delimiter
(the "or contains" suggests this.)


I publicly insisted just last year that AppleScript was handling multiple
character delimiters just fine...only to realize later (with some chagrin)
that I was relying on an external tool.

Is it possible that you, also, have become accustomed to thinking that
multiple-character delimiters should work and now don't have the requisite
external resources?
--
Gary
...cover you (os)ass...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (
 _______________________________________________
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

  • Follow-Ups:
    • Re: Text Item Delimiter Problem
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Text Item Delimiter Problem (From: "Adam Bell" <email@hidden>)
 >Re: Text Item Delimiter Problem (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Out of memory??
  • Next by Date: Re: help requested with cron-executed shell script in Linux
  • Previous by thread: Re: Text Item Delimiter Problem
  • Next by thread: Re: Text Item Delimiter Problem
  • Index(es):
    • Date
    • Thread