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: parsing strings




On Mar 21, 2007, at 2:55 PM, deivy petrescu wrote:

Complementing Michelle's  message:

<script>
set mystring to "Help, I'm caught between these parentheses, and I can't get out"


{first character of mystring, middle character of mystring, last character of mystring}
----{"H","p","t"}
</script>

Extending that further:

set mystring to "Help, I'm caught between these parentheses, and I can't get out"
some character of mystring
--> "e"
some character of mystring
--> I
some character of mystring
--> s"


reverse of characters of mystring as text
--> "tuo teg t'nac I dna ,sesehtnerap eseht neewteb thguac m'I ,pleH"

--
"Where is the wisdom we have lost in knowledge?
 Where is the knowledge we have lost in information?
 Where is the information we have lost in data?"

T.S. Eliot (1915)

_______________________________________________
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
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Parsing strings (From: "W. Thomas Leroux" <email@hidden>)
 >parsing strings (From: Michelle Steiner <email@hidden>)
 >Re: parsing strings (From: deivy petrescu <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.