osdir.com
mailing list archive

Subject: Re: Auto-launch installer after download dmg - msg#00037

List: os.opendarwin.webkit.devel

Date: Prev Next Index Thread: Prev Next Index

On Dec 10, 2007, at 2:07 AM, Bill Patterson wrote:

I've got a installer on a dmg, that when downloaded by Safari 3.04, automatically mounts the dmg and launches the installer.

I'd like to reproduce this in my WebKit based application. Are there functions that do this?

Hey Bill. You probably want to investigate the /usr/bin/hdiutil command line utility which can attach, mount, and verify disk images. I also recommend looking into the NSWorkspace API, specifically the - [NSWorkspace openFile: withApplication:] method which you'll find very useful for kicking off the Installer.

Good luck!
Kevin


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: XML Events in WebKit

Maciej,I am working on Linux+GTK. I think i got some clues from your mail as to how i can do this. thanks.rajOn Dec 9, 2007 3:09 PM, Maciej Stachowiak < mjs@xxxxxxxxx> wrote:On Dec 7, 2007, at 7:02 PM, Raj Kiran Talusani wrote: > Guys,>> thanks very much for all the comments. let me be more specific about> my problem.>> i want to add multimodal capabilities to the webkit. I want to> trigger (or communicate with) an external app based on events > happening in the xhtml document. Also i want to insert custom events> into the XHTML context based on results from the external process.> Is there any way i can do this with current version of webkit. any > pointers on what needs to be done?Are you working with the Mac OS X WebKit API? If so, you can use theObjective-C DOM API to attach native event listeners, and to injectcustom events. Alternately, you can use the Objective-C _javascript_ bindings to export a custom native object to _javascript_, and call thatfrom event listeners defined in script or using onxxx handlers. Youcould also use the _javascript_ bindings to call _javascript_ functionsthat dispatch custom events. Which way works better will depend on the details of your application.Regards,Maciej _______________________________________________ webkit-dev mailing list webkit-dev@xxxxxxxxxxxxxxxx http://lists.webkit.org/mailman/listinfo/webkit-dev

Next Message by Date: click to view message preview

Re: Auto-launch installer after download dmg

You may want to look especially at the "internet-enable" option, which provides some of the magic you're describing.-RobOn Dec 10, 2007 5:11 PM, Kevin Decker < kdecker@xxxxxxxxx> wrote:On Dec 10, 2007, at 2:07 AM, Bill Patterson wrote: > I've got a installer on a dmg, that when downloaded by Safari 3.04,> automatically mounts the dmg and launches the installer.>> I'd like to reproduce this in my WebKit based application.  Are > there functions that do this?Hey Bill.  You probably want to investigate the /usr/bin/hdiutilcommand line utility which can attach, mount, and verify disk images.I also recommend looking into the NSWorkspace API, specifically the - [NSWorkspace openFile: withApplication:] method which you'll find veryuseful for kicking off the Installer.Good luck!Kevin_______________________________________________ webkit-dev mailing listwebkit-dev@xxxxxxxxxxxxxxxxhttp://lists.webkit.org/mailman/listinfo/webkit-dev _______________________________________________ webkit-dev mailing list webkit-dev@xxxxxxxxxxxxxxxx http://lists.webkit.org/mailman/listinfo/webkit-dev

Previous Message by Thread: click to view message preview

Auto-launch installer after download dmg

I've got a installer on a dmg, that when downloaded by Safari 3.04, automatically mounts the dmg and launches the installer. I'd like to reproduce this in my WebKit based application. Are there functions that do this? I haven't specified anything on the dmg to select the installer, so I'm assuming the OS is detecting there is one installer and running it? I'd like to understand this mechanism better. Are there docs out there for this? Thanks, Bill Patterson

Next Message by Thread: click to view message preview

Re: Auto-launch installer after download dmg

You may want to look especially at the "internet-enable" option, which provides some of the magic you're describing.-RobOn Dec 10, 2007 5:11 PM, Kevin Decker < kdecker@xxxxxxxxx> wrote:On Dec 10, 2007, at 2:07 AM, Bill Patterson wrote: > I've got a installer on a dmg, that when downloaded by Safari 3.04,> automatically mounts the dmg and launches the installer.>> I'd like to reproduce this in my WebKit based application.  Are > there functions that do this?Hey Bill.  You probably want to investigate the /usr/bin/hdiutilcommand line utility which can attach, mount, and verify disk images.I also recommend looking into the NSWorkspace API, specifically the - [NSWorkspace openFile: withApplication:] method which you'll find veryuseful for kicking off the Installer.Good luck!Kevin_______________________________________________ webkit-dev mailing listwebkit-dev@xxxxxxxxxxxxxxxxhttp://lists.webkit.org/mailman/listinfo/webkit-dev _______________________________________________ webkit-dev mailing list webkit-dev@xxxxxxxxxxxxxxxx http://lists.webkit.org/mailman/listinfo/webkit-dev
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by