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

Text files


  • Subject: Text files
  • From: "Ruby Madraswala" <email@hidden>
  • Date: Tue, 22 Jul 2003 15:32:16 -0400
  • Thread-topic: Text files

Hi,
I am working on a script having problem with steps 3 & 4. Any help will be appreciated.

1. read File 1- one line at a time, which has a list of terms (number of lines in this file may vary from 1 line to 15 lines).
2. Store each line in a variable (save-word).
3. Locate save-word in file 2, (file 2 has description for terms in file 1. description can be of one paragraph or more)
4. extract paragraph(s) between pipes.
5. write paragraph(s) to a third file.

End of script File 3 should have descriptions for all the terms in File 1.

Example:
File 1
Active Window
Case-sensitive
Clipboard

File 2 (description)
Bitmap - aaaaaaaaaaaaaaaaaa
Aaaaaaaaaaaaaaaaa.
|
Active Window - the last window you clicked on - the one that's currently highlighted..............................

Any keys you press affect this window. ..............................................................................................................................
|
Case sensitive - so on
|

I have used pipes to separate description, any other suggestion I could change that.

Thanks in advance
Ruby
_______________________________________________
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.

  • Prev by Date: Re: Newbie detail
  • Next by Date: Scripting changes to InDesign Master Pages
  • Previous by thread: Re: Watched Folders
  • Next by thread: Re: text Files
  • Index(es):
    • Date
    • Thread