<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I download images in bulk with JSL and save them with the name of the specified column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/248934#M48868</link>
    <description>&lt;P&gt;Here is a very simple script that I believe will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Create a list of all of the images
imgList = {"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/859de8ee2b9187a0e73d764fd53466e4.jpg",
"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/.........",
"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/........."};

// Read in and write each of the images
For( i = 1, i &amp;lt;= N Items( imgList ), i++,
	img = Open( imgList[i], jpg );
	img &amp;lt;&amp;lt; Save Image( "C:\image" || Char( i ) || ".jpg", jpg );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The Open() and Save Image() functions are Documented with examples in the Scripting Index. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:09:50 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-02-24T15:09:50Z</dc:date>
    <item>
      <title>How do I download images in bulk with JSL and save them with the name of the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/248919#M48865</link>
      <description>&lt;P&gt;For example, download the attached links and save these pictures to the C: directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-02-24_22-23.png" style="width: 800px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21880iC7E58825CE1D4609/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-02-24_22-23.png" alt="2020-02-24_22-23.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:29:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/248919#M48865</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-02-24T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I download images in bulk with JSL and save them with the name of the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/248934#M48868</link>
      <description>&lt;P&gt;Here is a very simple script that I believe will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Create a list of all of the images
imgList = {"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/859de8ee2b9187a0e73d764fd53466e4.jpg",
"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/.........",
"http://data2.readoor.cn/files/3211195850f6ae/pdf/9213745e4f7c7b/3/........."};

// Read in and write each of the images
For( i = 1, i &amp;lt;= N Items( imgList ), i++,
	img = Open( imgList[i], jpg );
	img &amp;lt;&amp;lt; Save Image( "C:\image" || Char( i ) || ".jpg", jpg );
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;The Open() and Save Image() functions are Documented with examples in the Scripting Index. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:09:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/248934#M48868</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-24T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I download images in bulk with JSL and save them with the name of the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/249007#M48895</link>
      <description>&lt;UL&gt;&lt;LI&gt;Thank Jim!&lt;/LI&gt;&lt;LI&gt;&lt;P class="src"&gt;I used to write it this way, but it didn't work.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;request = New HTTP Request(	Url("http://data2.readoor.cn/files/3211195850f6ae/pdf/2977675e4e6cb5/3/f0df50279eeaa6465bfaf4e93525e81a.jpg",jpg),
	Method( "GET" ),
);
img  = request &amp;lt;&amp;lt; Send;
img &amp;lt;&amp;lt; SaveImage( "C:/1.jpg", jpg ); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 08:16:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/249007#M48895</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-02-25T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I download images in bulk with JSL and save them with the name of the specified column?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/249008#M48896</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Current Data Table();
imgList = Column( "url" ) &amp;lt;&amp;lt; get values;
For( i = 1, i &amp;lt;= N Row(dt), i++,
	img = Open( imgList[i], jpg );
	img &amp;lt;&amp;lt; Save Image( "C:\image" || Char( i ) || ".jpg", jpg );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 08:22:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-download-images-in-bulk-with-JSL-and-save-them-with-the/m-p/249008#M48896</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-02-25T08:22:12Z</dc:date>
    </item>
  </channel>
</rss>

