Re: Editing custom dictionary
Re: Editing custom dictionary
- Subject: Re: Editing custom dictionary
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 15 May 2008 10:32:11 -0700
- Thread-topic: Editing custom dictionary
>>>a -- one which I already described here: at least when run under 10.4.11,
when System Events is called to delete an existing file, the file is not deleted
so the make new file coming just after fails.
Rather than deleting the file and making a new one, try something like this
(untested):
Set dicFile to open for access with write permission myFile
Set EOF of dicFile to 1
Write newDate to dicFile
Close access dicFile
>>>>b -- In the custom dico, non-ascii chars are stored as two bytes UNICODE
chars.
I would read the file into BBEdit and save it from, rather than use
AppleScript's read/write commands. If you don't have BBEdit, you may
experiment with other apps.
As Chris has said, the read command is designed to read files created by the
write command, and may not work with other files.
HTH,
ES
_______________________________________________
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