• 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: "Marc K. Myers" <email@hidden>
  • Date: Tue, 20 Nov 2001 08:45:08 -0500
  • Organization: [very little]

> Date: Sun, 18 Nov 2001 17:55:33 -0700
> To: email@hidden
> From: JRyan <email@hidden>
> Subject: Separating Text
>
> Thanks to everyone who aided me with my GraphicConverter problem. It
> works nicely now!
>
> My next step is to set the IPTC keywords (in GC), to words also from
> the file's Finder Info...
>
> 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.. I think I can do this
> by writing the comment to a file and then reading the file with the
> 'until' and 'from' parameters, but is there a way I can do this and
> have the script stay self contained?

You can use the "offset" command, which is part of Standard Additions:

set theText to "If you can't say something nice, don't say anything at all!"
set x to the offset of "," in theText
set newText to (text 1 thru (x - 1) of theText) as text
-->"If you can't say something nice"

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[11/20/01 8:44:46 AM]


  • Prev by Date: Re: Appleworks 5: Make new object at ???
  • Next by Date: Re: 'application' in OS X
  • Previous by thread: Re: Separating Text
  • Next by thread: Counting Multiple files??
  • Index(es):
    • Date
    • Thread