• 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
Re: Transliteration, TextCommands osax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Transliteration, TextCommands osax
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Transliteration, TextCommands osax (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Transliteration, TextCommands osax
  • Next by Date: Re: Transliteration, TextCommands osax
  • Previous by thread: Re: Transliteration, TextCommands osax
  • Next by thread: Re: Transliteration, TextCommands osax
  • Index(es):
    • Date
    • Thread