building an AppleScript editor app

2014-12-07 Thread sqwarqDev
Apologies for cross-posting, but I suspect there could be experts on both sides of the divide that may be able to help me. As the title suggests, I'm building an AppleScript editor (Objective-C, not Swift). I've got reasonably far replicating the abilities of the in-built Script editor and ha

Re: building an AppleScript editor app

2014-12-07 Thread Ken Thomases
On Dec 7, 2014, at 3:46 AM, sqwarqDev <2551p...@gmail.com> wrote: > As the title suggests, I'm building an AppleScript editor (Objective-C, not > Swift). I've got reasonably far replicating the abilities of the in-built > Script editor and have even added a few bells and whistles. However, I'm

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
Ken, many thanks for taking the time to respond. Yes, I'm very familiar with OSAKit framework, but only in the sense that the more I look at it the more infuriating it becomes... > What you've shown above is just the description string of the > NSAppleEventDescriptor. It's not its native cont

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
> On 7 Dec 2014, at 18:59, sqwarqDev <2551p...@gmail.com> wrote: >>> AEDescriptor is: >>> >> 'want':'cfol', 'seld':'utxt'("Fusion:Users:sphil:Desktop:"), ..., > >> What you've shown above is just the description string of the >> NSAppleEventDescriptor. It's not its native content. > > Ac

Re: building an AppleScript editor app

2014-12-07 Thread has
sqwarqDev wrote: > As the title suggests, I'm building an AppleScript editor (Objective-C, not Swift). I've got reasonably far replicating the abilities of the in-built Script editor and have even added a few bells and whistles. However, I'm stuck, conceptually, on one particular hump. IMO y

Re: building an AppleScript editor app

2014-12-07 Thread sqwarqDev
> IMO you're almost certainly wasting your time. I've been told this since I first mentioned it over a year and a half ago. I'm not a professional developer, it's a hobby. Wasting my time on this is no worse than watching re-runs of "Kung Fu" and sure beats suffering on the sofa watching Leeds

Opening an Embedded Application in Terminal

2014-12-07 Thread SevenBits
Hi there everyone, I have a sandboxed app destined for the Mac App Store. Inside of it is an embedded console program which I want to open in Terminal (i.e Terminal.app opens and the app runs in its window). Here’s what I’m doing: NSString *interactiveExecutablePath = [[[NSBundle mainBundle] bu

Re: Opening an Embedded Application in Terminal

2014-12-07 Thread Ken Thomases
On Dec 7, 2014, at 2:29 PM, SevenBits wrote: > I have a sandboxed app destined for the Mac App Store. Inside of it is an > embedded console program which I want to open in Terminal (i.e Terminal.app > opens and the app runs in its window). Here’s what I’m doing: > > NSString *interactiveExecut

Re: building an AppleScript editor app

2014-12-07 Thread has
sqwarqDev wrote: > it's a hobby. "The Aristocrats!" > Wasting my time on this is no worse than watching re-runs of "Kung Fu" and sure beats suffering on the sofa watching Leeds United getting hammered again... :( (Bradford City FTW) >> Or you use OSAScript, which has a very stupid metho

Re: Opening an Embedded Application in Terminal

2014-12-07 Thread SevenBits
> On Dec 7, 2014, at 4:03 PM, Ken Thomases wrote: > > On Dec 7, 2014, at 2:29 PM, SevenBits wrote: > >> I have a sandboxed app destined for the Mac App Store. Inside of it is an >> embedded console program which I want to open in Terminal (i.e Terminal.app >> opens and the app runs in its wi

Re: Opening an Embedded Application in Terminal

2014-12-07 Thread Keary Suska
On Dec 7, 2014, at 1:35 PM, SevenBits wrote: >> >> I don't know if this approach is more likely to work in a sandboxed app. I >> doubt it, because it would be an enormous hole in the sandbox. If you can >> direct Terminal to run arbitrary commands, what protection does the sandbox >> provid

Re: Opening an Embedded Application in Terminal

2014-12-07 Thread Ken Thomases
On Dec 7, 2014, at 5:35 PM, SevenBits wrote: > On Dec 7, 2014, at 4:03 PM, Ken Thomases wrote: >> >> Second, even using Launch Services isn't the best way to do this (sandbox >> issues aside). It's better to run the equivalent of this AppleScript script: >> >> tell app "Terminal" >> activa

Re: [SOLVED] building an AppleScript editor app

2014-12-07 Thread 2551
> > -[OSAScript executeAndReturnDisplayValue:error:] Bingo! THAT's what I was looking for! In my current project (I have several derivatives of the editor I'm building, which is another thing that keeps me playing with it), I'd switched to NSAppleScript and forgotten that OSAScript has one o

Using AV Foundation to record m3u8 stream to disk

2014-12-07 Thread Graham Cox
The title says it all really: is it possble to use AV Foundation to record a m3u8 stream to a movie file (optionally transcoded). I have set up a simple exploratory app and I can get it to play a m3u8 stream in a view fine, but when I add a AVAssetExportSession, (allowing for the asynchronous lo