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.

Featured Replies

So I've been trying to figure this out for 3 hours now, I have no idea what is going on. Hope that you guys can help. I think this is the right forum since it is a calculation. If I'm in the wrong area please forgive me.

So here is the script, very basic. I'm looking to capture video to a time and date stamped file in a predetermined folder location. For this I'm using the Troi file plugin and the Grabber plugin.

Set Variable [ $filename; Value:BOSIS Basic::File Location & Get ( CurrentTimeStamp ) & ".mov" ]

Set Field [ BOSIS Basic::Video File; Grab_OpenMovieGrabWindow( "-Unused" ; "QTKit"; "Built-in iSight" ; "$filename") ]

I've run it through the debugger. The variable is evaluating as expected. But the field calculation won't use it. It creates the file name $filename?

Have I done something or is it Grab_OpenMovieGrabWindow can't evaluate the variable?

You're quoting $filename in Set field. Don't.

  • Author

Thanks for the assist. I have the variable working. now, but when I try to add it to the calculation I'm getting an error saying there is a no such directory? So how should I structure the file naming part of the function. This is what I have currently.

Set Variable [ $filename; Value:Get ( CurrentTimeStamp ) & ".mov" ]

Set Variable [ $savedir; Value:BOSIS Basic::File Location ]

Set Field [ BOSIS Basic::Video File; Grab_OpenMovieGrabWindow( "-Unused" ; "QTKit"; "Built-in iSight" ; $savedir & $filename ) ]

I have the directory I want to use in a text field. But I'm still getting an error saying it can't find the directory.

Thoughts?

Get ( CurrentTimeStamp ) returms a string that can't be used as a part of a file name: there are some not allowed chars.

Try:

Filter ( Get ( CurrentTimeStamp ) ; " 1234567890" )

I agree with raybaudi; but I think further explanation would be helpful.

Get(currentTimeStamp) returns something like this. Note the slashes; they will be interpreted as folders if used for a file path.

8/6/2010 2:20:17 PM

raybaudi's suggested function returns something like this:

862010 21814

But it seems to me a more useful result is something like this:

20100707.152305

You can make your own calc or use a custom function like this: http://www.briandunning.com/cf/392

It returns a nice readable, sortable, no-folder-conflict format like this: 2006-01-09_14-05-00

  • Author

Thanks guys. That did the trick!

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.