Quick question about parsing text

I have searched all over this site and all I can think of is I’m using the wrong word.

I want to parse out the last X characters of a user input. How do I do this?

Model: MacBook Pro 2.33GHz
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

Try something like this:

set test to text -3 thru -1 of "MacScripter BBS" -- This raises an error if the text isn't long enough
--> "BBS"

I want to delete the last 3, but I’m sure I can figure it out from that. :slight_smile:

Model: MacBook Pro 2.33GHz
AppleScript: 1.10.7
Browser: Safari 419.3
Operating System: Mac OS X (10.4)

And if you can’t here you go… start at the beginning an go thru the end

set test to text 1 thru -4 of "MacScripter BBS"
--> "MacScripter "