QuickTime into container by script -
07-18-2005
, 12:28 PM
Hi,
Working with FM 6 I use an AppleScript to reference picture files into a
container field by given path and file name:
Working with FM 6 I use an AppleScript to insert picture files by
reference into a container field by given file name and path from a text
field:
set my_file to get cell "fm_file_name_field" of layout 0 of current
record of database "example.fp5"
set cell "fm_container_field" of layout 0 of current record of
database "example.fp5" to file my_file
(2 lines of AppleScript!)
The result is the same as if I would manually use the menu command
Insert -> Picture...
[x] Store only a reference to the file
Unfortunately with FM 6 this does not work for QuickTime files.
My actual workaround is a AppleScript telling the Finder to open the
movie (by name and path) using QT-Player and than telling the QT-Player
to copy the movie to the clipboard and FileMaker to insert the result
into the container field. This works but depends on various system
configurations - so it works only sometimes. Also it is not really
elegant.
Do you have an idea how to solve this problem?
thx. TMJ |