Jump to content
Sign in to follow this  
Daniel N

Open a quicktime on a Network drive with applescript?

Recommended Posts

How can I make FileMaker open a quicktime that's on a Network drive with applescript?

I've tried:

[set Variable] $$qt_path

[Perform Applescript] Calculation:

RAID01:SYSTEM:shotsubmit:test.mov

"do shell script open " & Quote("$$qt_path")

And:

[set Variable] $$qt_path

[Perform Applescript] Calculation:

"tell application " & Quote("Finder") & "activate " & "open file " & Quote("$$qt_path")

Tried several combos incase my code is faulty... but nothing works. I'm going insane... seriously

ps. "alias" & Quote("&&qt_path")

works to check if the quicktime-file exists, so the same path should work to open the quicktime, right...?

Anyway I've tried a dozen of different paths as well. But it won't work! .ds

*edit*

Got it working, was just my formatting.

Edited by Guest

Share this post


Link to post
Share on other sites

It might be best if you upload a little example file. Because there's some minor problem, likely with your path, but it is so hard to tell when just reading it here.

One thing for sure, Unix paths, which is what you must use for: do shell script

are not the same as AppleScript (old-style Mac) paths. They have slashes instead of colons, for a starter. They do not allow unescaped spaces in the path, as that is used as an argument separator in a Unix command. But there are simple methods to escape them, and fairly simple methods to convert paths from Unix to Mac.

This Apple document explains how to use the two together:

http://developer.apple.com/technotes/tn2002/tn2065.html

In your 2nd attempt, via "vanilla" AppleScript, you declare a FileMaker global script Variable; but I can't see that you put the path into its value, in which case it's still empty.

Also, in your calculation you surrounded the variable with quote marks. Quote ($$variable) will work; but if you put quote marks around also it will not evaluate; you'll just get the text: "$$qt_path" (incl. the quotes); which ain't no path ???-]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    ayescas 
×

Important Information

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