Re: Parsing out words in email subject
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