• 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: "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

References: 
 >Parsing out words in email subject (From: email@hidden)

  • Prev by Date: Re: Parsing out words in email subject
  • Next by Date: Re: Unable to open Word Mac documents in Hidden state
  • Previous by thread: Re: Parsing out words in email subject
  • Next by thread: Select folder, make new folder in same directory...
  • Index(es):
    • Date
    • Thread