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: has <email@hidden>
- Date: Sun, 17 Jan 2010 20:23:35 +0000
John C. Welch" wrote:
> Okay, so I know how to create/save/append to files via the standard
> Applescript methods. However, I’d like to do it the “Proper” AppleScriptObjC
> way [...] It looks like the quick & dirty way to create a file is to
> useNSFileManager’s createFileAtPath, but that seem to be more for a one time
> dump, whereas I’m looking at a set of writes over time.
Sounds like you want NSOutputStream, but as it deals in raw buffers I suspect it'll be awkward/difficult/impossible to use via ASOC. Standard Additions are the way to go here.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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