Text Manipulation
Text Manipulation
- Subject: Text Manipulation
- From: Robert Stretch <email@hidden>
- Date: Thu, 9 May 2002 20:31:45 +1000
Hi there,
I've got a small problem with text manipulation. I have a text file
which i am reading via:
do shell script "cat <path to text file>"
set thestring to the result
The following is just a small section of the text file inside the
variable thestring:
"%sf -something.rsrc
-/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HiToolbox.
framework/Versions/A/Resources/Extras.rsrc"
without the quotes and all on the same line if Mail cuts it up.
I found the text item number that "Extras.rsrc" begins with using the
offset command (I need this to find out which paragraph the rest of this
is in), but how do I find out comes between the first "-" and the
second "-"? I was thinking of using a loop which worked systematically
backwards through each text item until it finds one with "-" in it, but
i'm unsure of the syntax. If anybody can help it would be greatly
appreciated!
Best Wishes
Robert Stretch - Webmaster of AquaWorld
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.