If you are like me, chances are you will find the task of moving files from your phone’s internal storage to the external SD card (given you have an SD card) to be tedious. So here it is, automating the task via Tasker with minimum effort.
Move and Delete Wallpapers
A1: List Files [ Dir:Download Match:*.*jpg Include Hidden Files:Off Use Root:Off Variable:%wpmove ]
A2: For [ Variable:%wpmove Items:%wpmove() ]
A3: Copy File [ From:%wpmove To:/storage/6DC7-1C19/APOD/walle(%TIME%TIMES).jpg Use Root:Off ]
A4: End For
A5: List Files [ Dir:Download Match:*.*jpg Include Hidden Files:Off Use Root:Off Variable:%wpdelete ]
A6: For [ Variable:%wpdelete Items:%wpdelete() ]
A7: Delete File [ File:%wpdelete Shred Level:0 Use Root:Off ]
A8: End For
A9: Flash [ Text:Wallpaper moved successfully Long:Off ]
A1: Listing all the files in the directory “Download” and assigning a variable to it
A2: Creating the task
A3: Copying file to the SD card in a directory called “Walle”
A5: Re-listing the files in the “Download” directory and assigning a variable
A6: Deleting the downloaded file
A9: Flashing a short on-screen notification once the task completes
Credit: Got the idea from one of Tasker’s Zens so, credit to the original creator.
How to trigger this?
You can trigger the task as you wish. In my setup, I have made it time bound. The task runs every night at 9, scans the download folder for any wallpaper and if a wallpaper is found, it performs its magic.
Another way to run this task would be via a widget on the home screen. So, you can call this task as and when it is required.