Page 1 of 1

Tags to create aliases/shortcuts/links to current docs

PostPosted: Mon Feb 03, 2014 10:05 am
by psidnell
I keep most of my documents in an organised file structure (managed by "Together 3") but like to have shortcuts on the desktop to documents that I'm currently working on.

I've taken to tagging these as "WIP" (work in progress) using mavericks tags and have just created two nice rules to:

1. Create shortcuts from any file tagged WIP to the desktop.
2. Delete any shortcuts on the desktop that aren't tagged WIP.

I don't usually have anything else on my desktop and I rarely have more than a handful of docs I'm working on at any one time.

The embedded bash script I use for creating the "aliases" (symbolic links!) is:

SRC=$1
DST=~/Desktop/`echo $1 | sed -e 's/.*\///g'`
if ! [ -e "$DST" ]
then
ln -s "$SRC" "$DST"
fi