Categories
Archived Mac & OS X Software Uncategorized

TotalFinder for OS X – Review

Today’s article is something I haven’t done for a while – a review.

If you’re someone that follows the not-often-enough-updated content on Digital Formula, you’ll know that I’ve written reviews in the past but haven’t done that many since making the switch from PC to Mac almost 18 months ago … wow has it been that long?

Anyway, the software in question today is called TotalFinder and is one of the excellent packages put together by Antonin Hildebrand of binaryage.

TotalFinder is a plugin for Finder in OS X that adds some functionality to Finder that I think perhaps should be there in the first place.

What does TotalFinder look like?

Once installed, the default settings are immediately visible when you open a Finder window. If you open a Finder window, the first thing you’ll notice is the addition of tabbed browsing. Yes! Why do I like this so much? Quite simply it’s because tabbed browsing is something that couldn’t come soon enough in the web browser world and it absolutely makes sense here, too.

TotalFinder - Default
TotalFinder – Default Settings

The same keyboard shortcuts apply as before but with a couple of additions:

  • Command+W closes the current tab (or window if there’s only one tab in it)
  • Command+T adds a new tab to the current Finder window
  • Command+N opens a new Finder window
  • Command+U toggles dual mode on or off
  • Shift+Command+; toggles ‘Folders On Top’ on and off
  • Shift+Command+. toggles ‘Show System Files’ on and off
  • Shift+Command+P toggles Visor pinning on and off (see below)

Dual Mode

This is another of TotalFinder’s additions that is critical to its success. Pressing Command-U toggles Dual Mode and gives you a view not too dissimilar to most FTP client applications. If you do a lot of file management that involves copying or moving files between two locations, dual mode will save you a ton of time and save you from wasting time arranging multiple Finder windows.

TotalFinder - Dual Mode
TotalFinder – Dual Mode

One thing I’ve noticed is that when you switch dual mode off, there are two tabs left open even if you only had a single tab open before switching dual mode on. I’m assuming this is by design.

Quickly show or hide system files

As a bit of a geek, this is something that I really like. Pressing Shift+Command+. (period/full-stop) will quickly switch between system files being shown or hidden, an invaluable shortcut if you’re working on system files quite often. No need for a screenshot of that, right? 😉

I want Finder like Windows!

Really? Well, TotalFinder can deal with that, too. Pressing Shift+Command+; (semi-colon) will toggle between folders being shown above all files or the default which is to order the Finder contents by name, regardless of whether its a file or folder.

TotalFinder - Like Windows
TotalFinder – Like Windows

The Visor

