On Sep 1, 2011, at 2:20 AM, John Delacour wrote:

> At 17:05 -0700 31/08/2011, JT wrote:
> 
>> ...I have 30 language files that I automate graphics production and the
>> text files are identical except each one calls a new file in the path.
>> For example,
>> 
>> file://KR.tif
>> 
>> and I need to change the 'KR' to AU, GB, DK and so on and save each
>> find and replace as a new text file. Can this be done with BBEdit? Is
>> this something else other than what BBEdit was designed for?
> 
> It sounds like something that could be done very easily with BBEdit but until 
> you describe the problem in clear English and say just what it is you want to 
> save, I doubt if anyone will be able to help.
> 
> JD

Seems clear to me. The template file has "some text." JT wants to create new 
files, replacing "some text" for each of the new files.

I don't see (immediately) how it might be done with a search and replace or 
factory. If it were a web page, I would use PHP and assign the "some text" 
language designator to a variable. A base file would set the variable so each 
reader would get the language of choice.

A small program in perl could do much the same thing for a static file by 
repeatedly opening the template file, filling in the variable from an array and 
writing the file back out to a new file.

Bucky

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to