Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jan 10, 2013, 01:02 PM   #1
macrumors 6502
Join Date: Aug 2011
A way to automatically create a New Folder based on that date?

I've done many many google searches and have come back with nothing. What I am looking for is either a command in the terminal or a way in applescript to create a new folder with today's date.

I am going to use this as a skydrive backup technique. So if it was
cp -av /Users/osx/SkyDrive /Users/osx/Desktop/New
I would want the new folder that is created with the cp command to be based on today's date.

Any help is greatly appreciated!
TheMTtakeover is offline   0 Reply With Quote
Old Jan 10, 2013, 01:31 PM   #2
macrumors 68040
lee1210's Avatar
Join Date: Jan 2005
Location: Dallas, TX
I am on my phone, but I'd go with cron in a form:
0 0 * * * *
To run at 00:00 daily. The command would involve mkdir and date. Someone else can surely cobble this for you, but a few minutes in manages should get you from here to there.

lee1210 is offline   0 Reply With Quote
Old Jan 10, 2013, 03:17 PM   #3
macrumors member
Join Date: Jun 2005
Location: London, UK
Using Terminal:
cp -av /Users/osx/SkyDrive /Users/osx/Desktop/$(date +%Y%m%d)
Persifleur is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Create a Keychain that automatically gets unlocked? MacMan988 OS X Mavericks (10.9) 2 Feb 22, 2014 05:57 AM
How to date automatically in Pages atticcus Mac Applications and Mac App Store 2 Sep 8, 2013 10:12 AM
automatically change to the priority of to do list based on due date applescript wild4life2013 Mac Programming 0 Sep 8, 2013 09:30 AM
Automatically move files created in a folder to a folder that has their name... Help? iansilv OS X 1 Mar 26, 2013 03:20 PM
How do I automatically create and populate folders based on document names auslegung Mac Basics and Help 4 Feb 17, 2013 06:14 PM

Forum Jump

All times are GMT -5. The time now is 09:24 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC