Thanks Hiroto
both your script work perfectly, I want to explain what we are trying to achieve.
We are using FilemakerPro database as a pre-editing tool for a film we shoot
Too complex here to explain the serious reasons for this choice
The scripts in reply to the first question allows us to create a frame field in FMP to then choose various different starting points in our film-files.
We use successfully this FMP and Applescript combined script from within filemaker to open clips we choose from our FMP file:
Let (
mac_path = Right ( Substitute ( Media Path; "/"; ":"); Length (Media Path) - 1);
"tell application \"Quicktime 7\"" & ¶ &
"activate" & ¶ &
"open " & Quote ( mac_path ) & ¶ &
"
set the dimensions of movie 1 to {480, 270}
" & ¶ &
"end tell"
)
the script calls the clip in QT and plays it
we use the script to open more than one QT window to compare takes as QT allows to see more than one film at the time,
While your script works perfectly from within Filemaker as "Native Applescripts" playing from the starting point set in the script, I am not able to adapt it in the one we use already. we need to merge them to use some of the fields in my database for the frame_number required.
Adding this information to the original working script, Quicktime opens the film and gives an error telling it cannot set the playhead to the frame and stops before changing the film dimensions.
This is what I did
Let (
mac_path = Right ( Substitute ( Media Path; "/"; ":"); Length (Media Path) - 1);
"set frame_number to " & Frames & ¶ &
"tell application \"Quicktime 7\"" & ¶ &
"activate" & ¶ &
"open " & Quote ( mac_path ) & ¶ &
"set current time to frame_number" & ¶ &
"set the dimensions of movie 1 to {480, 270}" & ¶ &
"end tell"
)
Is there a way to fit parts of your scripts in FMP?
Regards
Dan