Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hi -- I'm looking for an AppleScript solution that will let me import a quicktime movie based off a set variable. I have zero problems inserting text, and/or images into FileMaker, but I keep generating errors when it comes to .mov.

Essentially, I have this:

property movie_path B) "Macintosh HD:Users:zippants:Documents:movies:02.mov"

tell application "FileMaker Pro"

set cell "movie_holder" of last record to a reference to file movie_path

end tell

The problem clearly is in the set cell statement, I have tried that line in the following fashions:

set cell "movie_holder" of last record to movie_path -- Failed

set cell "movie_holder" of last record to file movie_path --Failed

set cell "movie_holder" of last record to reference movie_path --Failed

set cell "movie_holder" of last record to (movie_path as alias) --Failed

Please help...

  • Newbies
Posted

In case others are curious:B) I was able to answer my own question. The solution isn't quite as simple as it is to insert an image, but it's useful all the same. The method is to open the movie up with quicktime, run a 'select all' statement followed by 'copy' switch to filemaker pro, run an internal FileMaker AppleScript statement of 'copy' to specific field 'movie_holder'. And bada-bing you're in business. Here's the code:

property movie_path : "Macintosh HD:Users:zipper:Documents:movies:03-03:02.mov"

tell application "QuickTime Player"

try

activate

open file movie_path

select all

copy movie 1

close movies saving no

end try

end tell

--paste quicktime selection into FMP

tell application "FileMaker Pro"

activate

--drop a reference into the movies database

(*set theFile to a reference to file (image_path as string)

set cell "movie_container" of last record to theFile*)

--open movies database and insert new record

open the file database_path2

do script "new_movie"

cell "movie_container" of the last record

do script "paste the ******* movie"

paste

This topic is 7922 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.