Jump to content
Sign in to follow this  
Asu

fmp17 Opening PDF files in containers

Recommended Posts

Hello -- I would like to open pdf files that are stored in a secure external manner. 

Only the first page of multipage files show in a FM container window (if I';m not mistaken) so I am wondering about using Preview (Mac, of course). I can retrieve the file path to the secure file by processing the text output of the container file, and then use it as a variable filename in a Send Event script step,  but Preview cannot open it.

Any suggestions?

Share this post


Link to post
Share on other sites
2 hours ago, Asu said:

Only the first page of multipage files show in a FM container window (if I';m not mistaken)

If I am not mistaken, you can format the container field as interactive container. Then you'll get an instance of Adobe Reader inside the field, allowing you to scroll and/or page through the PDF document.

In order to open the PDF in Preview, you would have to export it first. While you have it encrypted in external storage, Filemaker is the only application that can open it (that is the purpose of the encryption).

Share this post


Link to post
Share on other sites

Well I would think it would decrypt it then pass in on to another app. 

But if I'm not mistaken, I understand what you are saying so thank you for your suggestion

 

Asu

Share this post


Link to post
Share on other sites
1 hour ago, Asu said:

I would think it would decrypt it then pass in on to another app. 

While it's decrypted, it exists only as the contents of the container field in the current record. These contents are not accessible to other applications. Exporting the field is a way to make them so. Perhaps there is another way to pass the contents using AppleScript - I am not sure if and how that would work. In any case, passing the path to the file will not accomplish anything, because the file does not live there.

Share this post


Link to post
Share on other sites

Just out of curiosity, I tried the following: 

  1. Click in the container field;
  2. Select 'Copy' from the Edit menu;
  3. Switch to the Preview application;
  4. Select 'New from Clipboard' from the File menu.

This will open a copy of the PDF in the Preview application as a new, unsaved document. But again, this should not be required if you format the container as optimized for PDF.

 

 

 

Edited by comment

Share this post


Link to post
Share on other sites

Thank you

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By ChangeAgent
      Is this at all possible?
       
      I want to have two buttons that will each do the following. 
      Have one button to ‘Strike Thru’ text that is highlighted before.  Means not all the text in the field will be changed.
      And one button to change the text colour to Red, again highlighted before.  Means not all the text in the field will be changed.
       
      Any tips how to do this?  Please bare in mind I am a FMP beginner.  Thanks. 
    • By lutfishah
      Dear All,
      I am trying to put a conditional formatting validation which turns Red when the value is entered wrong. Basically all my tries have failed so I would like your help here.
      The criteria of entering a value is 
      xxxx-xxxx-xxxx-xxxx
      1111-2222-3333-4444
      1. Length of value is  = 19     OR      this should be a 16 digit number, in groups of 4 separated with dashes
      2. Non-Digits characters are not valid.
      Please could you help me with this and I will really appreciate. 
      Many thanks
      Regards
      Lutfi
       
    • By Koonce
      I have filemaker server on virtual server, I have a script that exports emails and or names i cannot get the file to be saved to the local desktop it tries to save to server with an error when i do manually it works fine so i am doing something wrong...
      Thanks in advance
    • By ThomaStudios
      I have been using FM17Adv for some time.  I am on a MacPro 12-core tower and I had been running macOS Sierra.  All the internal scripts I had in one database worked perfectly.
      I recently updated to High Sierra and now I am getting script errors I don't understand.  And this is from the same exact file I used previously.  I have one script where I want it to open a folder in Dropbox so I can access files there.  But I am getting this error:  Can’t make "Dropbox" into type integer.  Then I get a -1700 error dialog immediately after that.  Can anyone explain how I can fix this.  I have not been able to find anything online.
      The script is a native AppleScript, and I suspect that has something to do with this.  Here is the script:
      tell application "Finder"     activate     open folder " Pieces 2011" of folder "Teaching Material" of folder "Dropbox" of "  ThomaStudios 4TB"     select Finder window 1 set position of Finder window 1 to {2877, 167} end tell
      Thanks.
      J D Thomas ThomaStudios
       
    • By Caio Euzébio
      Hi Guys,
      There are any logic or resource that i can use to make like a "text to columns".
      Make text from field one flow to another fields but only with in the middle of coma regarding your sequence, like a excel?
      Full text with Comas Text1 Separated Text2 Separated Text3 Separated How,Are,You? How Are  You? Could please help me, i need a lot of this resource.
       
       
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.