Re: Text Manipulation
Re: Text Manipulation
- Subject: Re: Text Manipulation
- From: Lachlan Deck <email@hidden>
- Date: Fri, 10 May 2002 10:21:22 +1000
Hi there,
From: Robert Stretch <email@hidden>
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 "-"?
Set AppleScript's text item delimiters to "-"
set aList to every item in theString
display dialog "this is the one I want..." & ,
(item 2 of aList)
set AppleScript's text item delimiters to ""
...
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
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.