Re: Separating Text
Re: Separating Text
- Subject: Re: Separating Text
- From: Michelle Steiner <email@hidden>
- Date: Mon, 19 Nov 2001 09:31:07 -0700
On 11/18/01 5:55 PM, JRyan <email@hidden> wrote:
>
My latest problem is setting my comment variable to only part of the
>
comment text (only up to some special character) and then my keyword
>
variables to the remaining words... I seem to be having difficulty
>
reading and copying only parts of the text..
If it's always the same character, that makes it very easy. Let's assume
that the character is the vertical bar "|" for this example. Let's also
assume that it appears only once in the comments.
tell application "Finder"
set the cmts to the comment of item 1 of the selection
end tell
set {Tid, text item delimiters} to {text item delimiters, "|"}
set part1 to text item 1 of cmts
set keywords to text item 2 of cmts
set text item delimiters to Tid
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------