From: Wes Groleau on
J.J. O'Shea wrote:
> On Fri, 22 Jan 2010 21:35:54 -0500, JF Mezei wrote
> (in article <00d2ed89$0$1596$c3e8da3(a)news.astraweb.com>):
>
>> I have to download a number of documents from the web. Most are PDFs,
>> except for one telco which insists on submitting a .ZIP file containing
>> a .DOC file.
>>
>> I have to file these documents by the name of the organisation that
>> submitted them, and the date they were submitted (there are various
>> deadlines for submissions).
>>
>> Is there a way to set the date of a document to an arbritary one (aka: a
>> deadline date.
>>
>> This way, I could sort documents by date (seeing all submissions made
>> for such and such a deadline, or by organisation.
>
> Change the system clock the date in question, do a save as, change the clock
> back.

If your clock is set by NTP, you might be able to omit that last step. :-)


--
Wes Groleau

Remade in America
http://Ideas.Lang-Learn.us/russell?itemid=1422
From: Barry Margolin on
In article <hjdtr0$vgo$2(a)news.eternal-september.org>,
Don Bruder <dakidd(a)sonic.net> wrote:

> In article <tom_stiller-B9FFD9.22361422012010(a)news.individual.net>,
> Tom Stiller <tom_stiller(a)yahoo.com> wrote:
>
> > In article <00d2ed89$0$1596$c3e8da3(a)news.astraweb.com>,
> > JF Mezei <jfmezei.spamnot(a)vaxination.ca> wrote:
> >
> > > I have to download a number of documents from the web. Most are PDFs,
> > > except for one telco which insists on submitting a .ZIP file containing
> > > a .DOC file.
> > >
> > > I have to file these documents by the name of the organisation that
> > > submitted them, and the date they were submitted (there are various
> > > deadlines for submissions).
> > >
> > > Is there a way to set the date of a document to an arbritary one (aka: a
> > > deadline date.
> > >
> > > This way, I could sort documents by date (seeing all submissions made
> > > for such and such a deadline, or by organisation.
> >
> > In the Terminal.app enter:
> > /usr/bin/SetFile
> >
> > for short help on setting either the creation and/or modification
> > date(s).
>
> Wouldn't "touch <insert filename here>" from the CL do it? Oh, wait - he
> wants to set an arbitrary date rather than "now". D'oh! Never mind!

That can be done with touch as well:

touch -t YYYYMMDDHHMMSS <filename>

--
Barry Margolin, barmar(a)alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
From: Greg Pratt on
In article <hjdtr0$vgo$2(a)news.eternal-september.org>,
Don Bruder <dakidd(a)sonic.net> wrote:
>In article <tom_stiller-B9FFD9.22361422012010(a)news.individual.net>,
> Tom Stiller <tom_stiller(a)yahoo.com> wrote:
>
>> In article <00d2ed89$0$1596$c3e8da3(a)news.astraweb.com>,
>> JF Mezei <jfmezei.spamnot(a)vaxination.ca> wrote:
>>
>> > I have to download a number of documents from the web. Most are PDFs,
>> > except for one telco which insists on submitting a .ZIP file containing
>> > a .DOC file.
>> >
>> > I have to file these documents by the name of the organisation that
>> > submitted them, and the date they were submitted (there are various
>> > deadlines for submissions).
>> >
>> > Is there a way to set the date of a document to an arbritary one (aka: a
>> > deadline date.
>> >
>> > This way, I could sort documents by date (seeing all submissions made
>> > for such and such a deadline, or by organisation.
>>
>> In the Terminal.app enter:
>> /usr/bin/SetFile
>>
>> for short help on setting either the creation and/or modification
>> date(s).
>
>Wouldn't "touch <insert filename here>" from the CL do it? Oh, wait - he
>wants to set an arbitrary date rather than "now". D'oh! Never mind!

Darwin's touch command supports the common -t option, followed by a
date/time string in the format [[CC]YY]MMDDhhmm[.SS]. See the man
page for touch for details ("man touch" from the terminal).

SetFile is probably more intuitive for a beginner, but it requires
installation of the Xcode Tools. There are also GUI-based tools to
do this from the Finder, such as the now-defunct Super Get Info.

--
Gregory Pratt gp(a)panix.com
East Rutherford, NJ, USA http://www.panix.com/~gp/
"You're only given one little spark of madness. You mustn't lose it."
PGP Key Fingerprint: DC60 FCDE 91E2 3D41 91A3 45DB B474 3D3A 3621 AAFE
From: Doug Anderson on
J.J. O'Shea <try.not.to(a)but.see.sig> writes:

> On Fri, 22 Jan 2010 21:35:54 -0500, JF Mezei wrote
> (in article <00d2ed89$0$1596$c3e8da3(a)news.astraweb.com>):
>
> > I have to download a number of documents from the web. Most are PDFs,
> > except for one telco which insists on submitting a .ZIP file containing
> > a .DOC file.
> >
> > I have to file these documents by the name of the organisation that
> > submitted them, and the date they were submitted (there are various
> > deadlines for submissions).
> >
> > Is there a way to set the date of a document to an arbritary one (aka: a
> > deadline date.
> >
> > This way, I could sort documents by date (seeing all submissions made
> > for such and such a deadline, or by organisation.
>
> Change the system clock the date in question, do a save as, change the clock
> back.

Heh.

I usually tacke my laptop into my plutonium powered DeLorean and
travel to the time I wish to set the file creation date to, then I
make the file, then I travel back.

(Or if I'm in a hurry I might just use touch.

Type man touch in the terminal and look at the -t option.)
From: Tom Stiller on
In article <hje1st$3b8$1(a)panix2.panix.com>, gp(a)panix.com (Greg Pratt)
wrote:

> SetFile is probably more intuitive for a beginner, but it requires
> installation of the Xcode Tools.

Is that still the case? While I do have Developer Tools installed, my
10.6.2 installation also has SteFile and GetFileInfo installed in
/usr/bin as well.

--
Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7
Prev: Rhapsody
Next: X11 startup configurations