Scripting TextEdit
Scripting TextEdit
- Subject: Scripting TextEdit
- From: Alexandre Morin <email@hidden>
- Date: Thu, 15 Jul 2004 09:45:28 -0400
Hello all ! First time here. I9ll describe my goal and what I9ve tried
so far. Sorry for the length !
I9m trying to script changes to a Localizable.strings file to allow us
to get Panther to give us the proper default paper size and video format. Us
french speaking North-Americans use 3na-letter2 paper and NTSC video like
everyone else in NA. But if we install Panther in french, we get 3iso-a42
paper size by default for all new users, as well as PAL video for iMovie and
iDVD. Ouch, not good.
So I need to be able to change a few strings in the Localized.strings
and similar files to customize 3french.lproj2 (the localization files) until
Apple reacts and put out a 3fr_CA.lproj2 much like the existing
3en_GB.lproj2 and so forth.
I was thinking of doing a shell script, but discovered that the file is
formatted in UTF-16. Problem : vi, emacs, awk and pico are not able to read
such files. I need something silent !
So on to TextEdit : how do I get it to find 3iso-a42 in the file and
replace it with 3na-letter2 ? In the background is possible...
This may sound noob to you, but then again I don9t code much
currently... :(
Thanks for your time,
Alex
_______________________________________________
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.