I forgot to say that you have to customize the folder in the Open file action.
In the shell script configuration, the "Is * .html" has a space after the asterisk. Is that supposed to be there?First of all, test Script shell action alone once you find the right path and look at the content of "s" variable after test. It should contain all the .html file names found in the indicated folder.
Of course there shouldn't be any space between * and .htmlIn the shell script configuration, the "Is * .html" has a space after the asterisk. Is that supposed to be there?
The "s" variable, is that the "local variables" tab?
It still shows <empty> after I tested the Shell script on its own.
I do apologise, this really is beyond me. I've started reading the wiki and I simply don't have the background knowledge to connect much of what I'm reading to the very little that I do know.
Please let me know if this is a waste of your time.
I would like to get this working someway for others in the future as well.
Even an app in the play store that I can navigate to a specific folder and randomly open any file within it.
Thank you and apologies.
/storage/...
untill .../blog/
Of course there shouldn't be any space between * and .html
Please check the complete path in the "cd" command of the Shell script (as I already told you) from/storage/...
untill.../blog/
So, now, it should workView attachment 9578
cd /storage/3965-3538/Documents/AJATT/AJATT/www.alljapaneseallthetime.com/blog/
ls *.html
Here's a screenshot and the text copied. Hopefully this helps.
Sorry for the delay.
I'm in the United Kingdom.
So, now, it should work
The problem comes from this very complicated path name. I would suggest to rename this path in something much more simpler.View attachment 9586
No such luck.
I don't know how much more patience I have for this.
Do you know of any other (simpler) way of achieving this even outside of macrodroid? Any apps etc?
I cannot thank you enough for being so patient with me and my lack of knowledge in this field, and taking the time to work through this with me.
It truly is greatly appreciated!
Thank you.
cd /storage/3965-3538/MyFiles/
There is nothing complicated: it's hard to have less than 4 actions to achieve what you're looking for...View attachment 9586
No such luck.
I don't know how much more patience I have for this.
Do you know of any other (simpler) way of achieving this even outside of macrodroid? Any apps etc?
I cannot thank you enough for being so patient with me and my lack of knowledge in this field, and taking the time to work through this with me.
It truly is greatly appreciated!
Thank you.
There is nothing complicated: it's hard to have less than 4 actions to achieve what you're looking for...
Be very rigorous when typing commands.
To solve this problem of path, when you change it (simplify it), just test the Script shell action and look at the content of the "s" variable.
I can't see your screenshot: where is it?As you can see from the previous screenshot, I made a "testdelete" folder with only a few of the html files in it, located on my device itself under main storage.
I changed the location in both the Shell script and the open file action.
Whenever I tested the Shell script action on its own, the s variable still shows <empty>.
I'm really not sure what could possibly be wrong?
Thank you again.
Sorry but I think you don't really understand what you're doing nor follow the steps to debug this so simple macro...Above the words "no such luck"
It might be at the bottom of the post saying something like "view attachment".
Sorry but I think you don't really understand what you're doing nor follow the steps to debug this so simple macro...
The attachment shows the MacroDroid error message about Open file. Which is completely normal.
We need to know how Script shell action works. "s" variable can't be empty in any way as it contains the result of the "cd" and "ls" command which is either a system error message or the list of all the html files located in the folder described in the cd command.
So if you want to make this macro work, test Script shell action first with the new parameters and look at the content of "s".
Could you please send a screenshot on of this Shell script action?
Sorry but I asked for screenshot of the Shell script action not of the whole macro.View attachment 9587
This screenshot was taken after I clicked on shell script, test action.
I cannot stress enough how out of my depth I am when it comes to this stuff.
I'm sorry that this is frustrating for you.
Thank you so much for your patience with me.
Sorry but I asked for screenshot of the Shell script action not of the whole macro.
I mean with all the parameters of this action.
We nearly won!View attachment 9588
Sorry.
I checked the md helper app and it gave me a message when I went on it.
Now the s variable is getting populated.
And my browser is opening, which is progress.
However, it's not opening any file. Just opening the browser to the default Google page.