Re: Need way to set the Creation date of a file via OSX
Re: Need way to set the Creation date of a file via OSX
- Subject: Re: Need way to set the Creation date of a file via OSX
- From: Gnarlodious <email@hidden>
- Date: Mon, 16 May 2005 21:18:35 -0600
Title: Re: Need way to set the Creation date of a file via OSX
Entity Bob uttered this profundity:
> I had been using an OS9 AppleScript to set the Creation date to the
> Modification date of JPG files. Haven't found a way to do the same on
> OS X. Can it be done? I can get the file Properties but can't set
> them.
> Why, you may ask, would anyone want to do that? Because the Canon
> Power Shot camera sets the Creation date to null, and the
> Modification date to moment of creation.
If you have the XCode package installed you can use the SetFile shell command to set the file date and time. If you don't have Xcode and just want the SetFile cabability download and install it with this code:
set SetFileURL to "http://corz.org/osx/soft/stuff/setfile.gz"
-- download and install the file ... NO ERRORCHECKING HERE!
do shell script "curl " & SetFileURL & " > $HOME/Desktop/SetFile.gz"
do shell script "sudo gzip -d < $HOME/Desktop/SetFile.gz >> $HOME/Desktop/SetFile ; mv $HOME/Desktop/SetFile /usr/local/bin ; chown root:admin /usr/local/bin/SetFile;sudo chmod 775 /usr/local/bin/SetFile"
You should no be able to type this in Terminal:
SetFile
And see the SetFile instructions.
(All this works in 10.4)
-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden