Hi everyone, I have a little problem. I need a way to query about file existence. I have tried all possible action combos with no success and defaulted to using comment field to store the needed info.
It would be nice to have an action script that checks to find out if a song exists or not e.g get_file "C:\User\dd\Desktop\song1.mp3" or can_load "C:\User\dd\Desktop\song1.mp3"
This should return true if the file exists and false otherwise. Also it should accept casted strings.
My application was I wanted to know if a certain type of song exists based of the loaded song eg remixes, extended songs, instrumentals, acapellas etc.
First I would set my button to
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & get_file ? set 'songExist' 'True' : set 'songExist' ''
Then on my skin I would have something like
action="get_var songExist"
Although I have tested with load action and it doesn't behave as I wanted since I guess it doesn't return true or false after loading a song. I tried this
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & load ? set 'songExist' 'True' : set 'songExist' ''
Ofcourse nothing happens since load is an action and I'm trying to query it but if I just do this it loads the expected casted song
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & load
It would be nice to have an action script that checks to find out if a song exists or not e.g get_file "C:\User\dd\Desktop\song1.mp3" or can_load "C:\User\dd\Desktop\song1.mp3"
This should return true if the file exists and false otherwise. Also it should accept casted strings.
My application was I wanted to know if a certain type of song exists based of the loaded song eg remixes, extended songs, instrumentals, acapellas etc.
First I would set my button to
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & get_file ? set 'songExist' 'True' : set 'songExist' ''
Then on my skin I would have something like
action="get_var songExist"
Although I have tested with load action and it doesn't behave as I wanted since I guess it doesn't return true or false after loading a song. I tried this
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & load ? set 'songExist' 'True' : set 'songExist' ''
Ofcourse nothing happens since load is an action and I'm trying to query it but if I just do this it loads the expected casted song
get_text 'C:\Users\dd\Desktop\\tmp\myremixes\dremix1`get_filename`' & param_cast & load
Posté Fri 18 Oct 24 @ 8:36 am