• 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: "David A. Cox" <email@hidden>
  • Date: Thu, 29 Nov 2007 08:38:52 -0800

Thanks for all the suggestions. I feel like I have a few choices to follow at this point.

One that was not noted here, but I tested after sleeping on the issue a bit, was to use Automator. An automator application that has just one action in it (the script I am trying to run) also seems to hold the time stamp.

Now I just have to choose which solution seems the easiest to deal with :).

DAC


On Nov 29, 2007, at 6:14 AM, Michelle Steiner wrote:

On Nov 29, 2007, at 6:57 AM, Mark J. Reed wrote:

tell application "System Events"
set the modification date of (path to me) to ((current date) + 10 * days)
end tell

That still has the same problem as David's original shell solution - when run as a compiled script, the auto-save at the end undoes the work. Every time you run a compiled script its mtime gets reset to now.

It stays the time set by the script on my system, and does not revert to the present.


I'm running Leopard 10.5.1

-- Michelle

--
If Liberals hated America, they'd vote Republican.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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>)
 >Re: Creating a script that can set its own modification date (From: Michelle Steiner <email@hidden>)
 >Re: Creating a script that can set its own modification date (From: "Mark J. Reed" <email@hidden>)
 >Re: Creating a script that can set its own modification date (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Quotes in strings sent to JavaScript
  • Next by Date: How do I use UI scripting to click a button in a save dialog in TextEdit in Leopard?
  • Previous by thread: Re: Creating a script that can set its own modification date
  • Next by thread: Re: Creating a script that can set its own modification date
  • Index(es):
    • Date
    • Thread