Newbies zippants Posted March 17, 2003 Newbies Posted March 17, 2003 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 "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 zippants Posted March 18, 2003 Author Newbies Posted March 18, 2003 In case others are curious: 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now