<?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: On Mac Big Sur JSL seems to detect a file indicating deletion of one or more files in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536735#M75864</link>
    <description>&lt;P&gt;Sounds like a bug, perhaps in JMP. As a workaround, untested code (no Mac here):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = {"a", "b", "", "c"};
Show( x );
y = Filter Each( {filename}, x, filename != "" );
Show( y );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;x = {"a", "b", "", "c"};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;y = {"a", "b", "c"};&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 22:51:14 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2022-08-23T22:51:14Z</dc:date>
    <item>
      <title>On Mac Big Sur JSL seems to detect a file indicating deletion of one or more files</title>
      <link>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536599#M75857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm puzzled by the detection of deleted files by JSL (JMP 16.0.0 on a Mac Big Sur 11.6.8). &amp;nbsp;I created a folder containing 8 files and ran the following script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

TargetDir = Pick Directory();
TargetFiles = Files In Directory( TargetDir );

N_TargetFiles = N items(TargetFiles);
show(N_TargetFiles);

For( i = 1, i &amp;lt;= N Items( TargetFiles ), i++,
	sample = Left( TargetFiles[i], Contains( TargetFiles[i], "." ) - 1 );
	Show( sample );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Log indicates 8 files were detected (see attached, first run). &amp;nbsp;Then I deleted one file in the folder and ran the script again. &amp;nbsp;The Log still indicates 8 files are present and it includes a "" to indicate that one was deleted (see attached, second run). &amp;nbsp;If I start over with 8 files and delete 6, 3 are detected, one of which is "", so maybe "" indicates a temporary file indicating files were deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known behavior of JSL/JMP on a Mac or with Big Sur? &amp;nbsp;How can I avoid including the "" item in the count and on the list?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input.&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="Log showing detection of deleted file.png" style="width: 799px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44940i3B7D4B11BF2F4EF6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Log showing detection of deleted file.png" alt="Log showing detection of deleted file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:08:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536599#M75857</guid>
      <dc:creator>MPK</dc:creator>
      <dc:date>2023-06-09T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: On Mac Big Sur JSL seems to detect a file indicating deletion of one or more files</title>
      <link>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536735#M75864</link>
      <description>&lt;P&gt;Sounds like a bug, perhaps in JMP. As a workaround, untested code (no Mac here):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = {"a", "b", "", "c"};
Show( x );
y = Filter Each( {filename}, x, filename != "" );
Show( y );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;x = {"a", "b", "", "c"};&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;y = {"a", "b", "c"};&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1893"&gt;@Audrey_Shull&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 22:51:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536735#M75864</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-08-23T22:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: On Mac Big Sur JSL seems to detect a file indicating deletion of one or more files</title>
      <link>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536744#M75865</link>
      <description>&lt;P&gt;Thanks very much for your help. &amp;nbsp;I discovered the mystery file is a hidden .DS_Store file that occupies a Mac directory when one or more files is deleted, which I confirmed in my directories using Terminal &lt;FONT face="terminal,monaco" size="2"&gt;ls -a&lt;/FONT&gt; to reveal hidden files. I renamed the file list in my previous script, then modified your suggested syntax to filter away the .DS_Store file (see &lt;FONT color="#0000FF"&gt;blue&amp;nbsp;&lt;FONT color="#000000"&gt;script below&lt;/FONT&gt;&lt;/FONT&gt;). The script counts files properly and avoids the mystery "" file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to automate file processing on a selected folder containing target files. I was working through an alternative approach to select only files with the desired .txt extension, which might also exclude other "contaminating" files in a directory, but since your suggestion worked I'll likely continue with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would call this a Mac bug rather than a JMP bug, but I suppose that's arguable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );


TargetDir = Pick Directory();
Files = Files In Directory( TargetDir );

&lt;FONT color="#0000FF"&gt;TargetFiles = Filter Each( {filename}, Files, filename != ".DS_Store" );&lt;/FONT&gt;

N_TargetFiles = N Items( TargetFiles );
Show( N_TargetFiles );

For( i = 1, i &amp;lt;= N Items( TargetFiles ), i++,
	sample = Left( TargetFiles[i], Contains( TargetFiles[i], "." ) - 1 );
	Show( sample );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 00:34:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536744#M75865</guid>
      <dc:creator>MPK</dc:creator>
      <dc:date>2022-08-24T00:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: On Mac Big Sur JSL seems to detect a file indicating deletion of one or more files</title>
      <link>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536745#M75866</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks for tagging me,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;. I can confirm that this was a bug in JMP related to the invisible .DS_Store file that appears on Mac to store history information for a folder. I can also confirm it has been addressed in JMP 17, which will be released in a couple of months. Thanks for providing the nice workaround!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 00:39:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Mac-Big-Sur-JSL-seems-to-detect-a-file-indicating-deletion-of/m-p/536745#M75866</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2022-08-24T00:39:10Z</dc:date>
    </item>
  </channel>
</rss>

