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: Shane Stanley <email@hidden>
- Date: Mon, 07 May 2012 12:12:53 +1000
You try to coerce it to a number:
try
(word -1 of _selection) as number
say "contains a number" using "Bruce"
on error
say "contains no numbers" using "Victoria"
end
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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