• 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: Christopher Nebel <email@hidden>
  • Date: Mon, 3 Mar 2008 12:02:53 -0800

On Mar 2, 2008, at 4:56 AM, david wrote:

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.

Suggestions?

That sort of thing (without a tell block) relies on the action being run by System Events, which isn't true any more in Leopard. Add an explicit 'tell application "System Events"', and it should work on either system.



--Chris Nebel AppleScript Engineering

_______________________________________________
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
References: 
 >Modification date in leopard (From: david <email@hidden>)

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