• Copy file Command line in Filemaker

    From ursus.kirk@gmail.com@21:1/5 to All on Tue Aug 21 16:58:32 2018
    Op 21-8-2018 om 16:29 schreef steve.slater@fmdatanet.co.uk:
    I have a field that defines the path to a referenced jpg file for viewing in a container.

    I now want to send a command from filemaker that Copies the local jpg file to another folder on a server

    Struggling to find a way other than using a Plugin

    Any Ideas


    OSX use applescript from a script (or send event)
    WIN use batch (Send event) from a script

    --
    Vriendelijke groet, Erik Appeldoorn

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From steve.slater@fmdatanet.co.uk@21:1/5 to All on Tue Aug 21 07:29:32 2018
    I have a field that defines the path to a referenced jpg file for viewing in a container.

    I now want to send a command from filemaker that Copies the local jpg file to another folder on a server

    Struggling to find a way other than using a Plugin

    Any Ideas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Helpful Harry@21:1/5 to ursus.kirk@gmail.com on Wed Aug 22 09:20:09 2018
    On 2018-08-21 14:58:32 +0000, ursus.kirk@gmail.com said:
    Op 21-8-2018 om 16:29 schreef steve.slater@fmdatanet.co.uk:
    I have a field that defines the path to a referenced jpg file for
    viewing in a container.

    I now want to send a command from filemaker that Copies the local jpg
    file to another folder on a server

    Struggling to find a way other than using a Plugin

    Any Ideas

    OSX use applescript from a script (or send event)
    WIN use batch (Send event) from a script

    It depends on what version of FileMaker Pro and I haven't tried it with
    a linked image, but the 'Export Field Contents' command (in at least
    FileMaker 16, not sure when it was introduced) is able to save stored
    data from a Container field to an file wherever you tell it to be saved
    and you can use a variable for the filepath. Remember to include the
    '.jpg' filename extension, especially for Windows. I also haven't
    tested what happens with multiple records in the Found Set, but at
    worst you could script the database to only have the one record you
    need in the Found Set.

    Otherwise, Ursus' suggestions or a plug-in would be the only way ... or
    copying the image file manually of course.

    FileMaker Pro is a database application. It's not designed for doing
    OS-level file manipulation.

    Helpful Harry :o)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)