Page 1 of 1
Input dialogue
Posted: 10 Jul 2017 01:11
by Akt
Hi,
I have made an flow to show all the audio files in input dialogue action using int variable file list.
But it shows the full path along with the audio name.
Is it possible to only show the audio file name and not full path.
Re: Input dialogue
Posted: 11 Jul 2017 16:09
by yogi108
Hi,
there are always more ways to get a solution, here one in short:
after your action you have the variable files filled with path + names.
next step is creating an action script with the following, then you should get the filenames only in variable a for showing. I'm no Java expert, use at your own risk...
a = newList();
for (i in files)
{
b=lastIndexOf(i, '/')+1;
c=substring(i, b);
addElement(a, c);
}
Re: Input dialogue
Posted: 13 Jul 2017 11:14
by Akt
Hello friend,
I tried to write the script but i was unsuccessful as I don't know anything about script.
Can you help me in making the flow?
http://automagic4android.com/flow.php?i ... fdbd4465b7
Re: Input dialogue
Posted: 14 Jul 2017 14:10
by jurkov
Change storage place
Re: Input dialogue
Posted: 15 Jul 2017 08:24
by Akt
Thanks friend very much .