Re: Saving a TextEdit document using AS
Re: Saving a TextEdit document using AS
- Subject: Re: Saving a TextEdit document using AS
- From: Tom Robinson <email@hidden>
- Date: Sun, 17 Jul 2005 11:58:21 +1200
On 2005-07-13, at 16:46 , Kumar Shailove wrote:
I am typing characters of different languages in a TextEdit document,
and then saving using AppleScript.
tell application "TextEdit"
save document 1 in <filepath>
end tell
I suspect when you save manually you're using a format which supports
different languages, such as Unicode UTF-8 or Unicode UTF-16;
conversely, when saving using AppleScript you're only using a basic
script such as MacRoman.
TextWrangler can tell you what format the document's saved in, as
will hex dumping the first few bytes of the file.
As to how to script it, there doesn't seem to be anything in the
dictionary.
If you're only writing plain text, you could do it straight from
AppleScript...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden