Re: launching standard apps with NSTask

2008-06-10 Thread Memo Akten
Ok Thanks, will check it out... Memo (Mehmet S. Akten) www.memo.tv [EMAIL PROTECTED] On 11 Jun 2008, at 01:20, Adam Leonard wrote: LaunchServices or NSWorkspace (which uses LS) is still probably your best option, as NSTask is not really designed to deal with GUI apps. To terminate the ap

Re: launching standard apps with NSTask

2008-06-10 Thread Brett Powley
There are a few ways of using Launch Services to find an application without needing to specify its URL. For example, you can find an application using its bundle ID using: FSRef fsRefApp; OSStatus err = LSFindApplicationForInfo( kLSUnknownCreator, CFSTR("au.com.foo.Bar")

Re: launching standard apps with NSTask

2008-06-10 Thread Adam Leonard
LaunchServices or NSWorkspace (which uses LS) is still probably your best option, as NSTask is not really designed to deal with GUI apps. To terminate the app, you can send a quit apple event or use applescript. This has come up recently, so search the list archives. To detect when the user

Re: launching standard apps with NSTask

2008-06-10 Thread Memo Akten
Hi, that looks great thanks, I've just been looking through the documentation, but I don't think it allows control over terminating the app, or detecting when its closed. I would like to have that level of control (just terminate, and detect if user close it) - which is why I was opting for

Re: launching standard apps with NSTask

2008-06-10 Thread Michael Vannorsdel
[[NSWorkspace sharedWorkspace] launchApplication:@"Safari"]; On Jun 10, 2008, at 4:55 PM, Memo Akten wrote: Hi all, i'm writing an app that launches some default apps like safari, itunes, iphoto etc using NSTask. I was wondering if there is a way of writing the launch url not fully hardcod

Re: launching standard apps with NSTask

2008-06-10 Thread Nick Zitzmann
On Jun 10, 2008, at 4:55 PM, Memo Akten wrote: Hi all, i'm writing an app that launches some default apps like safari, itunes, iphoto etc using NSTask. I was wondering if there is a way of writing the launch url not fully hardcoded but using some system variables / methods etc.? Take a