Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Importing Quicktime Via AppleScript

Featured Replies

  • Newbies

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...

  • Author
  • Newbies

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

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.