• 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
applescript to create multiple text files from delimited sections of one original text file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript to create multiple text files from delimited sections of one original text file?


  • Subject: applescript to create multiple text files from delimited sections of one original text file?
  • From: Erik Mikysa <email@hidden>
  • Date: Sun, 8 Apr 2007 16:13:48 -0500

Hello,

I would like to figure out how I can take one text file (the output of a data merge) and automatically process it into multiple files, each containing the appropriate delimited content. For instance, if the main original text file had the following content:

[break-into-file-with-name:2007-04-05-smith-john.txt]
contents of first file filler text here abc
[break-into-file-with-name:2007-04-05-jones-bill.txt]
contents of second file more filler text xyx
[break-into-file-with-name:2007-04-12-smathers-donna.txt]
contents of third file ...
[break-into-file-with-name:2007-04-12-jeremiah-ronald.txt]
contents of nth file ...

then the post scripting result would be four separate files:

2007-04-05-smith-john.txt
2007-04-05-jones-bill.txt
2007-04-12-smathers-donna.txt
2007-04-12-jeremiah-ronald.txt

the sole contents of 2007-04-05-smith-john.txt would be "contents of first file filler text here abc", to sole contents of 2007-04-05- jones-bill.txt would be "contents of second file more filler text xyx", etc.

Unfortunately I cannot create this script myself, as I'm a newbie. I would really appreciate any help you can provide.

Thank you,
Erik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: applescript to create multiple text files from delimited sections of one original text file?
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: TUAW Script Fails
  • Next by Date: Re: applescript to create multiple text files from delimited sections of one original text file?
  • Previous by thread: Re: rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
  • Next by thread: Re: applescript to create multiple text files from delimited sections of one original text file?
  • Index(es):
    • Date
    • Thread