• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parsing out words in email subject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Parsing out words in email subject
      • From: Chuck <email@hidden>
References: 
 >Re: iCal alarm scripts (From: "Nigel Garvey" <email@hidden>)
 >Parsing out words in email subject (From: email@hidden)

  • Prev by Date: Re: A frustrating problem - Grabbing Notes field from iCal event
  • Next by Date: Re: Parsing out words in email subject
  • Previous by thread: Parsing out words in email subject
  • Next by thread: Re: Parsing out words in email subject
  • Index(es):
    • Date
    • Thread