• 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: "Nigel Garvey" <email@hidden>
  • Date: Fri, 29 Jan 2010 10:24:29 +0000

Thomas Fischer wrote on Fri, 29 Jan 2010 00:49:54 +0100:

>Hi Alex,
>
>Am 29.01.2010 um 00:25 schrieb Alex Zavatone:
>
>> It all depends on you knowing what the text delimiters are set to before
>you try this.
>
>Sorry, yes, you are right.
>Actually, you need
>
>set text item delimiters to space
>
>to make the "as text" in
>
>set allButFirst to words 2 thru -1 of theSubject as text
>
>work right.

With all the posts in this thread so far, I'm puzzled that no-one's
offered the official syntax for this sort of thing, which doesn't
involve the coercion of an intermediate list.

To return all the text from the second "word" of a string (assuming
there are more than one) to the last character:

  set allButFirst to text from word 2 to -1 of theSubject

To return all the text from the second text item (ditto) to the last
character:

  set allButFirst to text from text item 2 to -1 of theSubject


NG

 _______________________________________________
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: Michelle Steiner <email@hidden>
  • Prev by Date: Re: wrong window position
  • Next by Date: Re: URL Access Scripting file size limitations? (Leopard)
  • Previous by thread: Re: Parsing out words in email subject
  • Next by thread: Re: Parsing out words in email subject
  • Index(es):
    • Date
    • Thread