... You could put the word into a variable, place a comma between each letter and then use the sortByItem extension (in the Xtend project) to sort the variable...
... That's too simple, Joe! ;-) Here is a more complex approach. The ruby code to do this is trivial, but you can't run a ruby script with SC's 'get script'...
... IMHO, for such a little thing, you can do a little bubble sort function sortchars str put true into b put len(str)-1 into l repeat while b put false into...
... You have one response; another is at the end of this message. Just put this script on a button. Art Evans ... on mouseUp -- Get the thing to sort. ask...
Arthur Evans Jr
evanssl21@...
Jun 7, 2009 4:04 pm
45063
Would a simple repeat function work for you? function reverseString pStr put "" into tRevStr repeat with i = the num of chars in pStr down to 1 put char i of...
... Unless of course, you first isolate the vowels from the consonants, sort both and put the vowels before the consonants. Getting a little complex! Doug...
Hi Vince, you're over escaping... try: shell(merge("ruby -e 'puts `vincenzo`.scan(/(.)/).sort'|tr -d '\n'")) Ian B ... Ian Bridges IT Manager Planet Ark...
Hi Vince, ... It's removing extra double quotes which SC sees as the end to the quoted string - SC doesn't understand unix style escapes. So instead of a nice...
Hi All: Apple spammed me with a message about the new 3G iphone that has a video camera included in its wiring. Do you think this will attract a slew of new...
I dunno, z. A one-liner in ruby is hard to beat. And by playing around with different ways to run ruby scripts aside from "get shell', I made a relatively...
Ever since SC 4.x introduced us to the shell command, the shell and everything it brings is really now part of the SC toolkit. I know a lot of people choose to...
... Absolutely. I agree entirely with this and the rest of your post. I just thought it worth noting that many people struggle to become fluent in just one...
I had a SuperCard script that matched times in a piece of text which ended up being quite a lot of code. I rebuilt it as a Perl regular expression and it fits...
... Two problems. One - how do I change this is the person who supplied it to me is unavailable. Two - what do I do if Perl gets updated and something breaks....
I am having a strange problem when I read most of the posts prior to this one and try to post a reply, Yahoo keeps telling me that it cannot retrieve the...
Well, if it is a good function it might have some flexibility, various parameters. Think of it as a mini external: most people don't need to go in and rewrite...
... In reverse order... 2) Perl is a very mature well maintained and widely used scripting language. For the kinds of scripts that would mostly be used, it is ...
Perl is astoundingly efficient and fast for things it is good at. It is also *astoundingly* opaque to the uninitiated. This point should not be ignored. Perl...