We cannot change the open command, as it is part of the system.
However, you already can do this. Open a skim:// URL rather than a file path, adding a #page=N fragment. (You can get an idea about the URL by copying it using the Edit menu, it is the same as a file:// URL with the protocol changed).
open skim:///Users/me/folder/file.pdf#page=15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You wouldn't need to change the open command, as that already has all the bits in place (the --args argument, specifically). However, I wasn't aware that I could use a URL to do the same thing. If that's the case, no need for any change. I'll give this a try today. Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, the --arg argument is passed to open the application, not the document. The method to open the document don't and cannot know about them, and typically Skim will already be launched and they are not passed anyway.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We cannot change the open command, as it is part of the system.
However, you already can do this. Open a skim:// URL rather than a file path, adding a #page=N fragment. (You can get an idea about the URL by copying it using the Edit menu, it is the same as a file:// URL with the protocol changed).
You wouldn't need to change the open command, as that already has all the bits in place (the --args argument, specifically). However, I wasn't aware that I could use a URL to do the same thing. If that's the case, no need for any change. I'll give this a try today. Thanks!
No, the --arg argument is passed to open the application, not the document. The method to open the document don't and cannot know about them, and typically Skim will already be launched and they are not passed anyway.
Doens't work for me. File doesn't exist.
That's because you did not type the correct URL. It should start with "skim://", not "skim: ".
Now he says that this file does not exist
Still not the correct URL. Count the slashes.