Re: Problem with extracting characters from a string
Re: Problem with extracting characters from a string
- Subject: Re: Problem with extracting characters from a string
- From: Christopher Stone <email@hidden>
- Date: Thu, 16 Dec 2004 04:38:14 -0600
At 15:58 +0530 12/16/2004, BADRINATH, NANDINI wrought:
Have a problem with Applescripting. I have the filename which is
stored as a string. How do I extract the filename as alphabets? Is there
a way to access the array elements?
______________________________________________________________________
set fName to "test"
set split to characters of fName
--> {"t", "e", "s", "t"}
~~~~~
set AppleScript's text item delimiters to {""}
set fName to "test"
set split to text items of fName
--> {"t", "e", "s", "t"}
~~~~~
Using the Satimage osax:
set fName to "test"
set split to find text "." in fName with regexp, all occurrences and
string result without case sensitive
--> {"t", "e", "s", "t"}
(http://www.satimage.fr/software/en/downloads_osaxen.html)
Chris
_______________________________________________
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