Launching Application upon typing URL
Launching Application upon typing URL
- Subject: Launching Application upon typing URL
- From: David Chan <email@hidden>
- Date: Tue, 7 Feb 2006 15:57:02 +0800
Hi All,
At the moment my application is required to respond to an internet plugin
which, upon user typing in url to a particular type of file (e.g. png file),
the plug in will try to find my applicaton and run this command
LSOpenFromURLSpec(&lsSpec,NULL)
Yes it is launch service, and the plugin isn't written by me. The
application did launch. My question is, what notification did that line of
command send to my application upon launching? How to handle it? I need to
be able to retrieve that lsSpec string it sends. I tried to use
handleAppleEvent for 'oapp' and 'rapp' but it didn't seem to get called.
What happen is the safari seems to keep retrying to process the page, and my
application keep getting relaunched, whereas I want the safari to stop
processing once I get that URL string, and let me hadle the rest. Can
somebody give me some pointers on ths? Thanks a lot.
Regards
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden