• 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: Separating Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: [ANN] November BAUG Meeting Announcement
  • Next by Date: Re: Separating Text
  • Previous by thread: Re: Separating Text
  • Next by thread: Re: Separating Text
  • Index(es):
    • Date
    • Thread