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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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