• 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
Change modification date of a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Change modification date of a file


  • Subject: Change modification date of a file
  • From: Bert Groeneveld <email@hidden>
  • Date: Wed, 09 Nov 2011 11:32:02 +0100

I am also interested in example code how to change the filename with do shell script . . .


Hello,

I have a simple Finder statement to change the modification date of a file. See below. Every now and then (can't tell why) the task errors.
I was wondering: How can I perform same task without talking to the Finder (do shell script bla bla....)? Can anyone help?

set D to current date
tell application "Finder"
set modification date of alias "Macintosh HD:Users:bert:Desktop:Testfolder:week_47.txt" to D
end tell
 _______________________________________________
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

  • Prev by Date: Change modification date of a file
  • Next by Date: RE: Change modification date of a file
  • Previous by thread: Change modification date of a file
  • Next by thread: RE: Change modification date of a file
  • Index(es):
    • Date
    • Thread