Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy Image using Script

Featured Replies

Hi,

I am trying to copy a .GIF image that has loaded in the Web Viewer and paste it into a container to store it for use later. It is an image that is dynamic so I need to store it separately. Have tried GetLayoutObjectAttribute ( "webViewer"; "content" ), but not had any success in pasting or setting the container to the image.

Has anyone any ideas, or is this not an available function....? I can right-click / control-click and copy the image, but I want to be able to script this.

Many thanks,

Crispin

I don't think you can do this natively in Filemaker, because the image is (likely) not there. GetLayoutObjectAttribute ( "webViewer"; "content" ) returns the HTML code of the viewed page - so it contains only a link to the image (or perhaps a base-64 encoded image data).

  • Author

Hmmm... I did suspect that might be the case.... as I have been able to either copy the name of the image or its URL.

As I am able to 'manually' copy the image using control-click I wondered if there was a way of forcing that to happen?

Crispin

I am able to 'manually' copy the image using control-click

True, but this happens in the browser application, not in Filemaker. You need either a plugin or an OS-level script.

  • Author

Can anyone suggest a plugin for this? I have tried Troi URL but that doesn't do it (I just text loads of text data, not the image). Image Extractor I cannot locate, but it sounds like it might have done the trick if I could find it!).....

Help!

Crispin

I believe ScriptMaster by 360Works can do this. Check out also Grab-it by FMWebschool and yooWeb by yooPlugs.

  • Author

Sadly yooWeb no longer runs on FMP10 or 11, grabit is no longer available, and although ScriptMaster will download files, I am only trying to copy the image into a new container (rather than store the image file in that container).

Having looked all around the web I can see that this is a feature that is quite sought after, and I guess there is no solution that works, so maybe I should put this on the wish list with FileMaker...

Thank you for your help.

Crispin

I am only trying to copy the image into a new container (rather than store the image file in that container).

What's the difference (other than getting better quality when inserting the image vs. pasting)?

  • Author

Maybe I'm missing the point, but I was hoping to have the image viewable in the container rather than just store the image file in the container (whereby I just see an icon and the filename). I appreciate the quality issue you mention, however I'm dealing with a known image size that I just need viewable.

Many thanks,

Crispin

I am looking at the "Get URL as Container" module of ScriptMaster demo file - and it inserts the image as viewable picture.

  • Author

Strange, not happening for me, however I have revisited the Troi plugin and am having a bit more success after a bit of perseverance.

Many thanks for your advice,

Crispin

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.