Skip to content

Does stapler use absolute path for files? #20

Answered by gingerbeardman
wwzhang asked this question in Q&A
Discussion options

You must be logged in to vote

Stapler uses security scoped bookmarks, which are provided by macOS and are the modern version of an "alias". They have many benefits over symlink or a simple plain text path, but some downsides as you have discovered.

A bookmark stores the relative and absolute paths, inode numbers, volume name, and much more information. This allows the shortcut to be resolved even if the file is moved on the disk, or even to another volume on the same filesystem (you could say "computer").

I simply ask the system for a bookmark, and store it. Then I ask the system to open the file at the bookmark and it does it. It's a pretty hands-off approach.

So, I think the request for bookmarks to work across comp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gingerbeardman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #18 on August 20, 2024 13:56.