dbTalk Databases Forums  

QuickTime into container by script

comp.databases.filemaker comp.databases.filemaker


Discuss QuickTime into container by script in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tobias Meyer-Janson
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.