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 21:45:56 +0100
Le 2 mars 2008 à 21:35, david a écrit :
--On 2008-03-02 08.26 -0500 "Mark J. Reed" <email@hidden> wrote:
You sure that worked in Tiger?
Yes, I just retested. Is that some legacy syntax?
Anyway, your example both worked fine and was simple, thanks!
I apologize but under Tiger your original code fails … if it is not
enclosed in a tell application "Finder" block
Under 10.4.11, I just ran:
set p2d to (path to desktop as Unicode text) & "lien_pour_forum.txt"
tell application "Finder"
set d to modification date of file p2d
end tell
set d to modification date of file p2d
The report is:
tell current application
path to desktop as Unicode text
"Macintosh HD:Users:yvankoenig:Desktop:"
end tell
tell application "Finder"
get modification date of file "Macintosh
HD:Users:yvankoenig:Desktop:lien_pour_forum.txt"
date "dimanche 2 mars 2008 19:16:43"
end tell
tell current application
get modification date of file "Macintosh
HD:Users:yvankoenig:Desktop:lien_pour_forum.txt"
"Impossible de transformer modification date of file \"Macintosh
HD:Users:yvankoenig:Desktop:lien_pour_forum.txt\" en type reference."
I'm quite sure that you original code contains the
tell application "Finder" … end tell pair.
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