applescript to create multiple text files from delimited sections of one original text file?
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