Script to Get ParentPath

Hi,
I have an idea for a function I'd like to implement with Hazel but I need to script it and unfortunately I'm next to useless with Applescript.
I want to get the location of a file (parentpath I think) and save that to the spotlight comments of that file, so that when I then move the file, I can move it back to it's original location using that info.
So, how the hell do I do that?
Thanks in advance for any tips
I have an idea for a function I'd like to implement with Hazel but I need to script it and unfortunately I'm next to useless with Applescript.
I want to get the location of a file (parentpath I think) and save that to the spotlight comments of that file, so that when I then move the file, I can move it back to it's original location using that info.
So, how the hell do I do that?
Thanks in advance for any tips