Menu

#1613 Add command line option to open a document to a specific page

All
closed
nobody
None
5
2021-12-13
2021-07-21
No

Something like:

skim --page 15 file.pdf

or if using the "open" command, something like:

open -a Skim file.pdf --args --page 15

Discussion

  • Christiaan Hofman

    • status: open --> closed
     
  • Christiaan Hofman

    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
    
     
  • Richard Wilkes

    Richard Wilkes - 2021-07-22

    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!

     
    • Christiaan Hofman

      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.

       
  • Igor Itkin

    Igor Itkin - 2021-12-13
    open skim:///Users/me/folder/file.pdf#page=15
    

    Doens't work for me. File doesn't exist.

     
    • Christiaan Hofman

      That's because you did not type the correct URL. It should start with "skim://", not "skim: ".

       
      • Igor Itkin

        Igor Itkin - 2021-12-13

        Now he says that this file does not exist

         
        • Christiaan Hofman

          Still not the correct URL. Count the slashes.

           

Log in to post a comment.

MongoDB Logo MongoDB