Jump to content

Problems using a Applescript routine in FM 7 & 8 that works in FM 6


nadador
 Share

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

Recommended Posts

  • Newbies

I applied a simple Applescript routine (included in the next paragraphs) to read the time code from a opened Quicktime movie and to insert it in a database field. This routine still works fine using Filemaker 6, MacOS 10.4.8 and Quicktime 7.1.3, but when I copy the routine to use it with Filemaker 7 or 8, it does not work. Any suggestions to translate it properly?.

tell application "QuickTime Player"

activate

global this_time

set this_time to the current time of movie 1

end tell

tell application "Filemaker Pro"

activate

set cell "G1" to this_time

end tell

Link to comment
Share on other sites

I toyed with it, and if you embed this script in a Perform Applescript statement in filemaker:

tell application "QuickTime Player"

launch

set this_time to the current time of movie 1

end tell

set cell "G1" to this_time

... it works, there are apparently a conflict in a global declaration, which isn't needed anyway. Instead of the double activate use launch... to make filemaker the frontmost app at all times. But the returned value is an integer which in my case was approximately 300 units per minute???

--sd

Link to comment
Share on other sites

This topic is 5781 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
 Share

×
×
  • Create New...

Important Information

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