Here's the script for creating the shortcut. There's one thing that needs to be redefined at the top of the script. This is a variable that says where the USB device is mounted on the host PC. In my case it is:
PCMOUNTDIR="/media/UDISK\ 2.0"
To use this on a machine that uses the gnome desktop, e.g. a standard ubuntu, just unzip this file to the ~/.gnome2/nautilus-scripts/ directory. Then once you have edited the above variable, insert the usb key, open the file manager, find a PDF container directory, right click, select scripts and choose "Create shortcut".
I plan to see if I can get this to work on windows with a copy of bash.exe and sed.exe. Eventually.
|