Page link syntax
Posted: Thu Apr 17, 2025 3:46 am
When I copy a link to a page, it has a format like this:
bookends://sonnysoftware.com/pdf/Library1/138383/1673361249/6
What is that middle number between the unique id and the page? Is it an attachment id? Is this in some way accessible to scripting?
The reason I'm asking is that I'd like to construct page links in scripts/shortcuts based on information about the publication and page number, just like I can in DEVONthink, where it's just id+page. There are different uses for this: Turning handwritten notes with just a page number into markdown notes with links to that page, or asking an LLM to return page links for easier verification.
If this other id is not possible to get automatically, the feature request would be to either
- add this to the "attachment item" object in applescript
- allow simpler links based on just the uuid (bookends://sonnysoftware.com/pdf/Library1/138383/6 in the example) that would then always open that page in the first attachment associated with the item. I'm assuming most people have only one attachment per item like me. It could also make the links more future-proof in some cases, like when an attachment is replaced by a different, annotated version with the same number of pages.
bookends://sonnysoftware.com/pdf/Library1/138383/1673361249/6
What is that middle number between the unique id and the page? Is it an attachment id? Is this in some way accessible to scripting?
The reason I'm asking is that I'd like to construct page links in scripts/shortcuts based on information about the publication and page number, just like I can in DEVONthink, where it's just id+page. There are different uses for this: Turning handwritten notes with just a page number into markdown notes with links to that page, or asking an LLM to return page links for easier verification.
If this other id is not possible to get automatically, the feature request would be to either
- add this to the "attachment item" object in applescript
- allow simpler links based on just the uuid (bookends://sonnysoftware.com/pdf/Library1/138383/6 in the example) that would then always open that page in the first attachment associated with the item. I'm assuming most people have only one attachment per item like me. It could also make the links more future-proof in some cases, like when an attachment is replaced by a different, annotated version with the same number of pages.