Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Item Delimiter Problem



"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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Text Item Delimiter Problem (From: "Adam Bell" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.