<?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 select (but not open) file in a directory? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609705#M81076</link>
    <description>&lt;P&gt;&amp;nbsp;Thanks Jed. I have looked at this one, but it does not select the file on the drive. It suggests to open it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex19_0-1678306017598.png" style="width: 559px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50870i8E968EE5BD16E36E/image-dimensions/559x343?v=v2" width="559" height="343" role="button" title="Alex19_0-1678306017598.png" alt="Alex19_0-1678306017598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I generally want is to sort out a large set of files based on their properties. For example:&lt;/P&gt;&lt;P&gt;1. From JMP table select files 2 and 4,&lt;/P&gt;&lt;P&gt;2. Run the script to select only files 2 and 4;&lt;/P&gt;&lt;P&gt;3. Move those files in a different directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is another way?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 20:08:54 GMT</pubDate>
    <dc:creator>Alex19</dc:creator>
    <dc:date>2023-03-08T20:08:54Z</dc:date>
    <item>
      <title>How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609680#M81074</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to select a specific file in a directory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex19_0-1678302880241.png" style="width: 1087px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50868i906F0FACE3568188/image-dimensions/1087x167?v=v2" width="1087" height="167" role="button" title="Alex19_0-1678302880241.png" alt="Alex19_0-1678302880241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is probably a huge code, but I don't even know how to start. Does anybody know the command how to SELECT (but not open) a specific file? If someone can provide more code - it would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:30:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609680#M81074</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2023-06-08T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609688#M81075</link>
      <description>&lt;P&gt;I think Pick File () is what you're looking for.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1678304440674.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50869i4DC7B18B36849FFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1678304440674.png" alt="Jed_Campbell_0-1678304440674.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 19:40:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609688#M81075</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-03-08T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609705#M81076</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks Jed. I have looked at this one, but it does not select the file on the drive. It suggests to open it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex19_0-1678306017598.png" style="width: 559px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50870i8E968EE5BD16E36E/image-dimensions/559x343?v=v2" width="559" height="343" role="button" title="Alex19_0-1678306017598.png" alt="Alex19_0-1678306017598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I generally want is to sort out a large set of files based on their properties. For example:&lt;/P&gt;&lt;P&gt;1. From JMP table select files 2 and 4,&lt;/P&gt;&lt;P&gt;2. Run the script to select only files 2 and 4;&lt;/P&gt;&lt;P&gt;3. Move those files in a different directory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is another way?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:08:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609705#M81076</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2023-03-08T20:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609721#M81078</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19795"&gt;@Alex19&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain what you mean by select?&amp;nbsp; Using Pick File(), as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;suggests, but save the resulting path to a variable, you can call upon it on other areas of your script. Below is an example.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mypath = Pick File( "Select a file", "$Desktop" );

show( mypath );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Have you investigated Move File()?&amp;nbsp; Together with Pick File(), you will be able to accomplish what you've outlined.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StarfruitBob_0-1678307691529.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50871iDB8C3107276C351A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StarfruitBob_0-1678307691529.png" alt="StarfruitBob_0-1678307691529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:34:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609721#M81078</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-08T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609726#M81079</link>
      <description>&lt;P&gt;There's also the List Files in Directory function that can be useful.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;lstFiles = Files In Directory ("$DESKTOP/");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Scripting Index has a bunch of file-related functions. To see them all, Select "File" in the left&amp;nbsp;pane:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1678307860003.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50872i25F0E9B68C8A5D19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1678307860003.png" alt="Jed_Campbell_0-1678307860003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:37:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609726#M81079</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-03-08T20:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to select (but not open) file in a directory?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609751#M81081</link>
      <description>&lt;P&gt;Yes, I'm actually working on Move File now. I think I'll create a string to move all the selected files. It should work. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:58:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-select-but-not-open-file-in-a-directory/m-p/609751#M81081</guid>
      <dc:creator>Alex19</dc:creator>
      <dc:date>2023-03-08T20:58:13Z</dc:date>
    </item>
  </channel>
</rss>

