- == note ==
This tidbit is a shell script that simply lets you easily append some lines you type, or paste, into a well-known file for later perusal. Makes it just easy enough that you will actually make important little notes that later you will cherish, such as when trying to remember the location of a config file or what options you used to tar something or... whatever!
On my machines, I just have to type 'note' at the shell, and then enter my little blurb. It gets timestamped automatically, too.
It would be nice if it took command line args as a one-liner...
#!/bin/sh # note - make a note, with date, into notefile TARGETDIR=$HOME/doc TARGET=$TARGETDIR/notes.txt # make sure the thing exists mkdir -p $TARGETDIR touch $TARGET # add a note echo "[`date`]" >> $TARGET echo "Type your note and end with CTRL-D" cat >> $TARGET
== Call shell scripts from within FileMaker == This is a bit of applescript to call shell scripts from within a filemaker database. I find it very useful for interacting with the system from within the wierd cage of Filemaker...You can create a button that calls this script: tell application "Terminal"
- do script "find / -iname "mailfrombondo*" ; exit"