| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,556
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: Mac's
|
Anyone know a Terminal Command to open the most recently modified .Numbers file in a particular directory?
Last edited by RiDE; 09-29-2010 at 07:11 PM. |
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,289
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
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" Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. Last edited by vansmith; 09-29-2010 at 08:57 PM. |
| QUOTE Thanks | |
![]() Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,031
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: Late 2008 MBP 15" - 2.4 GHz C2D - 8 GB RAM - 60 GB SSD & 500 GB HD - Mac OS 10.8.1 - 32 GB iTouch 4G
|
And believe me, there were lots of errors ![]() Code:
cd ~/Desktop; open "`ls -t | grep .Numbers | head -1`" ~Alex Use the reputation system if a post helps you! Mac Forums IRC Channel - Help build it by hanging out with us The next sentence is true. The previous sentence is false. |
||||
| QUOTE Thanks | |||||
![]() Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,556
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: Mac's
|
Quote:
Thank you both very much!!! |
|
| QUOTE Thanks | ||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Can't open Comic Life file | Puffetta | OS X - Apps and Games | 2 | 11-12-2009 06:51 AM |
| open a terminal with top on startup | HogsPogs | OS X - Development and Darwin | 1 | 07-24-2009 04:32 AM |
| iWeb cannot open file | m.watson | OS X - Apps and Games | 0 | 07-07-2009 10:49 PM |
| Info.plist to *open* a file | gamblor01 | OS X - Development and Darwin | 2 | 03-22-2009 11:00 PM |
| Not too pleased with new iMac | JunMacTech | Apple Desktops | 14 | 12-05-2005 07:13 PM |
All times are GMT -4. The time now is 07:03 PM.
Powered by vBulletin