<?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 to script a dialog box for multiple file? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39437#M23063</link>
    <description>&lt;P&gt;I would use Pick Directory()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Pick File(
	"Select JMP File",
	"$DOCUMENTS",
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	"newJmpFile.jmp"
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then the Files in Directory()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Files In Directory( "$HOME" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get started with what you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look to the Scripting Index for the examples and definitions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2017 11:57:35 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-05-20T11:57:35Z</dc:date>
    <item>
      <title>How to script a dialog box for multiple file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39432#M23058</link>
      <description>&lt;P&gt;Hi JMP users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a method to select many files, and then point them into different variables.&lt;/P&gt;&lt;P&gt;I don’t think the function &lt;U&gt;Pick File&lt;/U&gt; is suitable because I have to set the variables to the data tables one by one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first thing crossed my mind is file select dialog(like the picture below), I can input the path or select the files from icon.&lt;/P&gt;&lt;P&gt;And point every file to the corresponding variable in script code, no manual selection is needed.&lt;/P&gt;&lt;P&gt;Do you have idea how to make it with JMP script?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dialog.jpg" style="width: 527px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6225i030076F2F1780784/image-size/large?v=v2&amp;amp;px=999" role="button" title="dialog.jpg" alt="dialog.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the supports.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 03:31:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39432#M23058</guid>
      <dc:creator>WHTseng</dc:creator>
      <dc:date>2017-05-20T03:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to script a dialog box for multiple file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39437#M23063</link>
      <description>&lt;P&gt;I would use Pick Directory()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Pick File(
	"Select JMP File",
	"$DOCUMENTS",
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	"newJmpFile.jmp"
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then the Files in Directory()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Files In Directory( "$HOME" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get started with what you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look to the Scripting Index for the examples and definitions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2017 11:57:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39437#M23063</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-05-20T11:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to script a dialog box for multiple file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39542#M23121</link>
      <description>Hi txnelson,&lt;BR /&gt;&lt;BR /&gt;Thank you for the idea.&lt;BR /&gt;Files in Directory() indeed gives me the file list so that I can do further selection among them.</description>
      <pubDate>Tue, 23 May 2017 10:27:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-script-a-dialog-box-for-multiple-file/m-p/39542#M23121</guid>
      <dc:creator>WHTseng</dc:creator>
      <dc:date>2017-05-23T10:27:39Z</dc:date>
    </item>
  </channel>
</rss>

