Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Your program is sick! Shoot it and put it out of its memory.


computers / comp.sys.mac.misc / Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

SubjectAuthor
* Print (or export to a spreadsheet) all the information displayed when Finder is Dudley Brooks
+* Re: Print (or export to a spreadsheet) all the information displayed when FindJim Gibson
|`* Re: Print (or export to a spreadsheet) all the information displayed when FindJolly Roger
| `* Re: Print (or export to a spreadsheet) all the information displayed when FinderDudley Brooks
|  `* Re: Print (or export to a spreadsheet) all the information displayed when FinderJolly Roger
|   `* Re: Print (or export to a spreadsheet) all the information displayed when FinderDudley Brooks
|    `* Re: Print (or export to a spreadsheet) all the information displayed when FinderJolly Roger
|     `* Re: Print (or export to a spreadsheet) all the information displayed when FinderJolly Roger
|      `* Re: Print (or export to a spreadsheet) all the information displayed when FinderDudley Brooks
|       `* Another question Re: Print (or export to a spreadsheet) all the information dispDudley Brooks
|        `- Re: Another question Re: Print (or export to a spreadsheet) all the information Jolly Roger
`* Re: Print (or export to a spreadsheet) all the information displayed when FinderYour Name
 `- Re: Print (or export to a spreadsheet) all the information displayed when FinderDudley Brooks

1
Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v0piqb$232f5$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1290&group=comp.sys.mac.misc#1290

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Print (or export to a spreadsheet) all the information displayed when
Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Mon, 29 Apr 2024 18:51:05 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 32
Message-ID: <v0piqb$232f5$1@dont-email.me>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Apr 2024 03:51:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="db59b7cce7c3c82d891c4d506647d478";
logging-data="2197989"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sV3nmWnQHv29kgNOL9YHtnV2iSn+ExLA="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:5O1WveDXhZVRoBlfEOzpd/BUqnU=
Content-Language: en-US
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Dudley Brooks - Tue, 30 Apr 2024 01:51 UTC

I want to print out all the File Names, their Creation Dates, and their
Modification Dates. (Printing all the other info is fine too.) If
possible, I would like to do it in a form that can be easily put into a
spreadsheet.

In the built-in FreeBSD, the results of "ls" can be printed as text;
then the text can be put into a spreadsheet without too much trouble, by
figuring out the appropriate separator(s). Unfortunately, "ls" does not
display Creation Date, only Latest Access Date or Latest Modification
Date. (Likewise for other Unix-like systems, apparently.) And the
Creation Date is the one I need most.

In the OS, you can take a screenshot and save it as a PDF. But I don't
think it's a PDF from which text can be extracted. I'm not sure, though
.... because I can't find where the PDF is being saved ... or if it's
being saved at all! (Probably because of the very reason why I want
this info, namely, to help decide which files to delete, since my HD is
so clogged that the computer is slowed down to almost zero.)

The online recommendation I found for printing from the OS says to copy
it by hand(!) into the spreadsheet or text file.

Anyone know how to get at least a text file of the name and the Creation
Date? As automatically as possible?

(P.S. OS X 10.13 because I'm dubious about putting anything later on my
late-2013 MacBook Pro, and I can't afford a new computer right now.)

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9b5nmFo4r1U1@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1291&group=comp.sys.mac.misc#1291

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jimsgibson@gmail.com (Jim Gibson)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 30 Apr 2024 03:09:42 GMT
Lines: 33
Message-ID: <l9b5nmFo4r1U1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net pSS7QigdBJGWFbIK30JjTwyP+WcJ8XYTay8/554lLDUjXk6Bui
Cancel-Lock: sha1:nd9skdRK2J11N7qWIS8Uxn0ufns= sha256:OssPg+k5LTKReGtsBbmiG44KZiEGgYtNF0sY7n60QcQ=
User-Agent: Usenapp for MacOS
X-Usenapp: v1.27.2/l - Full License
 by: Jim Gibson - Tue, 30 Apr 2024 03:09 UTC

On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
<dbrooks@runforyourlife.org> wrote:

> I want to print out all the File Names, their Creation Dates, and their
> Modification Dates. (Printing all the other info is fine too.) If
> possible, I would like to do it in a form that can be easily put into a

You can use the stat utility in a command-line shell in the Terminal
application to print out creation and modification times for any file.

Use 'man stat' for details. Use the -f option to specifiy the content and
format for the fields to be displayed.

You want the following format specifiers:

%SN to display the file name
%SB to display the creation (birth) time
%Sm to display the modification time
%t to insert tab characters between fields

So the following should give you what you want:

stat -f '%SN%t%SB%t%Sm' *

Redirect the output to a file:

stat -f '%SN%t%SB%t%Sm' * > file_times.txt

and you can import that into a spreadsheet specifying tab characters to
separate columns,

--
Jim Gibson

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v0pp6o$28507$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1292&group=comp.sys.mac.misc#1292

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: YourName@YourISP.com (Your Name)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Tue, 30 Apr 2024 15:40:09 +1200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <v0pp6o$28507$1@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 05:40:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6d1ef9c3e6340493501542a6d76e4fd6";
logging-data="2364423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HggCp90iX5EL78hjp92puUSgS/Euz/Ho="
User-Agent: Unison/2.2
Cancel-Lock: sha1:Xh5eEQ3BVAx0wkDPXIJtIoljDGM=
 by: Your Name - Tue, 30 Apr 2024 03:40 UTC

On 2024-04-30 01:51:05 +0000, Dudley Brooks said:

> I want to print out all the File Names, their Creation Dates, and their
> Modification Dates. (Printing all the other info is fine too.) If
> possible, I would like to do it in a form that can be easily put into a
> spreadsheet.
>
> In the built-in FreeBSD, the results of "ls" can be printed as text;
> then the text can be put into a spreadsheet without too much trouble,
> by figuring out the appropriate separator(s). Unfortunately, "ls" does
> not display Creation Date, only Latest Access Date or Latest
> Modification Date. (Likewise for other Unix-like systems, apparently.)
> And the Creation Date is the one I need most.
>
> In the OS, you can take a screenshot and save it as a PDF. But I don't
> think it's a PDF from which text can be extracted. I'm not sure,
> though ... because I can't find where the PDF is being saved ... or if
> it's being saved at all! (Probably because of the very reason why I
> want this info, namely, to help decide which files to delete, since my
> HD is so clogged that the computer is slowed down to almost zero.)
>
> The online recommendation I found for printing from the OS says to copy
> it by hand(!) into the spreadsheet or text file.
>
> Anyone know how to get at least a text file of the name and the
> Creation Date? As automatically as possible?
>
> (P.S. OS X 10.13 because I'm dubious about putting anything later on
> my late-2013 MacBook Pro, and I can't afford a new computer right now.)

DiskTracker can catalogue a disk/folder and then you can print or
export the list, but it's not free.
<http://www.portents.com/disktracker/>

I haven't used any of these, but other possibiities might be:

- VVV (Virtual Volumes View) - a free disk cataloguing app
<https://sourceforge.net/projects/vvvapp/>

- PrintWindow - not free Finder window printer app
<http://searchwaresolutions.com/default.html>

- DiskCatalogMaker - not free disk cataloguing app
<https://diskcatalogmaker.com>

There are also some Finder replacement apps which may or may not be
able to print/export their listing windows, but I've never tried any of
those.

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9cileF5vsU1@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1293&group=comp.sys.mac.misc#1293

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jollyroger@pobox.com (Jolly Roger)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information
displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 30 Apr 2024 15:56:30 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 40
Message-ID: <l9cileF5vsU1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net GEShMpVdyRwOxLDtFdzSJQZCttZM/psXJS6afzBrmcjA2ukJMF
Cancel-Lock: sha1:ql2IiNaopPLldr5Wbho1Z2D98PE= sha256:4mns8FHO2CdZK815krjxHu0EyBDvYEffMwF8LNZRm78=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
 by: Jolly Roger - Tue, 30 Apr 2024 15:56 UTC

On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:
> On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
><dbrooks@runforyourlife.org> wrote:
>
>> I want to print out all the File Names, their Creation Dates, and their
>> Modification Dates. (Printing all the other info is fine too.) If
>> possible, I would like to do it in a form that can be easily put into a
>
> You can use the stat utility in a command-line shell in the Terminal
> application to print out creation and modification times for any file.
>
> Use 'man stat' for details. Use the -f option to specifiy the content and
> format for the fields to be displayed.
>
> You want the following format specifiers:
>
> %SN to display the file name
> %SB to display the creation (birth) time
> %Sm to display the modification time
> %t to insert tab characters between fields
>
> So the following should give you what you want:
>
> stat -f '%SN%t%SB%t%Sm' *
>
> Redirect the output to a file:
>
> stat -f '%SN%t%SB%t%Sm' * > file_times.txt
>
> and you can import that into a spreadsheet specifying tab characters to
> separate columns,

I would use comma characters for delimiters to make it a CSV file, then
open that in a spreadsheet program.

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v0rndv$2mnjk$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1294&group=comp.sys.mac.misc#1294

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed
when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Tue, 30 Apr 2024 14:22:04 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 62
Message-ID: <v0rndv$2mnjk$1@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net>
<l9cileF5vsU1@mid.individual.net>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 23:22:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="db59b7cce7c3c82d891c4d506647d478";
logging-data="2842228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CZz3m54ko9epaCkXS+UEijcywSfaCF2o="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:HFIKRHry8/+D5bTenfC25Fvh91g=
Content-Language: en-US
In-Reply-To: <l9cileF5vsU1@mid.individual.net>
 by: Dudley Brooks - Tue, 30 Apr 2024 21:22 UTC

On 4/30/24 8:56 AM, Jolly Roger wrote:

> On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:
>
>> On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
>> <dbrooks@runforyourlife.org> wrote:
>>
>>> I want to print out all the File Names, their Creation Dates, and their
>>> Modification Dates. (Printing all the other info is fine too.) If
>>> possible, I would like to do it in a form that can be easily put into a
>>
>> You can use the stat utility in a command-line shell in the Terminal
>> application to print out creation and modification times for any file.
>>
>> Use 'man stat' for details. Use the -f option to specifiy the content and
>> format for the fields to be displayed.
>>
>> You want the following format specifiers:
>>
>> %SN to display the file name
>> %SB to display the creation (birth) time
>> %Sm to display the modification time
>> %t to insert tab characters between fields
>>
>> So the following should give you what you want:
>>
>> stat -f '%SN%t%SB%t%Sm' *
>>
>> Redirect the output to a file:
>>
>> stat -f '%SN%t%SB%t%Sm' * > file_times.txt
>>
>> and you can import that into a spreadsheet specifying tab characters to
>> separate columns,

Thanks! That's EXACTLY what I'm looking for.

Ironically, I had actually done "man stat" ... but I didn't see all
those formatting parameters. I must have been looking way too late at
night ... when my brain turns into a pumpkin.

> I would use comma characters for delimiters to make it a CSV file, then
> open that in a spreadsheet program.

I was just thinking about that. Thanks! (I think Excel can separate on
tabs as well, though. But it's always good to have different options.
And maybe it saves you from having to do copy-and-paste.)

One more thing, if either of you knows why this might be:

If <filename> has not already been created, I get an error message.

If I create <filename> first, there's no error message, and it seems to
be running fine ... except ... it doesn't seem to do anything -- nothing
gets written to <filename>!

Any ideas? Maybe it's another casualty of over-full HD?

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v0rno9$2mnjk$2@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1295&group=comp.sys.mac.misc#1295

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed
when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Tue, 30 Apr 2024 14:27:37 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 58
Message-ID: <v0rno9$2mnjk$2@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me> <v0pp6o$28507$1@dont-email.me>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Apr 2024 23:27:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="db59b7cce7c3c82d891c4d506647d478";
logging-data="2842228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zOk9n2NHsEDmO0xoiyr+3BrU4oe8u/MU="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:m/dFJGVEcPeYUpsOdjYRn/UcAsM=
In-Reply-To: <v0pp6o$28507$1@dont-email.me>
Content-Language: en-US
 by: Dudley Brooks - Tue, 30 Apr 2024 21:27 UTC

On 4/29/24 8:40 PM, Your Name wrote:

> On 2024-04-30 01:51:05 +0000, Dudley Brooks said:
>
>> I want to print out all the File Names, their Creation Dates, and
>> their Modification Dates.  (Printing all the other info is fine too.)
>> If possible, I would like to do it in a form that can be easily put
>> into a spreadsheet.
>>
>> In the built-in FreeBSD, the results of "ls" can be printed as text;
>> then the text can be put into a spreadsheet without too much trouble,
>> by figuring out the appropriate separator(s).  Unfortunately, "ls"
>> does not display Creation Date, only Latest Access Date or Latest
>> Modification Date.  (Likewise for other Unix-like systems,
>> apparently.)  And the Creation Date is the one I need most.
>>
>> In the OS, you can take a screenshot and save it as a PDF.  But I
>> don't think it's a PDF from which text can be extracted.  I'm not
>> sure, though ... because I can't find where the PDF is being saved ...
>> or if it's being saved at all!  (Probably because of the very reason
>> why I want this info, namely, to help decide which files to delete,
>> since my HD is so clogged that the computer is slowed down to almost
>> zero.)
>>
>> The online recommendation I found for printing from the OS says to
>> copy it by hand(!) into the spreadsheet or text file.
>>
>> Anyone know how to get at least a text file of the name and the
>> Creation Date?  As automatically as possible?
>>
>> (P.S.  OS X 10.13 because I'm dubious about putting anything later on
>> my late-2013 MacBook Pro, and I can't afford a new computer right now.)
>
> DiskTracker can catalogue a disk/folder and then you can print or export
> the list, but it's not free.
> <http://www.portents.com/disktracker/>
>
> I haven't used any of these, but other possibiities might be:
>
>   - VVV (Virtual Volumes View) - a free disk cataloguing app
>     <https://sourceforge.net/projects/vvvapp/>
>
>   - PrintWindow - not free Finder window printer app
>     <http://searchwaresolutions.com/default.html>
>
>   - DiskCatalogMaker - not free disk cataloguing app
>     <https://diskcatalogmaker.com>
>
> There are also some Finder replacement apps which may or may not be able
> to print/export their listing windows, but I've never tried any of those.

Thanks. For the moment, I'm going to go with the Unix suggestion posted
above. But thanks for all the info on alternatives.

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9db8kF3oojU1@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1296&group=comp.sys.mac.misc#1296

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jollyroger@pobox.com (Jolly Roger)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information
displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 30 Apr 2024 22:56:20 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 66
Message-ID: <l9db8kF3oojU1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
<l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net>
<v0rndv$2mnjk$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net G8xba+ZbQc23UajaGpYPog/9Y5aq6Mo3JroTonTSvEHZnNYIx5
Cancel-Lock: sha1:siTJC47pR/5j9Gx4Qf3vzCU3sj0= sha256:+9+1YUw0UeYQEJSNSUpZKbhYkeN3DBMfyUrgbHz1VUg=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
 by: Jolly Roger - Tue, 30 Apr 2024 22:56 UTC

On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
> On 4/30/24 8:56 AM, Jolly Roger wrote:
>
>> On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:
>>
>>> On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
>>> <dbrooks@runforyourlife.org> wrote:
>>>
>>>> I want to print out all the File Names, their Creation Dates, and their
>>>> Modification Dates. (Printing all the other info is fine too.) If
>>>> possible, I would like to do it in a form that can be easily put into a
>>>
>>> You can use the stat utility in a command-line shell in the Terminal
>>> application to print out creation and modification times for any file.
>>>
>>> Use 'man stat' for details. Use the -f option to specifiy the content and
>>> format for the fields to be displayed.
>>>
>>> You want the following format specifiers:
>>>
>>> %SN to display the file name
>>> %SB to display the creation (birth) time
>>> %Sm to display the modification time
>>> %t to insert tab characters between fields
>>>
>>> So the following should give you what you want:
>>>
>>> stat -f '%SN%t%SB%t%Sm' *
>>>
>>> Redirect the output to a file:
>>>
>>> stat -f '%SN%t%SB%t%Sm' * > file_times.txt
>>>
>>> and you can import that into a spreadsheet specifying tab characters to
>>> separate columns,
>
> Thanks! That's EXACTLY what I'm looking for.
>
> Ironically, I had actually done "man stat" ... but I didn't see all
> those formatting parameters. I must have been looking way too late at
> night ... when my brain turns into a pumpkin.
>
>> I would use comma characters for delimiters to make it a CSV file, then
>> open that in a spreadsheet program.
>
> I was just thinking about that. Thanks! (I think Excel can separate on
> tabs as well, though. But it's always good to have different options.
> And maybe it saves you from having to do copy-and-paste.)
>
> One more thing, if either of you knows why this might be:
>
> If <filename> has not already been created, I get an error message.
>
> If I create <filename> first, there's no error message, and it seems to
> be running fine ... except ... it doesn't seem to do anything -- nothing
> gets written to <filename>!
>
> Any ideas? Maybe it's another casualty of over-full HD?

What is the command you are using, and what is the error output?

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v0uumc$3k9ri$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1297&group=comp.sys.mac.misc#1297

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed
when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Wed, 1 May 2024 19:44:25 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 84
Message-ID: <v0uumc$3k9ri$1@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net>
<l9cileF5vsU1@mid.individual.net> <v0rndv$2mnjk$1@dont-email.me>
<l9db8kF3oojU1@mid.individual.net>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 02 May 2024 04:44:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d4f0af62b22c70a6b3d6508d69f4c100";
logging-data="3811186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nneYjw4l2bE67gR0uhCB7TqSANImbOrQ="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:Jl+/zYgzXJooDpxFufeORCKiEGs=
In-Reply-To: <l9db8kF3oojU1@mid.individual.net>
Content-Language: en-US
 by: Dudley Brooks - Thu, 2 May 2024 02:44 UTC

On 4/30/24 3:56 PM, Jolly Roger wrote:

> On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>
>> On 4/30/24 8:56 AM, Jolly Roger wrote:
>>
>>> On 2024-04-30, Jim Gibson <jimsgibson@gmail.com> wrote:
>>>
>>>> On Apr 29, 2024 at 6:51:05 PM PDT, "Dudley Brooks"
>>>> <dbrooks@runforyourlife.org> wrote:
>>>>
>>>>> I want to print out all the File Names, their Creation Dates, and their
>>>>> Modification Dates. (Printing all the other info is fine too.) If
>>>>> possible, I would like to do it in a form that can be easily put into a
>>>>
>>>> You can use the stat utility in a command-line shell in the Terminal
>>>> application to print out creation and modification times for any file.
>>>>
>>>> Use 'man stat' for details. Use the -f option to specifiy the content and
>>>> format for the fields to be displayed.
>>>>
>>>> You want the following format specifiers:
>>>>
>>>> %SN to display the file name
>>>> %SB to display the creation (birth) time
>>>> %Sm to display the modification time
>>>> %t to insert tab characters between fields
>>>>
>>>> So the following should give you what you want:
>>>>
>>>> stat -f '%SN%t%SB%t%Sm' *
>>>>
>>>> Redirect the output to a file:
>>>>
>>>> stat -f '%SN%t%SB%t%Sm' * > file_times.txt
>>>>
>>>> and you can import that into a spreadsheet specifying tab characters to
>>>> separate columns,
>>
>> Thanks! That's EXACTLY what I'm looking for.
>>
>> Ironically, I had actually done "man stat" ... but I didn't see all
>> those formatting parameters. I must have been looking way too late at
>> night ... when my brain turns into a pumpkin.
>>
>>> I would use comma characters for delimiters to make it a CSV file, then
>>> open that in a spreadsheet program.
>>
>> I was just thinking about that. Thanks! (I think Excel can separate on
>> tabs as well, though. But it's always good to have different options.
>> And maybe it saves you from having to do copy-and-paste.)
>>
>> One more thing, if either of you knows why this might be:
>>
>> If <filename> has not already been created, I get an error message.
>>
>> If I create <filename> first, there's no error message, and it seems to
>> be running fine ... except ... it doesn't seem to do anything -- nothing
>> gets written to <filename>!
>>
>> Any ideas? Maybe it's another casualty of over-full HD?
>
> What is the command you are using,

Exactly what Jim Gibson suggested:

stat <flags, etc.> * > <file>

> and what is the error output?

Today, when <file> doesn't exist, no error message. Can't recreate
error message from yesterday. (Maybe because I cleared a lot of stuff
off my HD?)

But <file> does not get created.

When <file> does already exist, then, just like yesterday, no error message.

But again, like yesterday, nothing gets written to <file>.

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9hqa1Fo6ppU1@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1299&group=comp.sys.mac.misc#1299

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jollyroger@pobox.com (Jolly Roger)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information
displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 2 May 2024 15:37:38 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 44
Message-ID: <l9hqa1Fo6ppU1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
<l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net>
<v0rndv$2mnjk$1@dont-email.me> <l9db8kF3oojU1@mid.individual.net>
<v0uumc$3k9ri$1@dont-email.me>
X-Trace: individual.net PYfOGyXvpUl/EjNbWBCeGgCwBBY6kdocjhZxfOuzch8znLm9r5
Cancel-Lock: sha1:EcfRdC9ipwLSuogOAbI2gXAda0g= sha256:ijbkW7a0i8boko4Ik2MK7XP5BttAm2IyR9y7foJPC6w=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
 by: Jolly Roger - Thu, 2 May 2024 15:37 UTC

On 2024-05-02, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
> On 4/30/24 3:56 PM, Jolly Roger wrote:
>> On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>>> On 4/30/24 8:56 AM, Jolly Roger wrote:
>>>>
>>>> I would use comma characters for delimiters to make it a CSV file,
>>>> then open that in a spreadsheet program.
>>>
>>> I was just thinking about that. Thanks! (I think Excel can
>>> separate on tabs as well, though. But it's always good to have
>>> different options. And maybe it saves you from having to do
>>> copy-and-paste.)
>>>
>>> One more thing, if either of you knows why this might be:
>>>
>>> If <filename> has not already been created, I get an error message.
>>>
>>> If I create <filename> first, there's no error message, and it seems
>>> to be running fine ... except ... it doesn't seem to do anything --
>>> nothing gets written to <filename>!
>>>
>>> Any ideas? Maybe it's another casualty of over-full HD?
>>
>> What is the command you are using,
>
> Exactly what Jim Gibson suggested:
>
> stat <flags, etc.> * > <file>

I'm asking for the exact command you are using, verbatim.

>> and what is the error output?
>
> Today, when <file> doesn't exist, no error message. Can't recreate
> error message from yesterday. (Maybe because I cleared a lot of stuff
> off my HD?)

You don't remember what the message was?

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9hqidFo6ppU2@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1300&group=comp.sys.mac.misc#1300

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jollyroger@pobox.com (Jolly Roger)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information
displayed when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: 2 May 2024 15:42:05 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 63
Message-ID: <l9hqidFo6ppU2@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
<l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net>
<v0rndv$2mnjk$1@dont-email.me> <l9db8kF3oojU1@mid.individual.net>
<v0uumc$3k9ri$1@dont-email.me> <l9hqa1Fo6ppU1@mid.individual.net>
X-Trace: individual.net HN3rEVaJ8sqRJVT2kLjqTgAx9ZecqKI1Vce4+/MZkz3/3Xskfl
Cancel-Lock: sha1:0yCsi+JSPlFb6RlHMFAaGQbD3/8= sha256:X96gl3z7JB8hIMmcuoNGXxDFkKsXZ+U2cQIpAAMm8qM=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
 by: Jolly Roger - Thu, 2 May 2024 15:42 UTC

On 2024-05-02, Jolly Roger <jollyroger@pobox.com> wrote:
> On 2024-05-02, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>> On 4/30/24 3:56 PM, Jolly Roger wrote:
>>> On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>>>> On 4/30/24 8:56 AM, Jolly Roger wrote:
>>>>>
>>>>> I would use comma characters for delimiters to make it a CSV file,
>>>>> then open that in a spreadsheet program.
>>>>
>>>> I was just thinking about that. Thanks! (I think Excel can
>>>> separate on tabs as well, though. But it's always good to have
>>>> different options. And maybe it saves you from having to do
>>>> copy-and-paste.)
>>>>
>>>> One more thing, if either of you knows why this might be:
>>>>
>>>> If <filename> has not already been created, I get an error message.
>>>>
>>>> If I create <filename> first, there's no error message, and it seems
>>>> to be running fine ... except ... it doesn't seem to do anything --
>>>> nothing gets written to <filename>!
>>>>
>>>> Any ideas? Maybe it's another casualty of over-full HD?
>>>
>>> What is the command you are using,
>>
>> Exactly what Jim Gibson suggested:
>>
>> stat <flags, etc.> * > <file>
>
> I'm asking for the exact command you are using, verbatim.
>
>>> and what is the error output?
>>
>> Today, when <file> doesn't exist, no error message. Can't recreate
>> error message from yesterday. (Maybe because I cleared a lot of stuff
>> off my HD?)
>
> You don't remember what the message was?

I just tried this command in my home directory and it works fine
regardless of whether the file exists:

# stat -f '%SN,%SB,%Sm' * > file_times.txt

# cat file_times.txt
Applications,Aug 15 17:35:23 2021,Mar 3 15:37:43 2024
Desktop,Jun 26 11:04:55 2017,May 1 14:06:59 2024
Documents,Jun 23 14:24:35 2017,Apr 15 18:05:49 2024
Downloads,Jun 23 14:24:35 2017,May 2 08:31:18 2024
Library,Jun 23 14:24:35 2017,Mar 8 10:36:45 2024
Movies,Jun 26 11:04:55 2017,Mar 18 19:15:48 2024
Music,Jun 26 11:04:55 2017,Oct 7 12:45:36 2023
Pictures,Jun 26 11:04:55 2017,Apr 17 08:34:06 2024
Public,Jun 23 14:24:35 2017,Feb 28 16:02:32 2024
Virtual Machines.localized,Jul 7 02:25:49 2022,Jan 1 17:30:21 2024
file_times.txt,May 2 08:38:13 2024,May 2 08:39:09 2024

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR

Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v10iqu$3vq29$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1301&group=comp.sys.mac.misc#1301

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Re: Print (or export to a spreadsheet) all the information displayed
when Finder is looking at a folder (OS X 10.13 High Sierra)
Date: Thu, 2 May 2024 10:34:20 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 97
Message-ID: <v10iqu$3vq29$1@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net>
<l9cileF5vsU1@mid.individual.net> <v0rndv$2mnjk$1@dont-email.me>
<l9db8kF3oojU1@mid.individual.net> <v0uumc$3k9ri$1@dont-email.me>
<l9hqa1Fo6ppU1@mid.individual.net> <l9hqidFo6ppU2@mid.individual.net>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 02 May 2024 19:34:23 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ed49d82e12445ab049a1162a3fa0b4b3";
logging-data="4188233"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qEALbmBZFSwhx//W/S0sG9J8TTq4EH6E="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:ikpb0uYVCOPYFrpqiuYv+6v2bZ8=
Content-Language: en-US
In-Reply-To: <l9hqidFo6ppU2@mid.individual.net>
 by: Dudley Brooks - Thu, 2 May 2024 17:34 UTC

On 5/2/24 8:42 AM, Jolly Roger wrote:

> On 2024-05-02, Jolly Roger <jollyroger@pobox.com> wrote:
>
>> On 2024-05-02, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>>
>>> On 4/30/24 3:56 PM, Jolly Roger wrote:
>>>
>>>> On 2024-04-30, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
>>>>> On 4/30/24 8:56 AM, Jolly Roger wrote:
>>>>>>
>>>>>> I would use comma characters for delimiters to make it a CSV file,
>>>>>> then open that in a spreadsheet program.
>>>>>
>>>>> I was just thinking about that. Thanks! (I think Excel can
>>>>> separate on tabs as well, though. But it's always good to have
>>>>> different options. And maybe it saves you from having to do
>>>>> copy-and-paste.)
>>>>>
>>>>> One more thing, if either of you knows why this might be:
>>>>>
>>>>> If <filename> has not already been created, I get an error message.
>>>>>
>>>>> If I create <filename> first, there's no error message, and it seems
>>>>> to be running fine ... except ... it doesn't seem to do anything --
>>>>> nothing gets written to <filename>!
>>>>>
>>>>> Any ideas? Maybe it's another casualty of over-full HD?
>>>>
>>>> What is the command you are using,
>>>
>>> Exactly what Jim Gibson suggested:
>>>
>>> stat <flags, etc.> * > <file>
>>
>> I'm asking for the exact command you are using, verbatim.

(See below.)

>>>> and what is the error output?
>>>
>>> Today, when <file> doesn't exist, no error message. Can't recreate
>>> error message from yesterday. (Maybe because I cleared a lot of stuff
>>> off my HD?)
>>
>> You don't remember what the message was?

No, that was several days ago, late at night. I was exhausted and just
didn't want to think about it anymore. Unfortunately, I didn't write it
down. I figured I could just do it again to see the message.
(Un)fortunately the error didn't happen again.

> I just tried this command in my home directory and it works fine
> regardless of whether the file exists:
>
> # stat -f '%SN,%SB,%Sm' * > file_times.txt

That worked for me today.

What I used, verbatim, was Jim Gibson's suggestion:

stat -f '%SN%t%SB%t%Sm' * > file_times.txt

As you see, identical to yours, except you use commas and he used tabs.

When I tried it a couple of days ago (copied and pasted from his
message, so it was exactly the above) it did not print anything to the file.

When I tried it yesterday (copied and pasted from his message, so it was
exactly the above) it did not print anything to the file.

When I tried it today (copied and pasted from his message, so it was
exactly the above) it DID print to the file! Yay!

(I know it was exactly the same on every try, not just because I copied
and pasted, but because I saw it so many times and analyzed it so many
times that it is etched in my brain.)

Maybe it only works on Thursdays? ;^)

Go figure. "Computers were invented to make our lives easier.
Computers were invented to make our lives easier. Computers were
invented ..." If I say it often enough, maybe I might actually start to
believe it. >:^(

Seriously, the only difference that I'm aware of between the three
different days is that today my HD has a lot more free space. At any
rate, the command is now working.

Thanks, Jolly Roger and Jim, for your help.

<SNIP your printout>

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<v13blc$mktr$1@dont-email.me>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1305&group=comp.sys.mac.misc#1305

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dbrooks@runforyourlife.org (Dudley Brooks)
Newsgroups: comp.sys.mac.misc
Subject: Another question Re: Print (or export to a spreadsheet) all the
information displayed when Finder is looking at a folder (OS X 10.13 High
Sierra)
Date: Fri, 3 May 2024 11:50:17 -0700
Organization: Run For Your Life! ... it's a dance company
Lines: 22
Message-ID: <v13blc$mktr$1@dont-email.me>
References: <v0piqb$232f5$1@dont-email.me> <l9b5nmFo4r1U1@mid.individual.net>
<l9cileF5vsU1@mid.individual.net> <v0rndv$2mnjk$1@dont-email.me>
<l9db8kF3oojU1@mid.individual.net> <v0uumc$3k9ri$1@dont-email.me>
<l9hqa1Fo6ppU1@mid.individual.net> <l9hqidFo6ppU2@mid.individual.net>
<v10iqu$3vq29$1@dont-email.me>
Reply-To: dbrooks@runforyourlife.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 03 May 2024 20:50:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8ec6d6a1455c672211c04eb1d0ba3aa1";
logging-data="742331"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18daeHTu2h2paAFTJHW1HP3o1b6Hf4iScA="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0)
Gecko/20100101 Thunderbird/60.9.1
Cancel-Lock: sha1:QaufePLCEzuuxhjpDbCxHwrxmtc=
Content-Language: en-US
In-Reply-To: <v10iqu$3vq29$1@dont-email.me>
 by: Dudley Brooks - Fri, 3 May 2024 18:50 UTC

I forgot to ask. Can I add something to your now-working line

stat -f '%SN,%SB,%Sm' * > file_times.txt

to reformat date and time? Either within the -f format description or
piping it to something else?

On the internet I found this, supposedly to simply reformat date and
time, for everything, during a session:

set timefmt "%Y-%m-%d %H:%M:%S"

But it doesn't seem to be working either. I execute it, then do "date"
or "ls -l" or whatever ... and the date and time are still displayed in
the same format as ever.

Thanks in advance.

--
Dudley Brooks, Artistic Director
Run For Your Life! ... it's a dance company!
San Francisco

Re: Another question Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

<l9nkulFjv56U1@mid.individual.net>

  copy mid

http://retrobbs.i2p/computers/article-flat.php?id=1306&group=comp.sys.mac.misc#1306

  copy link   Newsgroups: comp.sys.mac.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: jollyroger@pobox.com (Jolly Roger)
Newsgroups: comp.sys.mac.misc
Subject: Re: Another question Re: Print (or export to a spreadsheet) all the
information displayed when Finder is looking at a folder (OS X 10.13 High
Sierra)
Date: 4 May 2024 20:43:01 GMT
Organization: People for the Ethical Treatment of Pirates
Lines: 49
Message-ID: <l9nkulFjv56U1@mid.individual.net>
References: <v0piqb$232f5$1@dont-email.me>
<l9b5nmFo4r1U1@mid.individual.net> <l9cileF5vsU1@mid.individual.net>
<v0rndv$2mnjk$1@dont-email.me> <l9db8kF3oojU1@mid.individual.net>
<v0uumc$3k9ri$1@dont-email.me> <l9hqa1Fo6ppU1@mid.individual.net>
<l9hqidFo6ppU2@mid.individual.net> <v10iqu$3vq29$1@dont-email.me>
<v13blc$mktr$1@dont-email.me>
X-Trace: individual.net CgBLq4sC+c7OGopSUcCfjwC41BZFaPYlvuYTiNiR3VPrQtVgdr
Cancel-Lock: sha1:pKis2omKeZ1Pp0xncUOABinpJwM= sha256:iuSa7R/KwCcGVnV1An4y+4wQgRfduRv3vkaajDdZEwE=
Mail-Copies-To: nobody
X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1<n@LQ!aZ7vLO_nWbK~@T'XIS0,oAJcU.qLM
dk/j8Udo?O"o9B9Jyx+ez2:B<nx(k3EdHnTvB]'eoVaR495,Rv~/vPa[e^JI+^h5Zk*i`Q;ezqDW<
ZFs6kmAJWZjOH\8[$$7jm,Ogw3C_%QM'|H6nygNGhhl+@}n30Nz(^vWo@h>Y%b|b-Y~()~\t,LZ3e
up1/bO{=-)
User-Agent: slrn/1.0.3 (Darwin)
 by: Jolly Roger - Sat, 4 May 2024 20:43 UTC

On 2024-05-03, Dudley Brooks <dbrooks@runforyourlife.org> wrote:
> I forgot to ask. Can I add something to your now-working line
>
> stat -f '%SN,%SB,%Sm' * > file_times.txt
>
> to reformat date and time? Either within the -f format description or
> piping it to something else?
>
> On the internet I found this, supposedly to simply reformat date and
> time, for everything, during a session:
>
> set timefmt "%Y-%m-%d %H:%M:%S"
>
> But it doesn't seem to be working either. I execute it, then do "date"
> or "ls -l" or whatever ... and the date and time are still displayed in
> the same format as ever.
>
> Thanks in advance.

Create a plain text file named "lister.sh" with these contents:

#!/usr/bin/env bash

for file in ./*; do
filename=`basename "$file"`

created=`stat -f '%SB' "$filename"`
modified=`stat -f '%Sm' "$filename"`

created_s=`date -j -f "%b %d %H:%M:%S %Y" "$created" "+%F %H:%M:%S"`
modified_s=`date -j -f "%b %d %H:%M:%S %Y" "$modified" "+%F %H:%M:%S"`

echo "$filename,$created_s,$modified_s"
done

Make the script executable with this command in the same directory as
the script:

chmod +x lister.sh

Run the script in a terminal window like so:

../lister.sh > file_times.csv

--
E-mail sent to this address may be devoured by my ravenous SPAM filter.
I often ignore posts from Google. Use a real news client instead.

JR


computers / comp.sys.mac.misc / Re: Print (or export to a spreadsheet) all the information displayed when Finder is looking at a folder (OS X 10.13 High Sierra)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor