It’s nice that you find my script useful enough to recommend it to others You never mentioned what your use case was, though. In the context of PDFs, this might be a better fit. I suggest both of you take a look:
If that’s a bit too much for you, my script could easily be modified to link to the current page (instead of just the file) when invoked on a PDF.