Find and Replace Text
Find and Replace Text
- Subject: Find and Replace Text
- From: "Eric Phillips" <email@hidden>
- Date: Wed, 24 Apr 2002 12:44:06 -0400
I have almost no experience in AppleScript doing string manipulations. I have done very rudimentary string manipulations when changing some file paths. Any help in how to wade through a text file to do find and replace would be greatly appreciated.
I have some text that I used OCR to get an electronic version. I want to get it into excel but it needs modification to get it into the correct columns. The text itself can have commas between words, I would like to keep that format intact. What I want to change is when there is a 'Word,SpaceNumber'. I would like the number in the next cell so I would like to change the ',Space' to a 'Tab'. If I import the file as comma delimited then where the words are separated by commas gets all messed up. My knowledge of using AppleScript to do all that string manipulation is quite limited. I was thinking about using something like MS Word and script it to do find and replace. If I do it this way is there a way of searching for ', space number' no matter what the number is and have it replace with 'tab number' or do I need to have nine find and replace statements to handle each different integer, nothing will have a leading 0? I would prefer to do this in AppleScript so that I don't have to open another application and I can learn more AppleScript. If someone has any suggestions on how to get started doing this in AppleScript I would appreciate the help.
Eric
_______________________________________________
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.