Re: Modification date in leopard
Re: Modification date in leopard
- Subject: Re: Modification date in leopard
- From: KOENIG Yvan <email@hidden>
- Date: Sun, 2 Mar 2008 14:35:45 +0100
Le 2 mars 2008 à 13:56, david a écrit :
In 10.4 I could use
set d to modification date of file "system:private:tmp:test"
to get the modification date of a file. In 10.5 this doesn't work
anymore. I guess I could use a shell script but that feels like a
lot of hassle. There must be built in support for this in
Applescript but Google didn't find anything.
I'm not sure that it works in 10.4.x
it would be better to code:
tell application "Finder"
set d to modification date of file "system:private:tmp:test"
end tell
or
set d to modification date of (get info for file
"system:private:tmp:test")
But, I'm not sure that your pathname is correct.
I guess that it would be better with:
set p2s to path to system folder as Unicode text
tell application "Finder"
set d to modification date of file (p2s & "private:tmp:test")
end tell
or
set p2s to path to system folder as Unicode text
set d to modification date of (get info for file (p2s &
"private:tmp:test"))
Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden