[Pythonmac-SIG] passing a url to a helper application
Bob Ippolito
bob at redivi.com
Thu May 20 13:44:57 EDT 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040520/fd5bfa84/smime.bin
More information about the Pythonmac-SIG
mailing list