Re: Accessing lasts characters of a string
Re: Accessing lasts characters of a string
- Subject: Re: Accessing lasts characters of a string
- From: Michelle Steiner <email@hidden>
- Date: Wed, 12 Mar 2008 14:19:22 -0700
On Mar 12, 2008, at 2:02 PM, Luther Fuller wrote:
property strA : "abcdefghijklmnopqrstuvwxyz"
set strB to (rest of characters of strA) as text
set strC to (rest of characters of strB) as text
log strC
No, like this ...
property strA : "abcdefghijklmnopqrstuvwxyz"
set AppleScript's text item delimiters to {""}
set strB to (rest of characters of strA) as text
set strC to (rest of characters of strB) as text
log strC
Setting TIDs to null is NOT optional!
If you're addressing characters, text item delimiters doesn't come
into play. The only time you would have to set text item delimiters
is if you're addressing text items, which you're not in this
situation. It is not only not optional; it is not needed.
-- Michelle
--
I can't be in my second childhood;
I haven't finished the first one yet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden