opening a pdf NOT using opendialog

    May 31 2010 | 8:02 pm
    basically, I want the file to just pop open on a click, but can only make it offer a file location with opendialog. Is there another object that can make pdfs open on screen with no user choice so that the same one always opens?

    • May 31 2010 | 11:40 pm
      If you are using a mac and know the path to the document you want to open you can use the [shell] external (google or will help you find it, the UB version is probably the one you need). Send it a message formatted:
      cd ~/Desktop; open "target file.pdf"
      If you want the file to open with a specific application, rather than the default you can format it like this:
      cd ~/Desktop; open -a TextEdit "index.html"
      The first path needs to be the containing folder and the end bit is the filename.
    • Jun 01 2010 | 5:02 am
      You can also do it The Applescript Way, also using the shell object. Then you can define which application you will use for opening the PDF.
    • Jun 01 2010 | 11:00 am
      thanks guys
      love this forum...
    • Jun 01 2010 | 11:28 am
      am i missing something? probably...
      i just use the classic maxbrowser command:
      ...pretty easy to adapt to specify a path other than the patch path.
      i mean, all the other methods are great too, of course...
    • Jun 01 2010 | 1:18 pm
      the maxbrowser trick is very nice too ! isnt it just fantastic that the same thing can be done in sooooo many ways in max ?
    • Jun 01 2010 | 4:29 pm
      Or use the built-in browser object.
    • Jun 02 2010 | 10:19 am
      To pid - I tried yours and it worked a treat, but it wont open the file when I turn it into an application. Did I do something wrong?
    • Jun 02 2010 | 10:35 am
      @bob76: i'm afraid i have no idea, as applications are not my strong point. but presumably they have 'root' as themselves, as it were. try including the pdf in the app and not using the 'path' command to 'thispatcher' but simply the known path to the folder structure of the app?
      others will be able to give more help no doubt.
    • Jun 02 2010 | 12:08 pm
      A couple of days ago AD. posted this zip for the shell object on the forum...if you need it
      the first one is the right one ;-)
    • Jun 02 2010 | 12:41 pm
      All working - thanks for the shell zip - that was just what I needed.
    • Dec 09 2013 | 4:06 am
      I wonder whether the PDF files can be opened using some manual PDF readers built with the help of some manual tools which can be customized by users according to our own favors to help open and view PDF files? Any ideas?
      Best regards, Arron
    • May 08 2014 | 2:57 am
      right, pdf related software such as pdf reader, pdf viewer or other applications can be used to open pdf document. external software or built in application.
    • Apr 04 2015 | 9:03 am
      Would love to use jweb for this @HANSHÖGLUND, but it doesn't open PDFs for me. Does anyone else have this problem?
      @BOB76 and @PID, thanks for your suggestions for maxbrowser; however when I use this technique I get the following error:
      Max could not launch URL. err = -43
      I'm using Max 7 on a 2014 Macbook Pro OSX 10.9.5; if this makes a difference.
    • Jun 28 2017 | 8:13 pm
      Has anyone done something exactly like this, but in Windows, not Mac? And that will work in an application?