Re: Displaying a lists items as items
Re: Displaying a lists items as items
- Subject: Re: Displaying a lists items as items
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 4 Sep 2003 14:05:10 -0400
Date: Thu, 4 Sep 2003 10:59:15 -0300
Subject: Displaying a lists items as items
From: Marcus Rodrigues <email@hidden>
To: AppleScript Users Users <email@hidden>
Hi all!!!
This is my example script:
tell application "Finder"
activate
set lista to {}
set palavra to "ondekiandava"
set letras to the characters of palavra
repeat with letras in palavra
set lista to lista & letras
end repeat
set tuf to the items of lista as Unicode text
end tell
display dialog tuf
The result is ondekiandava.
Is there a way to make it be: o, n, d, e, k, i, a, n, d, a, v,
a.?????
I heard about Text item delimiters... Is that the case? I never used
it, so I don't know how to procede..
Try this:
set theText to "ondekiandava"
set theItems to characters of theText
set {od, AppleScript's text item delimiters} to ,
{AppleScript's text item delimiters, ", "}
set theText to (theItems as text)
set AppleScript's text item delimiters to od
theText
Marc [09/04/03 2:04:44 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.