TextEdit and Unicode
TextEdit and Unicode
- Subject: TextEdit and Unicode
- From: "Wesley Smith" <email@hidden>
- Date: Tue, 17 Feb 2004 22:25:18 -0500
Hi, I've been working on a script to convert HTML to a text file using Safari
and TextEdit. I am able to get the text, but I have come across a tricky
problem. It seem that the text I get from Safari is unicode 16, which is not
at all unexpected. The problem is when I use TextEdit to save the retrieved
text to a file. I always get a message saying that the text in the new
document needs to be saved with a different character set such as unicode 16.
I then have to press OK and go through the save file dialogue.
I haven't been able to do one of 3 things that would solve this problem:
1. change the new document properties so that the message doesn't come up when
I try to save the document
2. detect when the message comes up and take appropriate action
3. change the retrieved text into a suitable format so that the dialogue
doesn't appear
I've also tried changing some of the TextEdit preferences but these had no
effect.
Any suggestions would be greatly appreciated.
thanks,
wes
_______________________________________________
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.