Re: Transliteration, TextCommands osax
Re: Transliteration, TextCommands osax
- Subject: Re: Transliteration, TextCommands osax
- From: Sander Tekelenburg <email@hidden>
- Date: Fri, 21 Nov 2008 00:58:34 +0100
At 01:08 -0800 UTC, on 2008-11-20, Paul Berkowitz wrote:
> TextCommands is not an osax, it's an app.
Doh...! Thanks, Paul. I complained missed that.
I still don't understand something essential though: after TextCommands'
conversion, how do you write the result to a file without undoing the
transliteration? You still need to write to file as macroman, as «class
utf8», etc. So out goes the windows encoding...
-- test:
set theFile to choose file
set input to read theFile
tell application "TextCommands"
set throughput to convert to unicode input from "mac_roman"
set output to convert from unicode throughput to "WINDOWS-1252"
end tell
set fileRef to open for access theFile with write permission
write output to fileRef
close access fileRef
Opening the resulting file in TextWrangler, it claims it is Mac Roman. (Same
when I ask TextCommands to convert to "latin_1", as per its documentation.)
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
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