Re: Problem with 'launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:'???

2009-04-28 Thread Laurent Daudelin
Ken. When not providing the descriptor, it would launch the app and print the untitled document that was automatically opened. Tried it with Comic Life and Microsoft Word, among others. Of course, I'm running 10.5.6 here. With FSRef-based AE descriptor, it opens the right document. I

Re: Problem with 'launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:'???

2009-04-27 Thread Laurent Daudelin
Ken, That did work but I found that I had to keep providing the descriptor for some reason. Are you using a different API fro the Launch Services? My only other problem now is switching the default printer to a specific one and switching back to the original default. lpoptions seemed

Problem with 'launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:'???

2009-04-23 Thread Laurent Daudelin
I'm trying to use this NSWorkspace method to launch an application and print a document. I provide it with a FSRef-based NSAppleEventDescriptor but the only thing the workspace does is launching the app. Here is part of the code: NSURL *documentURL = [[[NSURL alloc]

Re: Problem with 'launchAppWithBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:'???

2009-04-23 Thread Ken Thomases
On Apr 23, 2009, at 7:50 PM, Laurent Daudelin wrote: I'm trying to use this NSWorkspace method to launch an application and print a document. I provide it with a FSRef-based NSAppleEventDescriptor but the only thing the workspace does is launching the app. Here is part of the code: NSURL