Re: Detect if third word in string contains a number
Re: Detect if third word in string contains a number
- Subject: Re: Detect if third word in string contains a number
- From: theDaniel <email@hidden>
- Date: Wed, 09 May 2012 13:03:53 -0400
Please accept my apologies for causing confusion, I'm hoping not to offend folks. The applescript I'm trying to make will be a ".service" (using ThisService) to work with a third party Bible application.
Word one, "I" is roman numeral 1; word two, is a name of one of the books of the Bible that have a "I", "II" or "III" prefix, e.g. "I Samuel", "II Thessalonians", "III John"; word three is a chapter number, the highest of which is 36 in II chronicles. However the longest book (highest number) would be Psalms having 150 but that would be used in a different part of the script.
-Daniel
On May 9, 2012, at 7:49AM, Emmanuel LEVY wrote: I confirm.
We would really need the probability curve of the ages you expect. If, say, your users peak around 115 y.o. I would prefer Nigel's string.
Mine was obtained by a script 20 times longer than Nigel's. The script searches if a different sort - instead of "from 120 to 1 by -1" - makes a better job and the answer is yes, 9 by 9 is better, as you may have guessed already: "... 93847566...". Also my version tests whether you have to strictly do "digits & i" or if appending one digit only out of two (or 2 out of 3) might be enough.
Best, Emmanuel
|
_______________________________________________
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