logo       

Re: passing a url to a helper application: msg#00117

python.apple

Subject: Re: passing a url to a helper application

On May 20, 2004, at 1:30 PM, Daniel Greenblatt wrote:

I was able to succesfully write a helper application in Python,
(mostly from people's help on this list!!)
by making it listen for AppleEvents, specifically for the 'odoc' event

Does anyone know if it is at all possible to determine the URL that a file came from (if it came from the browser, and was passed off to LaunchServices)??

I know on UNIX-y platforms, you can slip a '%u' into the
mailcap entry that describes the helper application, but I'm
not sure if there is any notion of this via the LaunchServices API...

try implementing GURL instead of odoc:
http://developer.apple.com/documentation/Carbon/Reference/ LaunchServicesReference/LSRReference/function_group_2.html

-bob

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise