Copy File to Clipboard

If you are new to SL4A and scripting, take a look at this wiki entry about using SL4A with Tasker.

This python script does one simple thing that is otherwise not yet possible with Tasker: it copies the contents of an entire file to the clipboard. To run it, download the script to your sl4a/scripts folder, then create a task that looks like this:

Task: CopyFileToClipboard

  • A1: Variable Set [ Name:%FNAME To:TheNameOfTheFileYouWantInTheClipboard ]
  • A2: Run Script [ Terminal:Off Pass Variables: %FNAME ]

After the file is in the clipboard, you can set a variable to the contents of the clipboard.

I'll monitor this Tasker forum thread for questions.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License