Detect if third word in string contains a number
Detect if third word in string contains a number
- Subject: Detect if third word in string contains a number
- From: theDaniel <email@hidden>
- Date: Sun, 06 May 2012 22:07:54 -0400
Hi List,
How can I make this work?:
tell application "System Events" to keystroke "c" using command down --copy get the clipboard set _selection to result as text --> I am 12
if word 1 of _selection is "I" and word 3 of _selection contains (number) then
say "contains a number" using "Bruce" else say "contains no numbers" using "Victoria" end if
Thanks for your help, -Daniel |
_______________________________________________
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