external "srt" subtitle check using script.embuary.helper
#1
Can I check the external subtitle file with script.embuary.helper?

https://github.com/sualfred/script.embua...ile-exists
////
Returns true if file exists. Otherwise the window property is going to be cleared.
Arguments
file= (required)
prop= (optional, default is "FileExists")
Example
RunScript(script.embuary.helper,action=lookforfile,file='"C:\install.log"',prop=MyProp)
Result
Window(home).Property(MyProp) = true or empty
////

I want to make label for the external subtitle file (movie.srt or movie.smi in same folder in movie file). What should I do if the above script can check the external subtitle file?
This is my test code
xml:

<onload>RunScript(script.embuary.helper,action=lookforfile,file='IDONTKNOW',prop=MyProp)</onload>
I guess IDONTKNOW  may be,, $INFO[container(903).ListItem.Filenameandpath]
903: my view container id, but, how to give "srt" string on it? My trial,it does not work - $INFO[container(903).ListItem.Filenameandpath].srt

I will use this label for check subtitle file.
...
<control type="label">
<label >It has Subtitile</label>
<visible>!IsEmpty(Window(Home).Property(MyProp))</visible>
</control>

<control type="label">
<label >It has NOT Subtitile</label>
<visible>IsEmpty(Window(Home).Property(MyProp))</visible>
</control>
Reply

Logout Mark Read Team Forum Stats Members Help
external "srt" subtitle check using script.embuary.helper0