• 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: Creating a script that can set its own modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a script that can set its own modification date


  • Subject: Re: Creating a script that can set its own modification date
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 28 Nov 2007 19:01:01 -0800

On Nov 28, 2007, at 4:50 PM, David A. Cox wrote:

tell application "Finder"
do shell script "touch -t 202102211322 " & quoted form of POSIX path of (path to me)
end tell

By the way, you don't need the "tell" block around that "do shell script" statement. In fact, it's a bad idea to have it there -- it makes Finder handle it, which means Finder won't be able to do its regular job until it finishes.



--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: 
 >Creating a script that can set its own modification date (From: "David A. Cox" <email@hidden>)

  • Prev by Date: Re: Creating a script that can set its own modification date
  • Next by Date: Re: Mail scripting... try with a time limit
  • Previous by thread: Re: Creating a script that can set its own modification date
  • Next by thread: Quotes in strings sent to JavaScript
  • Index(es):
    • Date
    • Thread