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.
Input dialogue
Moderator: Martin
Re: Input dialogue
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);
}
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);
}
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
Re: Input dialogue
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
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
Change storage place
- Attachments
-
- flow_Flow2_20170714_160916.xml
- (2.29 KiB) Downloaded 747 times