• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Modification date in leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Modification date in leopard
      • From: david <email@hidden>
    • Re: Modification date in leopard
      • From: Ed Stockly <email@hidden>
References: 
 >Modification date in leopard (From: david <email@hidden>)
 >Re: Modification date in leopard (From: "Mark J. Reed" <email@hidden>)
 >Re: Modification date in leopard (From: david <email@hidden>)

  • Prev by Date: Re: Modification date in leopard
  • Next by Date: Safari - email contents
  • Previous by thread: Re: Modification date in leopard
  • Next by thread: Re: Modification date in leopard
  • Index(es):
    • Date
    • Thread