dr.crippen Posted June 20, 2010 Posted June 20, 2010 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
comment Posted June 20, 2010 Posted June 20, 2010 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).
dr.crippen Posted June 20, 2010 Author Posted June 20, 2010 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
comment Posted June 20, 2010 Posted June 20, 2010 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.
dr.crippen Posted June 20, 2010 Author Posted June 20, 2010 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
comment Posted June 20, 2010 Posted June 20, 2010 I believe ScriptMaster by 360Works can do this. Check out also Grab-it by FMWebschool and yooWeb by yooPlugs.
dr.crippen Posted June 20, 2010 Author Posted June 20, 2010 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
comment Posted June 20, 2010 Posted June 20, 2010 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)?
dr.crippen Posted June 20, 2010 Author Posted June 20, 2010 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
comment Posted June 20, 2010 Posted June 20, 2010 I am looking at the "Get URL as Container" module of ScriptMaster demo file - and it inserts the image as viewable picture.
dr.crippen Posted June 20, 2010 Author Posted June 20, 2010 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
Recommended Posts
This topic is 5281 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now