Relative path in InDesign script

Hello,

I have a script that places a snippet onto the current page of an active document in InDesign. Right now the snippet is on my desk top so I constructed an absolute path to it in the script. However, I would rather use a relative path. Question: Should the snippet be kept in the same location as the script, or in the same location as the active document? How do I construct the relative path?

Thank you very much.

Hi,

I recommend to use a script bundle and put the snippet into the bundle.
path to me refers to the script (bundle) itself