[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: Save location via dcop
From: Albert Cervera Areny <albertca () hotpop ! com>
Date: 2007-10-16 20:05:10
Message-ID: 200710162205.10851.albertca () hotpop ! com
[Download RAW message or body]
Try the following:
# dcop konqueror-23117 konqueror-mainwindow#1 currentView
DCOPRef(konqueror-23117,html-widget1-view)
# dcop "DCOPRef(konqueror-23117,html-widget1-view)" part
DCOPRef(konqueror-23117,html-widget1)
# dcop "DCOPRef(konqueror-23117,html-widget1)" saveDocument "/tmp/page.html
So, you need to find the current view, then browse to the part and there you
can find the saveDocument function.
A Dissabte 13 Octubre 2007, Volker Paul va escriure:
> Hi,
>
> I want to use Konqueror for a wget task because
> wget cannot handle Javascript.
> I want to load a page from the Internet.
> The page needs Javascript. The I want to save it.
> All this should happen automatically, in a script using dcop.
>
> I know how to start Konqueror and open the site
> which is rendered correctly including the
> Javascript-generated content.
> However, when I wanted to save the page via dcop,
> I could not find the appropriate command.
> Using
> dcop konqueror-8724 konqueror-mainwindow#1 "actionMap()"
> I found a lot of actions, but nothing like "Save as"
> or "Save location".
> Just for a test, I tried clear_location:
> dcop `dcop konqueror-8724 konqueror-mainwindow#1 action clear_location`
> activate
> and it works as expected, clears the location field.
> Now what I need is something like a save_location.
> Does such an action exist? How can I find it?
> Can I give it a parameter (filename to save)?
>
> I'm using KDE 3.5.5 with Konqueror 3.5.5 from openSUSE 10.2.
> I'm not subscribed to the list.
>
> Volker Paul
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic