Hey Paulo Paulo,
If you are trying to access your sdcard-ext Then do not use the mag glass just type in (or use a variable set to)
../sdcard-ext/
This is a known bug..
Google decided to change things... I believe it is on pents to do list..
> Great tutorial. Got it up and running. Is there a way to specify only move jpg files? I put the (*.jpg) and it didn't work. Any thoughts?
Where did you put the (*.JPG) It should go into the 'match' of the 'list files' it looks like it should work...
I was confused by your post that said 'got it up and running ' what did you get running?
You can't put the (*.jpg) in the for loop. It needs to into the 'match' parameter of the 'list files' action.
It is also easier to help, if you simply long press on the profile name and select export / export to clipboard. And paste it here instead of the screen shots.
<TaskerData sr="" dvi="1" tv="1.3.3u2m">
<Task sr="task21">
<cdate>1355683365895</cdate>
<edate>1355706520936</edate>
<id>21</id>
<nme>Move Wallpaper</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>412</code>
<lhs>%FilesToMove</lhs>
<op>1</op>
<rhs>*.JPG</rhs>
<se>false</se>
<Str sr="arg0" ve="3">Download</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3">%FilesToMove</Str>
</Action>
<Action sr="act1" ve="3">
<code>39</code>
<Str sr="arg0" ve="3">%FilesToMove</Str>
<Str sr="arg1" ve="3">%FilesToMove()</Str>
</Action>
<Action sr="act2" ve="3">
<code>400</code>
<se>false</se>
<Str sr="arg0" ve="3">%FilesToMove</Str>
<Str sr="arg1" ve="3">Wallpaper</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act3" ve="3">
<code>40</code>
</Action>
</Task>
</TaskerData>
Sorry, I meant export / "description to clipboard."..
not xml
Profile: Move Wallpaper (2)
Time: From 20:19 Till 20:20
Enter: Move Wallpaper (21)
A1: List Files [ Dir:Download Match: Include Hidden Files:Off Variable:%FilesToMove ] If [ %FilesToMove ~ *.JPG ]
A2: For [ Variable:%FilesToMove Items:%FilesToMove() ]
A3: Move [ From:%FilesToMove To:Wallpaper Use Root:Off ]
A4: End For
In the 'list files' action there is a "MATCH" category. That is where the '*jpg' should go. Not the 'if' section...
Profile: Move Wallpaper (2)
Time: From 20:19 Till 20:20
Enter: Move Wallpaper (21)
A1: List Files [ Dir:Download Match:*.JPG Include Hidden Files:Off Variable:%FilesToMove ]
Looks like you have capitals in your *. Jpg I think they should be lower case..
> Profile: Move Wallpaper (2)
> Time: From 20:19 Till 20:20
> Enter: Move Wallpaper (21)
You might need a 'array clear %FilesToMove' at the beginning because this is a global variable..
> A1: List Files [ Dir:Download Match: Include Hidden Files:Off Variable:%FilesToMove ] If [ %FilesToMove ~ *.JPG ]
I do not think you want these variables to be the same and i would suggest using local variables whenever possible ..
> A2: For [ Variable:%FilesToMove Items:%FilesToMove() ]
Try A2: For( variable.%movefile items:%FilesToMove() )
> try A3: Move [ From:%movefile To:Wallpaper Use Root:Off ]
> A4: End For
If you still get the error check in the variables tab and see what the values for the array are, the error means %FilesToMove(0) is not being set.
Again, I'm new to tasker so I'm still getting the hang of it. I REALLY appreciate your help. Thanks for staying with me.
> I got it working!
Great..
I changed the FileToMove to WPmove.
To make it local you need make ALL the letters lowercase %wpmove
Read the user guide under variables for more info you should know..
I didn't have to use the array.
You will not have to if you make all the variables local, but if you leave %WPmove a global then the array will not clear and if the next file list is shorter than the first you will probably get a error..
>
> Again, I'm new to tasker so I'm still getting the hang of it. I REALLY appreciate your help. Thanks for staying with me.
Happy to help.. if you have not done so you should read the beginners guide and the user guide.. there is alot of great and necessary information in them..
Rich....