On 2018-08-21 14:58:32 +0000,
[email protected] said:
Op 21-8-2018 om 16:29 schreef [email protected]:
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)