Jump to content

Plugin to load images from the net?


This topic is 6734 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm in need of a plugin or something that is able to use a url in order to then (while connected to the internet) load a picture into a container field in fm5

it was suggested to me by the people in the scriptmaker forums that I come here for help.

Link to comment
Share on other sites

On Mac using Troi URL plugin and some AppleScript:

---AppleScript Insert Pict---

global pictName

set pictName to cell "fileName" of record 1

set fpath to ("Macintosh HD:"&pictName)

tell app "Finder"

try

open for access fpath as string with write permission

end try

end tell

set y to get data cell "Received text" of record 1

tell app "Finder"

try

write y to file fpath

close access file fpath

end try

end tell

try

set cell "gObj" of record 1 to file fpath

on error thErr

display dialog thErr

end tell

where, "Received text" is the result of GET/POST function call to Troi URL plugin, resulting in valid img data

Dj

PS Until arrive of FM 7 there is 64K limit on size of text that could be inserted in text field.

Link to comment
Share on other sites

  • 1 year later...

This topic is 6734 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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