Index hyperlinks to open a PDF file

The usual practice is that the index entries link to a page in the text where the word occurs. I am trying to index a list of files and am indexing each word in the file name. In the MWE below, clicking on the link in the index takes me to the appropriate section in the doc, and then I can click on that to open the file.

Since the body of this document has no real meaning in this case (I am only interested in the index), I would like a way to modify this two step process to be just one step. So, I would like the links in the index to be links to the file (as they are now in the main body of the document). I am assuming that this should only require a change to the \ProcessWord macro.

Notes:

• The datatool package was used here only since my real use case gets the file names via this package.
• For the output links to open the actual files you need to use a PDF reader that supports that (such as Acrobat). The PDF viewer with TeXShop 2.43 does have support, but not the one with TeXWorks 2.3.

Code:

\documentclass{article}
\usepackage{datatool}% database
\usepackage{imakeidx}% indexing
\usepackage{hyperref}% For cross references
\makeindex

% ---------- Process Each Word:
%
% http://tex.stackexchange.com/questions/12810/how-do-i-split-a-string
\makeatletter
\def\ProcessEachWord#1{%
\begingroup%
\edef\@tempa{#1\space}%
\gdef\@tempb{#1}%
\expandafter\endgroup%
}%
\ProcessWord[\@tempb]{#1}%  #1 = substr, #2 = rest of string
\begingroup%
\ifx\relax#2\relax% is #2 empty?
\def\next{\endgroup\EndProcessWords}% your own end-macro if required
\else%
\fi%
\next%
}%
\makeatother
% ----------

\newcommand{\ProcessWord}[2][]{%
%\par\noindent\href{run:#1.pdf}{#1}% Moved Below
\index{#2!#1}%
%~#2%
}%
\newcommand{\EndProcessWords}{}

\begin{document}
\DTLnewdb{DB}%

\DTLnewrow{DB}%
\DTLnewdbentry{DB}{FileName}{Now good enough}%

\DTLnewrow{DB}%
\DTLnewdbentry{DB}{FileName}{Now good enough for you and me}%

\DTLforeach{DB}{\FileName=FileName}{%
\section{\FileName}%
\par\noindent\href{run:\FileName.pdf}{\FileName}%
\ProcessEachWord{\FileName}%
}%

\printindex
\end{document}

-

\newcommand{\ProcessWord}[2][]{%