|
|
some small improvements
This seems like a really good idea. I've written a version in bash that has the following additional advantages:
1. Shorter
2. Doesn't make you specify "-c" to create a new file: it will be created if it does not exist.
3. Lets you list more than one file to edit on the command line.
Here's the script:
#!/bin/bash
for i in "$@"; do
[ ! -e $i ] && touch $i
done
open -a "/Developer/Applications/Project Builder.app" "$@"
some small improvements
Thanks for the suggestions. I'm now using the bash script.
some small improvements
No problem...I'm glad it was helpful. Like you said, the "-c" thing is a matter of personal preference. I'm used to editors like vi, which will create a file if it doesn't exist, but you can make a perfectly valid case for the other way, too. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|