<?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: Fail to save picture in jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617352#M81683</link>
    <description>&lt;P&gt;First note that JMP doesn't mind whether your path specification uses forward or backward slashes.&amp;nbsp; &amp;nbsp;Therefore you are specifying a path that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;D:\Document\Variability\Win_A\FRP_Thickness.jpg&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which fails because Win_A is being interpreted as a folder and not as part of the name of the file.&lt;/P&gt;
&lt;P&gt;Before doing the save you might want to create a friendly file name e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cname = Substitute(colList[i],"\","_");
path = "D:\Document\Variability\"  || cname || ".jpg";
gb &amp;lt;&amp;lt; Save Picture(path,JPEG);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 08:28:36 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2023-03-28T08:28:36Z</dc:date>
    <item>
      <title>Fail to save picture in jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617300#M81679</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to script some codes to save all my plots as pictures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gb &amp;lt;&amp;lt; Save Picture( "D:\Document\Variability\" || colList[i] ||".jpg", JPEG );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I noticed that on those graphs with the header name with "/" in between the name (parameter name like "Win_A/FRP_Thickness"), JMP will prompt an error to tell me that the figures failed to save as pictures in my folder and the whole operation would then be aborted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I seek advice on how should I improve this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:54:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617300#M81679</guid>
      <dc:creator>XiangCD_MP_User</dc:creator>
      <dc:date>2023-06-10T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to save picture in jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617352#M81683</link>
      <description>&lt;P&gt;First note that JMP doesn't mind whether your path specification uses forward or backward slashes.&amp;nbsp; &amp;nbsp;Therefore you are specifying a path that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;D:\Document\Variability\Win_A\FRP_Thickness.jpg&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which fails because Win_A is being interpreted as a folder and not as part of the name of the file.&lt;/P&gt;
&lt;P&gt;Before doing the save you might want to create a friendly file name e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cname = Substitute(colList[i],"\","_");
path = "D:\Document\Variability\"  || cname || ".jpg";
gb &amp;lt;&amp;lt; Save Picture(path,JPEG);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 08:28:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617352#M81683</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2023-03-28T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fail to save picture in jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617518#M81701</link>
      <description>&lt;P&gt;Couldn't agree more ! Thanks for the suggestion, David&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:35:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fail-to-save-picture-in-jsl/m-p/617518#M81701</guid>
      <dc:creator>XiangCD_MP_User</dc:creator>
      <dc:date>2023-03-28T14:35:48Z</dc:date>
    </item>
  </channel>
</rss>

