From kfm-devel Tue Oct 16 20:05:10 2007 From: Albert Cervera Areny Date: Tue, 16 Oct 2007 20:05:10 +0000 To: kfm-devel Subject: Re: Save location via dcop Message-Id: <200710162205.10851.albertca () hotpop ! com> X-MARC-Message: https://marc.info/?l=kfm-devel&m=119256512211035 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