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: Axel Luttgens <email@hidden>
- Date: Wed, 09 May 2012 23:18:39 +0200
Le 9 mai 2012 à 19:03, theDaniel a écrit :
> 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.
Hello Daniel,
Please don't feel guilty. :-)
The first proposals, as of Shane or Michelle, were perfectly suitable.
Unless... unless your service needs to perform the test (is the third word a valid number?) many, many times per second and consume most of the service's computing duty, in which case optimizations such as the ones suggested by Nigel and Emmanuel may of course prove extremely useful.
Now, it seems that I didn't receive a lot of messages those days [1], so that I possibly missed the gist of your problem...
Axel
[1] Am I the only one? In which case I would have to check with my ISP...
_______________________________________________
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