Re: Parsing out words in email subject
Re: Parsing out words in email subject
- Subject: Re: Parsing out words in email subject
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 28 Jan 2010 15:43:56 -0800
- Thread-topic: Parsing out words in email subject
I was responding to later posts in this thread.
Going back to the original ...
> My goal is to have a word in the subject that activates a script. That
script will drop the first word and will then consider the rest of the subject
and execute some commands.
So, here's how I would do this:
set theSubject to "one, two. three?"
-->"one, two. three?"
set allButFirst to the rest of the words of theSubject
-->{"two", "three"}
if "three" is in allButFirst then
--do your cool stuff
end if
------
I don't see a reason to recombine the string if you're just using to trigger
something depending on if a word is present.
HTH,
ES
_______________________________________________
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