Hi Sven I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc. Tx
On 12/20/18 1:59 PM, Stephane Ducasse wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Tx
'http://files.pharo.org/books-pdfs/learning-oop/2018-04-01-LearningOOP.pdf' asZnUrl saveContentsToFile: '/mypath/mydir/learning-oop.pdf' Should get you going. Jimmie
On 21 Dec 2018, at 05:25, Jimmie Houchin <jlhouchin@gmail.com> wrote:
On 12/20/18 1:59 PM, Stephane Ducasse wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Tx
'http://files.pharo.org/books-pdfs/learning-oop/2018-04-01-LearningOOP.pdf' asZnUrl saveContentsToFile: '/mypath/mydir/learning-oop.pdf'
Should get you going.
Jimmie
There is also ZnClient>>#downloadTo: ZnClient new url: ''; downloadTo: ''. Read the comment
Tx This is strange since I looked for download and the system did not show it to me. Stef On Fri, Dec 21, 2018 at 9:55 AM Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 21 Dec 2018, at 05:25, Jimmie Houchin <jlhouchin@gmail.com> wrote:
On 12/20/18 1:59 PM, Stephane Ducasse wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Tx
'http://files.pharo.org/books-pdfs/learning-oop/2018-04-01-LearningOOP.pdf' asZnUrl saveContentsToFile: '/mypath/mydir/learning-oop.pdf'
Should get you going.
Jimmie
There is also ZnClient>>#downloadTo:
ZnClient new url: ''; downloadTo: ''.
Read the comment
On 21 Dec 2018, at 21:55, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Tx This is strange since I looked for download and the system did not show it to me.
Stef
Open Spotter, type 'download', click implementors, look at the end or filter on 'Zn'. The #saveContentsToFile: is used in snippet number 18 of Elegant Pharo Code, https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0 (already from 2014).
On Fri, Dec 21, 2018 at 9:55 AM Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 21 Dec 2018, at 05:25, Jimmie Houchin <jlhouchin@gmail.com> wrote:
On 12/20/18 1:59 PM, Stephane Ducasse wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Tx
'http://files.pharo.org/books-pdfs/learning-oop/2018-04-01-LearningOOP.pdf' asZnUrl saveContentsToFile: '/mypath/mydir/learning-oop.pdf'
Should get you going.
Jimmie
There is also ZnClient>>#downloadTo:
ZnClient new url: ''; downloadTo: ''.
Read the comment
On Thu 20 Dec 2018 at 21:00, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Hi, Here is a snippet with a progress bar if you want to give feedback to the user: https://github.com/Metacello/metacello/blob/master/repository/Metacello-Plat...
Tx
-- Cyril Ferlicot https://ferlicot.fr
participants (4)
-
Cyril Ferlicot -
Jimmie Houchin -
Stephane Ducasse -
Sven Van Caekenberghe