From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: capture, attach, link files from web Date: Tue, 08 Oct 2013 21:31:44 +0800 Message-ID: <87pprf28jj.fsf@ericabrahamsen.net> References: <87wqlpuwpl.fsf@gmail.com> <87siwdoz33.fsf@ericabrahamsen.net> <87r4bxug24.fsf@gmail.com> <87ob70pmm5.fsf@ericabrahamsen.net> <87r4bw6ozt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTXNG-0004Np-CB for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 09:31:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTXN9-000318-21 for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 09:30:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:42303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTXN8-00030t-Ro for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 09:30:46 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VTXN7-00059u-IK for emacs-orgmode@gnu.org; Tue, 08 Oct 2013 15:30:45 +0200 Received: from 111.199.226.97 ([111.199.226.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Oct 2013 15:30:45 +0200 Received: from eric by 111.199.226.97 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Oct 2013 15:30:45 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Myles English writes: > eric@...net writes: > >>>> I've often thought it would be nice to link to images in an org file >>>> with http: links, then at some arbitrary point in time call a >>>> hypothetical org-localize-external-resources command. That command would >>>> wget all the external resources, put them somewhere local, and switch >>>> the links to the file: type. Just a thought. > > How about a derived export backend with a filter that does a wget and > rewrites the links? > > One problem could be what if a wget fails? As I am finding with my > implementation, some websites only allow browserlike access. That's kind of why I think it would be better as a standalone interactive function, rather than an export preprocessing thingummy. You'd run it first, with timeouts and error messages, etc, and then export when you're done.