09-29-2010, 07:51 PM #1Terminal Command to open most recently modified .Numbers file ???
Anyone know a Terminal Command to open the most recently modified .Numbers file in a particular directory?
09-29-2010, 09:47 PM #2
I can't help you right now but have you considered writing an applescript to do this? There may be something available if you look in the Numbers dictionary (I don't have Numbers so I can't look).
EDIT: Don't listen to myself of about ten minutes ago.
The ls command lists the files in a directory. According to the man page, the t switch will "sort by modification time" (man page). If you then used grep, you could probably limit the results to .Numbers files and have them print in order of last edited. So, something similar to:Code:
ls -t | grep ".Numbers"
09-30-2010, 12:07 AM #3
- Member Since
- May 14, 2009
- Near Whitehorse, Yukon
- 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
I'm amazed, didn't think that I would manage it but I figured it out in about 30 minutes of trial and error.
And believe me, there were lots of errors
cd ~/Desktop; open "`ls -t | grep .Numbers | head -1`"
09-30-2010, 02:52 PM #4
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By System Networks in forum OS X - Operating SystemReplies: 0Last Post: 09-25-2012, 05:13 AM
By bacaandrew in forum OS X - Apps and GamesReplies: 0Last Post: 03-16-2012, 12:29 PM
By iVega in forum OS X - Operating SystemReplies: 0Last Post: 01-06-2010, 12:14 PM
By drjimmy42 in forum OS X - Operating SystemReplies: 0Last Post: 03-03-2009, 12:06 AM
By erv2 in forum OS X - Development and DarwinReplies: 3Last Post: 02-17-2006, 06:08 PM