Welcome Guest

Pages: 1
Action function to update opened files in Yate UI
boochPostDecember 8, 2024, 03:07
Newbie
Posts: 2
Registered:
December 8, 2024, 07:35
Normal topicAction function to update opened files in Yate UI

Hello,

Is it possible to somehow update list of opened files using actions?

My use case:
1) Open folder with .wav files in Yate UI
2) Run action to convert selected .wav files to.aiff format (I created this action myself that uses "Run external script" function with bash script)
==> Here I want to automatically close old wav files and add new .aiff files to the list of opened files in Yate UI

3) Continue processing converted .aiff files in Yate UI

2MR2PostDecember 8, 2024, 08:45
Avatar photo
Administrator
Posts: 2176
Registered:
August 23, 2012, 19:27
Normal topicAction function to update opened files in Yate UI

Yes, see the help for the Stop Action and Post Process statement. You can supply a list of files to close, open and optionally, the name of an action to be run.

Basically the statement lets you do just what you want by chaining actions.

One thing to note is that if you want to keep state between the two actions, you'll have to save it to runtime settings before calling the statement and then read it back. That's because the interpreter stops and is restarted. All variables are lost.

2MR2PostDecember 8, 2024, 09:43
Avatar photo
Administrator
Posts: 2176
Registered:
August 23, 2012, 19:27
Normal topicAction function to update opened files in Yate UI

BTW: The Convert Files (line 58) action has an example which closes and opens files using the statement. The action is in the Sync Files bundle on the resource page. You can download the bundle via Yate>Resource Actions Installer

boochPostDecember 8, 2024, 18:59
Newbie
Posts: 2
Registered:
December 8, 2024, 07:35
Normal topicAction function to update opened files in Yate UI

Great! This is exactly what I needed, thanks a lot!

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.019 seconds.