Re: Parsing out words in email subject
Re: Parsing out words in email subject
- Subject: Re: Parsing out words in email subject
- From: Eric Saunders <email@hidden>
- Date: Thu, 28 Jan 2010 12:11:26 -0500
set allButFirst to words 2 thru -1 of theSubject
HTH
Eric
On Thu, Jan 28, 2010 at 11:56 AM,
<email@hidden> wrote:
I am trying to parse out the words in an email subject.
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.
I can get first word of the script just fine but rather than get the word I want to eliminate the first word.
Here is an example of an email subject.
"One Two Three"
I want "Two Three" and not "One".
If I use this
set theWord to first word of theSubject
I get "One".
The subject could be One Two Three Four Five and I only want to drop "One"
Any suggestions.
_______________________________________________
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
This electronic message contains information from MeadWestvaco Corporation or
subsidiary companies, which may be confidential, privileged or otherwise protected
from disclosure. The information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that any review, disclosure,
copying, distribution or use of this transmission or its contents is prohibited. If you
have received this transmission in error, please notify MeadWestvaco immediately
at email@hidden.
_______________________________________________
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