Re: Creating/saving/appending to files the Cocoa way
Re: Creating/saving/appending to files the Cocoa way
- Subject: Re: Creating/saving/appending to files the Cocoa way
- From: Shane Stanley <email@hidden>
- Date: Mon, 18 Jan 2010 09:07:21 +1100
- Thread-topic: Creating/saving/appending to files the Cocoa way
I'd be inclined to stick to read/write commands because NSFileHandle
requires making sure your text is an NSString and then encoding it as data
before writing. I haven't done any timings, but I wonder if the extra
AS-Cocoa to-and-fro might actually slow things down.
If you do use read/write, be aware that you have to enclose the commands in
a "tell current application" for them to work.
--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden