Re: Desktop-Sweeper Script
Re: Desktop-Sweeper Script
- Subject: Re: Desktop-Sweeper Script
- From: Christopher Stone <email@hidden>
- Date: Sun, 30 Sep 2012 23:23:15 -0500
Hey Dave,
On Sep 30, 2012, at 21:32, "David B. Gustavson" < email@hidden> wrote: I get an error at compile time, objecting to: strftime (current date) into "%Y%m%d-%H%M%S"
Oops. That's a command from the Satimage.osax. I meant to change that to vanilla before I sent the script to the list.
Here's a replacement line:
set dateTimeString to do shell script "date \"+%Y%m%d-%H%M%S\""
Nigel's date-math routine is faster, but I like to use the shell for brevity.
This is an instance where Script Debugger's Manifest command comes in handy. I remembered to check for libraries, but I forgot to run 'Manifest'. :) What a wonderful and useful contribution!
Thanks!
I use FastScripts to run it in the Finder with Cmd-Opt-Ctrl-S (for Sweep).
-- Best Regards, Chris
|
_______________________________________________
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