This is something that I haven’t seen in a Finder plugin before. The Visor is a feature that can be enabled by opening the Finder preferences window, selecting the TotalFinder section and switching on ‘The Visor Feature’. Once on, you can press the default keyboard shortcut (Option+`) to quickly show a screen-width Finder window. It can also be pinned in place so that the Visor doesn’t lose focus when hidden.

If you don’t like the screen-width Finder window you can also use what’s called ‘FreeForm Window’ to set your own configuration for the Visor window.

Do I want TotalFinder?

If you’re reading this website it’s probably a fair bet that that you’d get some decent use out of TotalFinder. Most people that come here are either I.T. types like me or keyboard junkies (also like me). I don’t use the mouse unless I really have to and reckon TotalFinder contributes to my shiny Microsoft mouse gathering dust – for me that’s a good thing.

Now, to be clear, TotalFinder isn’t free. It costs $15 for a single license or the equivalent of $10 per license if you buy the three license pack for use on three computers. It’s worth mentioning that Antonin, the developer of TotalFinder, does offer an interesting licensing concept where you can get a free license if you meet certain criteria.

Go on, try it. You know you want to!

P.S. Yes, I’m running the trial version of TotalFinder and there is a TimeMachine Backup running as I write this! 😉

Categories
Archived Design Mac & OS X Uncategorized

A couple of deviantART submissions

Over the last couple of days I’ve been hacking about with theming in OS X.  It’s something I’ve always quite liked since back in the day when WindowBlinds used to be the way forward on Windows.

The first theme setup I tried incorporated the Gill Sans Text Dock Icons available from deviantART.  Because the icon collection didn’t have icons for some of the apps I use, I made my own and submitted them for others people to use.  The first collection extension is available on deviantART by going to Gill Sans Text – More Icons.  I’ve also made an icon for Traktor Scratch Pro after another user requested it – it can be downloaded from Traktor Scratch Pro for Gill Sans Text on deviantART.

New theme?

I then tried the Float Dock Icons that I found on a MacThemes forum – they’re awesome!  That didn’t have icons for some of the most popular apps, either, so I made some for the best-known Adobe apps.  The icons can be downloaded from Round shiny Adobe dock icons on deviantART.  Cool.  🙂

What did I come up with?

After playing about with a ton of different combinations I came up with one that I quite like.  It’s simple (in my opinion) yet functional without being overly garish – check it out.

Modified OS X desktop
Modified OS X desktop

Why?

Why did I do this?  There’s really no good reason other than being a bit of a geek and needing an excuse to dive back in the graphics software that I’ve been missing lately.  I’m no designer (obvious, huh) but doing this stuff is pretty relaxing.  🙂

How?

I’m in the process of writing up how I made those changes now so if you’re interested in doing this yourself, stay tuned.

Categories
Archived Mac & OS X Uncategorized

Mounting Time Machine backup inside OS X terminal

Before I started using my Macbook Pro as my only machine a few days ago, I had my iMac in the office and the MBP for portable use.  This was getting painful because of the amount of time I spent keeping the machines in sync so did a complete Time Machine backup of the iMac and don’t use it anymore.

One of the problems, of course, was getting all my data from the Time Machine backup to the Macbook Pro, based on the fact that the MBP’s built-in hard disk is 500GB where the iMac was 1TB – exactly half.  For that reason I had to be very selective about what files I transferred to the notebook.  I transferred all my iTunes media but only transferred videos I’m yet to watch.

The problem

This was all fine but I was often finding that I wanted to re-watch a video I’d already seen through Apple TV but hadn’t restored from the Time Machine backup.  Sure, you can mount a Time Machine backup in Finder and transfer them that way but I wanted to see if I could automate the process from the command line.  Here’s how I did it.

A small script did the trick

In the OS X Terminal application you can run the following script to mount a Time Machine backup and copy a video that’s passed to the script as a parameter into your iTunes movies directory.

The script mounts the sparsebundle file, copies the video then dismounts the Time Machine sparsebundle.  The mount and unmount processes do require sudo privileges so you may get prompted for a password, depending on your system configuration.  Don’t forget to change the file and device names etc so they match yours.

#!/bin/bash

# mount the Time Machine backup
sudo hdiutil attach -readwrite /Volumes/Backup/backup.sparsebundle

# copy the requested video from the backup to the ~/Movies directory
cp "/Volumes/Time Machine Backups/Backups.backupdb/backup/Latest/ HD/Users/me/Music/iTunes/iTunes Media/Movies/$1" "/Users/me/Music/iTunes/iTunes Media/Movies/"

# unmount the Time Machine backup
sudo hdiutil detach /Volumes/Time Machine Backups/

That’s really all there is to it and it all happens with very little effort.  My script is in the PATH variable so it’s just a case of opening the Terminal (using Alfred, of course) and running the script with the video as a parameter.  If everything goes well you’ll see something like this:

Copy movie script
Sample output from above script
Categories
Archived Mac & OS X Software Uncategorized

Running HandBrakeCLI from Hazel

Recently I’ve been working on some video I shot back in 2009 while in Whistler, Canada on a mountain biking trip.  I’ve been exporting them as fairly standard .AVI files because that produces good results but I’ve recently started adding them into my iTunes library so I can watch them on my Apple TV.  I use HandBrake to convert them to .M4V files which can then be imported into iTunes.  This is a manual process, though, so I set about trying to automate it without having to get my video editing program to export to .M4V (the results weren’t very good for some reason).

Hazel

Using Hazel from NoodleSoft, I’ve setup some rules so that when a file of a particular type appears in a selected folder, it runs a Bash script to convert the video and put it into ~/Movies/iTunes.  Hazel isn’t free but is worth every cent of the $21.95 USD that I paid for it.  Anyway, if you’ve got Hazel you’ll probably know how to add a folder rule so I won’t go into that here, although the screenshot below should be all you need.  Here’s the script I run from Hazel.

FILEIN=$1
FILEOUT=`echo "$FILEIN" | awk -F. '{ for (i=1;i<NF;i++) printf $i"."; printf "m4v"}'`
HandBrakeCLI --preset "AppleTV 2" --input "$FILEIN" --output "$FILEOUT"
mv "$FILEOUT" ~/Movies/iTunes/
mv "$FILEIN" ~/.Trash/

Important note: I’ve just noticed that the Syntax Highlighter plugin kinda breaks the code if it has certain characters in it.  If you’re going to copy the script above, change &lt; to the < symbol.

And here’s a screenshot of how my Hazel rule’s configuration looks.

Hazel rule
Hazel rule to run HandBrakeCLI

That script will set a variable called FILEIN to the name of the file being processed, set a variable called FILEOUT to the same filename but with the extension changed to "m4v" without the extension then, using those variables, run HandBrakeCLI to convert the video using the built-in preset called "AppleTV 2".  The processed video is then moved to the Movies/iTunes folder in my home directory and the source file is moved to the trash.  Note that the file isn’t deleted per se, just moved to the trash.  I might want it back later, who knows …

HandBrakeCLI

The second part, of course, is that you need HandBrakeCLI before the script above will work.  I’ve got HandBrakeCLI in ~/_Applications but you can put it anywhere.  Don’t forget to specify the full path to HandBrakeCLI unless you add the directory name to your PATH environment variable.  HandBrakeCLI is in my PATH so I haven’t specified it above.

The Results

So what happens?  Once a file had finished exporting into the appropriate folder, Hazel realises it’s there and runs the script that calls HandBrakeCLI.  The command line options specify that the video should be output in a format that’s compatible with Apple TV, and therefore iTunes.  I could use the iTunes "Automatlcally Add to iTunes" folder but I’ve decided not to at this point.

I’ve got this setup on my Mac Mini server and it just sits there, patiently waiting for the .AVI files to appear in the appropriate folder.  Easy.

Categories
Archived Mac & OS X Opinion Uncategorized

OS X local file management with Panic’s Transmit

On OS X I use Panic‘s excellent FTP application – Transmit.

Yes, it’s an FTP client and one of the best there is, in my opinion, but it’s also 100% capable of functioning as a local file browser and management tool.  Like most FTP clients it has the typical split-pane interface that everyone’s familiar with, both of which can be a local browser.

Now, I’m not trying to pull the wool over anyone’s eyes by crowing about Mac being so good at everything, etc – obviously any decent FTP client for Windows (FileZilla, CuteFTP, WS-FTP, SmartFTP) will be able to do the exact same thing.  If you’re a Windows user this article is a tip for you, too – it’s much easier than using multiple Finder (OS X) or Explorer (Windows) windows.

In Transmit it’s simply a case of clicking the "Switch to local browser" on the far right of the main Transmit window, as shown below – it’s the round button to the right of the word "WebDAV".

Switch to local browser button
Switch to local browser button
Categories
Archived Mac & OS X Software Uncategorized

iTunes Media Management Made Easy

I use iTunes to manage all my media now.  Since I don’t use Windows anywhere at home I made the decision to add everything to iTunes, including music, movies and TV shows.  One of the problems I ran into, though, was after ripping one of my TV show collections from DVD I found that I’d messed something up and ended up with a ton of episodes with the right show name but the wrong episode numbers.  Painful!

I did some searching and came up with Doug’s AppleScripts for iTunes, a collection of AppleScripts that includes a ton written specifically for managing iTunes.

Doug has written one called Set Video Kind Of Selected, currently version 3.2 as of February 5th 2011.  It allows you to make a selection and set the starting episode number (amongst other things) so that all the selected media is sequentially numbered from the number you entered.  This is such a simple idea and yet SO useful – it totally solved my media management problem in this case.

When you run it, you’re presented with a small dialog box that allows you to set video kind, show name, season number and episode number start for the selected tracks.  Your changes, once made, are applied when you click the "Done" button.

iTunes Script - Set Video Kind of Selected
Set Video Kind of Selected

Unfortunately for those readers using Windows, this one ain’t for you – AppleScript only works on OS X.  Sorry.

All my TV show issues are now solved and the episodes numbered correctly.  Cool.  🙂

Categories
Archived Linux Mac & OS X Uncategorized

Using rsync to synchronise folders

I keep most of my primary files on my iMac. Needless to say, this would be a pretty dumb move if I kept them there, and there only. However, I’m a paranoid freak when it comes to data, having lost 7 years worth of work in 1 go a few years back – I’m not letting that happen again. I use an Apple Time Capsule and Apple Time Machine for my primary backups and it’s saved me once or twice already.

Why?

Anyway, because I also have a Macbook Pro, that means I’m sometimes working where my iMac isn’t. I needed a solution to synchronise a specific set of folders on my iMac and my Western Digital portable USB drive. There are a ton of ways to do this but because I’m a geek I chose to use the command line (Terminal, in OS X) and write a small script. I’m using rsync for this – here’s the script, should you need something like it yourself.

The Script

Synchronise with rsync:

#!/bin/bash

# sync the files
rsync ~/Data/Solutions /Volumes/Backup --recursive --verbose --delete --progress --human-readable --exclude="tmp*"

# unmount the external drive
sudo diskutil unmount /Volumes/Backup

What does it do?

Simple! The script script above does the following.

  • Synchronises all files in the sub-folder Data/Solutions in my home folder onto my USB drive (called ‘Backup’). All files matching the file pattern tmp* are skipped.
  • Ejects the USB drive when finished.
  • All sub-folders are included.
  • Files that exist in the destination but not in the source are deleted.
  • Progress of each file is displayed as it is copied.
  • All output is in human-readable format … because I’m human.

The eject part prompts for my password before ejecting because the diskutil unmount command is a privileged operation and requires elevated rights before it will be allowed,

Simple, but useful. 🙂

Categories
Archived Mac & OS X Uncategorized

How to host multiple websites on OS X Snow Leopard

I've been doing a ton of web development lately and, since switching to Mac back in November 2009, it means all my local development is now done using the OS X implementation of Apache Webserver. Because there are a couple of different sites on the go right now I figured that simulating the production environment as much as possible would be a good idea. To me that means using actual hostnames e.g. http://digitalformula4.local/ rather than http://localhost/digitalformula4/ or, another alternative on OS X, http://localhost/~user/digitalformula4 (yuck).

The Process

Luckily, because OS X has access to pretty much all the Apache Webserver configuration options that are available on the full production install of Apache, setting this up is easy. For this example I’m going to assume you’ve got at least OS X 10.6 as that's what I'm using and I haven’t tried it on anything older. At a guess, though, I can’t see why this won’t work on some older versions of OS X. Here are the steps I followed.

  • Open System Preferences, go to Sharing and make sure Web Sharing is enabled. Without this option checked Apache won't work. If you want FTP access you can also enable that by clicking Options under 'File Sharing'. This isn't part of this article, though.
  • Navigate to /Library/WebServer/Documents/ and make a folder that means something. For now I'll stick to the example above – 'digitalformula4.local’'. You can either do this using Finder or by using the Terminal if you're comfortable doing it that way like me. The Terminal somehow makes you feel a bit more geeky, too. 😉
  • Edit /private//etc/apache2/extra/httpd-vhosts.conf. You'll need to do this as a user with appropriate permissions although using 'sudo' will also work. E.g. sudo nano /private/etc/apache2/extra/httpd-vhosts.conf from the Terminal should prompt you for your password and then allow you to edit the file. Here's a screenshot of what my digitalformul4.local section looks like in my httpd-vhosts.conf file. Don't forget to change the email address section to your email address!

    httpd-vhosts.conf

  • You then need to edit /private/etc/apache2/httpd.conf and uncomment (remove the leading #) from the line that reads Include /private/etc/apache2/extra/httpd-vhosts.conf. Why? If you don’t, the changes you just finished making to httpd-vhosts.conf won’t mean anything.
  • Once you've modified and saved those files you'll need to restart Apache. The command for this, also requiring relevant privileges, is sudo apachectl restart.
  • Edit /etc/hosts on the server and add the following line: 127.0.0.1 digitalformula4.local. Make sure you change digitalformula4.local to the name of YOUR host.
  • On the machines you'll be browsing FROM you'll need to tell them how to find the new server. In my case I'm using a static IP address scheme – my server is configured on 192.168.0.3. On OS X this means editing /etc/hosts and adding the following line: 192.168.0.3 digitalformula4.local.
  • On OS X you may need to clear your DNS cache before you can find the new hostname. Again from the Terminal, this command should work: sudo dscacheutil -flushcache.

Using those steps you should be able to then save files into /Library/WebServer/Documents/digitalformula4 (replaced with YOUR host name, of course) and have them show up in the browser. This is good for when you want to use 'real' paths e.g. /images/ instead of worrying about virtual paths when doing your development.

Hope that helps someone!

Categories
Archived Mac & OS X Software Uncategorized

What tools, software & applications do I use? v3.0

This post is intended as a couple of things. Firstly, it’s the 2nd rewrite of a post I wrote a while ago that covered the same thing as this one covers but from when I was running Windows.

I’ve actually had a couple of people ask me what tools I use for various tasks so I’m going to compile a list of the various applications I use ‘every day’. That’s in quotes as obviously I don’t use all of these tools EVERY day but I consider them part of the list of tools I couldn’t do without. I don’t use anything particularly special but I’ll make this list for those that’ve asked anyway. Secondly, I keep meaning to make a list of tools I use for my own reference so it’ll double as that, too.

I’m not going to go into a whole load of detail about what the benefits of each one are – I’ll let you work that out for yourself if you want to try them (feel free to contact me if you want to discuss any of these though). I will include a couple of things which aren’t strictly applications too, e.g. hosting services. So, here we go – these details are correct as at July 18th, 2010.

Applications & Utilities

  • » Operating system :: Mac OS X 10.6.4 (Snow Leopard) on a 27″ iMac and a 15″ Core i7 Macbook Pro. I made the switch from PC to Mac towards the end of 2009 and am wishing I’d done it years ago (based strictly on what I use my machines for). Please keep comments about Mac vs PC to yourself as I’m not interested in comparing the two – they’re both great for different reasons.
  • » Office Suite :: Microsoft Office 2008 for Mac … unfortunately I have to say that compared to the Window version this really is quite crap. Office 2011 for Mac promises to bridge the significant feature gap between Office for Windows and Office for Mac, though.
  • » Email client :: Mozilla Thunderbird 3
  • » App dev environment :: Xcode 3.2.1 when writing for OS X, Visual Studio Express (C#) when writing for Windows (Parallels Desktop)
  • » Web dev environment :: Coda by Panic
  • » FTP client :: Transmit by Panic
  • » MySQL administrator :: Navicat Lite
  • » Text editor :: Fraise
  • » Primary browser: Mozilla Firefox 3.6
  • » Other browsers: Opera 10.6, Google Chrome, Safari 5
  • » Twitter client :: Kiwi for Mac
  • » Password storage :: KeePassX – *highly* recommended on both OS X and Windows (the Windows version is called KeePass although KeePassX is available for Windows, too).
  • » iPod manager :: iTunes – on OS X it’s actually really good and seems 100x more stable than the Windows version.
  • » Photo processing :: Adobe Photoshop Lightroom 3 – I used to use Capture One 4.8 from Phase One but it started to fall WAY behind Lightroom in terms of post-processing options … a real shame.
  • » Fitness management :: Rubitrack for Mac (my training device is a Garmin 310xt)
  • » Instant messaging :: Windows Live Messenger>
  • » Movie player :: VLC (everyone should use this although it struggles with the TSCC codec unfortunately).
  • » Audio player :: iTunes

System Stuff

  • » System management :: MacKeeper.  The differences this thing can make to your Mac’s performance (which is probably already pretty sweet) are astounding.
  • » System hackery :: Tinker Tool.  Purely for the Mac geeks out there.

One thing you might notice is they’re pretty much all free tools with the exception of Lightroom, Rubitrack, Coda, Transmit and MacKeeper, all of which I own licenses for (no they’re not pirated!).

Online Services

  • » Website host :: ICDSoft – these guys are AMAZING. I wouldn’t use anyone else for Linux hosting.
  • » Email service :: Gmail
  • » Website CMS :: ExpressionEngine 2.1 and WordPress 3.0
  • » Online photo sharing :: Flickr (I own a ‘Pro’ account)
  • » RSS feed management :: FeedBurner
  • » Website statistics :: Google Analytics
  • » Search engine :: Altavista … haha yeah right. 😛
  • » Bookmarks :: Delicious – I stopped using browser-based bookmarks many years ago. Ok, so bookmarks are considered a bit backward now but I’ve got stuff on Delicious that I refer back to all the time. Thankfully the functionality doesn’t seem to have changed at all since its acquisition by Yahoo some time ago.

That’s about it really. As I said earlier I’m happy to discuss any of these if you like – just post a comment or use the Contact Me link at the top of the page.

Thanks!

Categories
Archived Mac & OS X Uncategorized

Playing about with AppleScript…

I’ve been playing about with AppleScript today as there are a couple of tasks I want to automate on my system (Snow Leopard 10.6.3 as I write this). My background in I.T. means that task automation is something I’m into for obvious reasons … why take ages to do something many times when you can automate the process and have it done in 1/10 of the time when it needs to be done next? 🙂

Anyway, I use KeePassX to store my passwords (it’s the OS X version of KeePass, in my opinion easily the world’s best open source password safe. Although I use Time Machine (it does a great job) I need to carry my passwords with me. I don’t use the same password all over the place which means I have a whole bunch of passwords – KeePassX means I don’t have to remember them all.

So, where does AppleScript fit in? I used to use a bash script to keep my USB key (a LaCie itsakey) and local hard drive password databases in sync and, while it worked fine, I decided to have a go at doing the same thing using AppleScript.

AppleScript is, for lack of a better expression, painfully close to being English. It’s stupidly easy to write although there are some advanced things you can do with it too (I’ll get to those in a future post).

Here’s my entire script – hope someone finds it useful. 🙂 Please note that this version uses Growl to display notifications – I highly recommend installing it if you don’t have it installed already. Please also note that a production script would have much better error handling but this one does what I need it to. Comments welcome!

Script to backup KeePass database

-- see if Growl is available on this system
tell application "System Events" to set GrowlAvailable to exists application process "GrowlHelperApp"

if GrowlAvailable then
	-- enable the script to send Growl notifications
	tell application "GrowlHelperApp"
		set the allNotificationsList to {"Old KeePass versions removed.", "Old KeePass versions backed up.", "Master KeePass versions copied successfully."}
		set the enabledNotificationsList to {"Old KeePass versions removed.", "Old KeePass versions backed up.", "Master KeePass versions copied successfully."}
		register as application "Backup KeePass Database" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Script Editor"
	end tell
end if

set diskName to "LaCie"
set folderName to "KeePass"
set databaseName to "passwords.kdb"
set databaseBackup to databaseName &amp; ".bak"
set keyfileName to "passwords.key"
set keyfileBackup to keyfileName &amp; ".bak"

-- get the username of the current logged in user
set userName to do shell script "whoami"

try
	tell application "Finder"
		if exists folder folderName of disk diskName then
			-- set the locations of the original, destination and backup KeePass files
			-- because we're using aliases, these files &amp; folders MUST exist first or an exception will be thrown
			set sourceDB to file databaseName of folder folderName of folder "Data" of folder userName of folder "Users" of disk " HD" as alias
			set sourceKeyfile to file keyfileName of folder folderName of folder "Data" of folder userName of folder "Users" of disk " HD" as alias
			set destDB to file databaseName of folder folderName of disk diskName as alias
			set destKeyfile to file keyfileName of folder folderName of disk diskName as alias

			set bakDB to file databaseBackup of folder folderName of disk diskName as alias
			set bakKeyfile to file keyfileBackup of folder folderName of disk diskName as alias

			-- set where the files will be copied to
			set destFolder to folder folderName of disk diskName as alias

			-- if exists file databaseBackup of folder folderName of disk diskName then
			if exists file bakDB then
				-- delete the existing backup files
				delete file bakDB
				delete file bakKeyfile
				if GrowlAvailable then
					tell application "GrowlHelperApp"
						notify with name "Old KeePass versions removed." title "Backup KeePass Database" description "Old KeePass versions removed." application name "Backup KeePass Database"
					end tell
				end if
			else
				set continueResult to display dialog "Backup files are missing from " &amp; folderName &amp; " on disk " &amp; diskName &amp; ".  Continue anyway?" buttons {"Yes", "No"} with icon caution with title "Backups missing"
				if button returned of continueResult is "No" then
					return
				end if
			end if

			-- backup the existing files
			if exists file destDB then
				set name of destDB to databaseBackup
				set name of destKeyfile to keyfileBackup
				if GrowlAvailable then
					tell application "GrowlHelperApp"
						notify with name "Old KeePass versions backed up." title "Backup KeePass Database" description "Old KeePass versions backed up." application name "Backup KeePass Database"
					end tell
				end if
			end if

			-- copy the master files
			copy file sourceDB to folder destFolder
			copy file sourceKeyfile to folder destFolder
			if GrowlAvailable then
				tell application "GrowlHelperApp"
					notify with name "Master KeePass versions copied successfully." title "Backup KeePass Database" description "Master KeePass versions copied successfully." application name "Backup KeePass Database"
				end tell
			end if
		else
			display dialog "Oops!  The destination folder you selected, /" &amp; diskName &amp; "/" &amp; folderName &amp; "/, ain't there!.  :(  Please check it and try again." buttons {"Ok"} with icon stop with title "Oh no!"
		end if
	end tell
on error
	-- an exception occurred
	display dialog "An expected error has occurred while backing up your KeePass files.  Have a look to see if all the required files are there and try again ... k?  :)" buttons {"Ok"} with icon stop with title "Oh no!"
end try