Some time ago I posted Path Copier project which was copying file or directory path to clipboard.
The purpose of this helper project is the same - set a file or directory path as a variable in Tasker but with use of AutoShare text processor.
Import Pick File intent from the AutoShare intents page.
You need to have installed a file browser that supports OpenIntents (e.g. OI File Manager, Total Commander).
Create a text processor:
- Open AutoShare, select “Manage Text Processors”
- Create a new text processor by clicking the “+” icon
- Name it “File/Dir Path”, give it an icon
- Select “Yes” when asked if you want to Modify Text
- Give it a timeout at least 30 seconds
- Long press it to bring up a menu to select “Process HTML” and select “No”
This is how it works.