hi, i am trying to make the macro - queued sms auto - work. i have replaced the path with my path to sms .txt file and contacts and i followed the guide by entering comma in the file but it seems i have permission denied error. how do i make it work as i need to send a sms to a list of phone numbers. can you please help me?
As I don't know whether it is possible to read a text file via a script shell on a non rooted device in MD, I would suggest, if it's possible for you, to store your phone numbers directly in a local or global string variable you could manually modify every time you need to.
Another detail I noticed: in your first 'Extract text' action you wrote the following Regex rule
\d[0-9]+. As
\d already stands for digits from 0 to 9,
[0-9] is unnecessary and
\d+ will give you the same result...
The 2 'Replace all' action that follow it could be gathered in 1 by adding the separator (comma in your example) to the [lv=ContNum] in order to replace the whole string by an empty one (i.e. to erase it from the original list). My suggestion would be not to replace the separator (that even could be a new line) to avoid problems if the last number of the list happens not to be followed by the seperator. Just test if the extracted number '[lv=ContNum]' is empty to exit the loop.