Hey Philip,
Since you didn't post your macro it's hard to say...
How to Post Your Macro to the Forum
If you haven't read this it's worth a couple of minutes of your time.
Tip: How Do I Get The Best Answer in the Shortest Time?
Try this one – it should pop-up a window with the path of the given item.
Get Path of Selection v1.00.kmmacros (6.8 KB)
BTW – never use try - end try blocks unless you know exactly what you're doing and why.
The IF in your script would never return an error. The try block would just fail silently.
-Chris