Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
Reverse Words

Reverse Words

Submitted By Takumi Murayama (zaudragon)


This will reverse the words in the {}'s like this:
/rw{Hello this is zaudragon!} --> olleH siht si !nogarduaz

Hope you like it!

BTW I used the code of "Reverse Words" which is on


You can reply to individual comments by clicking the "Reply" link next to each.

# by on 01/17/05 at 09:16:01

I have a script similar to this in my random display name generator. I think your code is considerably better AppleScript, but mine is 1337er, and runs faster cos of my fully-sic swapping algorithm (or not fully-sic as the case may be)! hehe... One thing that confuses me though, why do you only reverse the chars in each word? I reversed the whole sentence.

# by zaudragon on 01/17/05 at 22:00:59

It's the original script that did that, and look at the name of the script. "Reverse Words" reverses the words, not the sentence!

# by on 01/23/05 at 04:04:08

ooh this is awesome! i love it :D

# by Anonymous on 02/01/05 at 22:58:53

You know what would be nice? A script that leaves the first and last letters of the word alone, and randomly rearranges the middle letters.

# by meng_geulis on 02/08/07 at 03:07:23

ooh i looove it!!!

# by GoldenDragon on 10/05/08 at 17:31:52

Mm...I have a similar script, except it reverses the whole text, not only the words. I'm just wondering, why it won't return anything if I pass a string that has some non-ascii characters in it, like , . It works fine if the string contains only ascii characters. Snip: return do shell script "python -c "print unicode('''" & theText & "''', 'utf-8')[::-1]""
Oh, and on the Terminal, it works just fine with any characters.
/reverse{ASCII-compatible string} -> works
/reverse{Some non-ASCII compatible text, } -> does not work

# by GoldenDragon on 10/05/08 at 17:33:14

In the file this snippet is escaped correctly

Post a New Comment

You must be logged in to post comments.

Install | Download
6.45kb (2746 downloads)

3.70 / 77 votes
Current Version: 1.0
Last Updated: 12/22/04
freakman, for finding the original script and helping with testing, and for the original script itself ;)