View Single Post
  #1  
Old March 16th, 2008, 02:17 PM
Mikuro's Avatar
Mikuro Mikuro is offline
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,682
Thanks: 6
Thanked 53 Times in 48 Posts
Mikuro will become famous soon enough
[AppleScript] Duplicate files with timestamp

Here's a script I just wrote today. It duplicates the currently selected files in the Finder, and then puts a timestamp in the name of the duplicates (instead of the generic "copy"). The timestamp uses a long date format that is properly sortable as plain text in any program: YYYY-MM-DD hh-mm-ss

For example, if you load the script with "MyFile.txt" selected at 2:15 PM, the duplicate will be named something like "MyFile 2008-03-16 14-15-01.txt".

It works with any number of files and folders selected at once.
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.8

Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc

Last edited by Mikuro; March 16th, 2008 at 02:29 PM. Reason: Changed file format from ".script" (compiled) to ".applescript" (text)
Reply With Quote
The Following User Says Thank You to Mikuro For This Useful Post:
gabiton (July 23rd, 2009)