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

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 10, 2013, 01:02 PM   #1
TheMTtakeover
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
Code:
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!
__________________
#TeamTaji
TheMTtakeover is offline   0 Reply With Quote
Old Jan 10, 2013, 01:31 PM   #2
lee1210
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.

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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:57 AM.

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

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