On 17 Apr '08, at 9:08 AM, Praveen Kumar wrote:
I created a sample cocoa+webkit application and added apple
scriptability. I execute the script on this application from script
editor. The application opened the given url successfully, but i
can't able to quit the application from the dock
I used that one Jean-Daniel Dupas specified.
-[NSWorkspace
openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers
:];
where i gave nil for last two arguments.
I created a sample cocoa+webkit application and added apple
scriptability. I execute the script
You can use -[NSWorkspace
openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers
:];
Le 17 avr. 08 à 09:24, Praveen Kumar a écrit :
NSWorkspace launch the application but loads the url in the default
browser.
What i have to do to make the url open in th
NSWorkspace launch the application but loads the url in the default
browser.
What i have to do to make the url open in the my application (webkit
+cocoa).
Please give me the suggestions.
On 16-Apr-08, at 8:26 PM, Mike Abdullah wrote:
If it is absolutely necessary to use NSTask for launchin
If it is absolutely necessary to use NSTask for launching the app, you
can also use the "open" command which honours the one instance per-app
rule properly. However, I agree that NSWorkspace is the best thing to
use in most cases.
Mike.
On 16 Apr 2008, at 15:43, Jens Alfke wrote:
On 16
On 16 Apr '08, at 5:16 AM, Praveen Kumar wrote:
Instead of AppleScript, I tend to use NSTask to launch the
application, but it won't use the active application instead it
opens another one and do the stuff.
Launching GUI apps via low-level Unix system calls (as NSTask does)
can be probl