On 02/02/2008, why the lucky stiff <[EMAIL PROTECTED]> wrote: See, I didn't have enough os x street sense to know that a > hybrid command-line/GUI wasn't really meant to be.
The closest thing we have is cli tools for apps that really just launch the main application (.app) and, for example, open a file (cf. BBEdit, TextWrangler and TextMate). They don't stay inside the .app bundle, but the main application usually offers to install them to /usr/bin on first launch. Even if we got something like that working, most Mac users (including myself) would prefer to double-click a .rb/.roos script, or drag it into the Shoes application. I've got some code in there for handling .shy drags, so there's a start. Perhaps you've already dealt with this, but both dragging scripts/documents and double-clicking them are dealt with in the same way in OS X. With Carbon/C, you use the kAEOpenDocuments event handler, and with Cocoa it's easier, you just have to implement application:openFile: in the NSApplication delegate. I'm not sure if I want to grab .rb from Ruby. We should probably find > an extension for plain-text Shoes apps... .roos?? > > I do have a pair of orange Roos. > .roos is good, or perhaps .feet/.foot because feet go in shoes? Or am I stretching it too far, or misunderstanding it totally? I'm not familiar with Roos myself, so perhaps I'm biased (perhaps because I'm British---a penalty for being knightable unlike Nicholas Cage?). But nah, I like .roos, I just want to provoke discussion. James
