• 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: Alex Zavatone <email@hidden>
  • Date: Thu, 28 Jan 2010 14:19:50 -0600

On Jan 28, 2010, at 2:09 PM, Steve Mills wrote:

> On Jan 28, 2010, at 14:00:49, email@hidden wrote:
>
>> Got it.
>>
>> Here is the end result.
>>
>> Thanks for the help.
>>
>> Chuck
>>
>> set theWord to first word of theSubject
>> set allButFirst to words 2 thru -1 of theSubject
>> set text item delimiters to space
>
> No, you didn't get it. The last line does nothing for this piece of script. "text item delimiters" is used when getting "text items" or when building strings from "text items". The above script will squish space-delimited words into a single word, e.g. "one two three" will come out "onetwothree". Is that what you really want? Check the other replies - the correct solution was given more than once.

Ya, set the text item delimiters BEFORE you do the set allButFirst.
 _______________________________________________
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: 
 >Re: Parsing out words in email subject (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Applescript book recommendation
  • Next by Date: Re: Parsing out words in email subject
  • Previous by thread: Re: Parsing out words in email subject
  • Next by thread: Re: Parsing out words in email subject
  • Index(es):
    • Date
    • Thread