From: Warren Oates on
In article <hjdoem010q3(a)news4.newsguy.com>,
J.J. O'Shea <try.not.to(a)but.see.sig> wrote:

> Change the system clock the date in question, do a save as, change the clock
> back.

That's just silly.

I'd use extended attributes, so that the creation and modification times
remain what they should.

Something like:

[~]$ touch tester.txt
[~]$ xattr -s `date "+%y-%m-%d"` `date "+%H:%M"` tester.txt

(those are back-ticks)
and you can call it up with:

[~]$ xattr -l tester.txt
tester.txt
10-01-23 10:45

or with:

[~]$ ls -lh@ tester.txt
-rw-r--r--@ 1 warren staff 0B Jan 23 10:45 tester.txt
10-01-23 5B

Note that ls -@ only returns the key (not the value) and the size of the
xattr.

Xattr -s requires a key/value pair, so you might as well use the
timestamp. Or you can combine date and time in the key, and just use a 0
or something for the value.

No one listens to me though.

You can get an xattr here:
http://pypi.python.org/pypi/xattr
It's a Python script; it's not the one I use -- I forget where mine came
from.
--
Very old woody beets will never cook tender.
-- Fannie Farmer
From: Warren Oates on
In article <jollyroger-4665F2.10084323012010(a)news.individual.net>,
Jolly Roger <jollyroger(a)pobox.com> wrote:

> Oh interesting. Same here! That must be new in 10.6.

I've got them in /usr/bin in 10.5.8. Although, they may have been put
there by the dev tools installer.
--
Very old woody beets will never cook tender.
-- Fannie Farmer
From: Tim McNamara on
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.

It'd be tedious depending on how many files, but you could use Get Info
and write comments on each file with that information.

--
"I wear the cheese, it does not wear me."
From: David Empson on
Warren Oates <warren.oates(a)gmail.com> wrote:

> In article <jollyroger-4665F2.10084323012010(a)news.individual.net>,
> Jolly Roger <jollyroger(a)pobox.com> wrote:
>
> > Oh interesting. Same here! That must be new in 10.6.
>
> I've got them in /usr/bin in 10.5.8. Although, they may have been put
> there by the dev tools installer.

Probably. SetFile isn't part of the standard OS installation (I checked
10.5.1, 10.5.4 and 10.6 install DVDs), and corresponding versions of the
developer tools install SetFile in /usr/bin as well as
/Developer/usr/bin (linked from /Developer/Tools).

--
David Empson
dempson(a)actrix.gen.nz
From: Jolly Roger on
In article <1jcthxf.1krbqn1pi2fjxN%dempson(a)actrix.gen.nz>,
dempson(a)actrix.gen.nz (David Empson) wrote:

> Warren Oates <warren.oates(a)gmail.com> wrote:
>
> > In article <jollyroger-4665F2.10084323012010(a)news.individual.net>,
> > Jolly Roger <jollyroger(a)pobox.com> wrote:
> >
> > > Oh interesting. Same here! That must be new in 10.6.
> >
> > I've got them in /usr/bin in 10.5.8. Although, they may have been put
> > there by the dev tools installer.
>
> Probably. SetFile isn't part of the standard OS installation (I checked
> 10.5.1, 10.5.4 and 10.6 install DVDs), and corresponding versions of the
> developer tools install SetFile in /usr/bin as well as
> /Developer/usr/bin (linked from /Developer/Tools).

Ah - thanks for the info, David.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7
Prev: Rhapsody
Next: X11 startup configurations