Skip to content

How to share after running a script? #327

Closed Answered by Waboodoo
kzshantonu asked this question in Q&A
Discussion options

You must be logged in to vote

The app currently doesn't have a feature to share text directly from Scripting, but you can work around this via the sendIntent function. To do so, copy the following code snippet:

sendIntent({
  "type": "activity",
  "action": "android.intent.action.SEND",
  "dataType": "text/plain",
  "dataUri": " ",
  "extras": [
    {
      "name": "android.intent.extra.TEXT",
      "value": "Your text here"
    }
  ]
});

I will add a more convenient way to share text into the next version (2.30.0).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Waboodoo
Comment options

Answer selected by kzshantonu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants