<?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: MFI from a selectable location in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687841#M87344</link>
    <description>&lt;P&gt;It might be enough if you move Pick Directory() outside &amp;lt;&amp;lt; Set Folder&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

sel_dir = Pick Directory("Select a directory.", "$Desktop");
Multiple File Import(
	&amp;lt;&amp;lt;Set Folder(sel_dir),
	&amp;lt;&amp;lt;Set Subfolders(0),
	&amp;lt;&amp;lt;Set Name Filter("*.meas9206;"),
	&amp;lt;&amp;lt;Set Name Enable(1),
	&amp;lt;&amp;lt;Set Size Enable(0),
	&amp;lt;&amp;lt;Set Date Enable(0),
	&amp;lt;&amp;lt;Set Add File Name Column(1),
	&amp;lt;&amp;lt;Set Add File Size Column(0),
	&amp;lt;&amp;lt;Set Add File Date Column(0),
	&amp;lt;&amp;lt;Set Import Mode("CSVData"),
	&amp;lt;&amp;lt;Set Charset("Vermutete Codierung"),
	&amp;lt;&amp;lt;Set Stack Mode("Stack Similar"),
	&amp;lt;&amp;lt;Set CSV Has Headers(0),
	&amp;lt;&amp;lt;Set CSV Allow Numeric(1),
	&amp;lt;&amp;lt;Set CSV First Header Line(1),
	&amp;lt;&amp;lt;Set CSV Number Of Header Lines(1),
	&amp;lt;&amp;lt;Set CSV First Data Line(25),
	&amp;lt;&amp;lt;Set CSV EOF Other(";"), 

) &amp;lt;&amp;lt; Import Data;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 Oct 2023 05:36:07 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-17T05:36:07Z</dc:date>
    <item>
      <title>MFI from a selectable location</title>
      <link>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687820#M87343</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I'm quite new to the JSL world, or coding in general. With a few simple scripts I would like to spare some recurring work. As in this case, I would like to automate the MFI. To do this, I copied the script below from the MFI dialog and expanded it to include the "Pick Directory" command. My only problem is that the "Select a directory" dialog appears twice every time. After I have selected the storage location 2x, the rest of the script and also the following commands after the MFI works without problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Multiple File Import(
	&amp;lt;&amp;lt;Set Folder( Pick Directory( "Select a directory.", "$Desktop" ) ),
	&amp;lt;&amp;lt;Set Subfolders( 0 ),
	&amp;lt;&amp;lt;Set Name Filter( "*.meas9206;" ),
	&amp;lt;&amp;lt;Set Name Enable( 1 ),
	&amp;lt;&amp;lt;Set Size Enable( 0 ),
	&amp;lt;&amp;lt;Set Date Enable( 0 ),
	&amp;lt;&amp;lt;Set Add File Name Column( 1 ),
	&amp;lt;&amp;lt;Set Add File Size Column( 0 ),
	&amp;lt;&amp;lt;Set Add File Date Column( 0 ),
	&amp;lt;&amp;lt;Set Import Mode( "CSVData" ),
	&amp;lt;&amp;lt;Set Charset( "Vermutete Codierung" ),
	&amp;lt;&amp;lt;Set Stack Mode( "Stack Similar" ),
	&amp;lt;&amp;lt;Set CSV Has Headers( 0 ),
	&amp;lt;&amp;lt;Set CSV Allow Numeric( 1 ),
	&amp;lt;&amp;lt;Set CSV First Header Line( 1 ),
	&amp;lt;&amp;lt;Set CSV Number Of Header Lines( 1 ),
	&amp;lt;&amp;lt;Set CSV First Data Line( 25 ),
	&amp;lt;&amp;lt;Set CSV EOF Other( ";" ), 

) &amp;lt;&amp;lt; Import Data;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 04:55:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687820#M87343</guid>
      <dc:creator>BenBaecker</dc:creator>
      <dc:date>2023-10-17T04:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: MFI from a selectable location</title>
      <link>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687841#M87344</link>
      <description>&lt;P&gt;It might be enough if you move Pick Directory() outside &amp;lt;&amp;lt; Set Folder&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

sel_dir = Pick Directory("Select a directory.", "$Desktop");
Multiple File Import(
	&amp;lt;&amp;lt;Set Folder(sel_dir),
	&amp;lt;&amp;lt;Set Subfolders(0),
	&amp;lt;&amp;lt;Set Name Filter("*.meas9206;"),
	&amp;lt;&amp;lt;Set Name Enable(1),
	&amp;lt;&amp;lt;Set Size Enable(0),
	&amp;lt;&amp;lt;Set Date Enable(0),
	&amp;lt;&amp;lt;Set Add File Name Column(1),
	&amp;lt;&amp;lt;Set Add File Size Column(0),
	&amp;lt;&amp;lt;Set Add File Date Column(0),
	&amp;lt;&amp;lt;Set Import Mode("CSVData"),
	&amp;lt;&amp;lt;Set Charset("Vermutete Codierung"),
	&amp;lt;&amp;lt;Set Stack Mode("Stack Similar"),
	&amp;lt;&amp;lt;Set CSV Has Headers(0),
	&amp;lt;&amp;lt;Set CSV Allow Numeric(1),
	&amp;lt;&amp;lt;Set CSV First Header Line(1),
	&amp;lt;&amp;lt;Set CSV Number Of Header Lines(1),
	&amp;lt;&amp;lt;Set CSV First Data Line(25),
	&amp;lt;&amp;lt;Set CSV EOF Other(";"), 

) &amp;lt;&amp;lt; Import Data;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 05:36:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687841#M87344</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-17T05:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: MFI from a selectable location</title>
      <link>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687851#M87346</link>
      <description>&lt;P&gt;Thanks. i its works for me. I tried some similiar, with "dir"&amp;nbsp;instead of "sel_dir, but that doesent worked well. Maybe i had Synthax Failure.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 07:15:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MFI-from-a-selectable-location/m-p/687851#M87346</guid>
      <dc:creator>BenBaecker</dc:creator>
      <dc:date>2023-10-17T07:15:49Z</dc:date>
    </item>
  </channel>
</rss>

