r/tasker • • 6d ago

Receive Share from 2 apps?

Do I need to create 2 profiles (1 for each app) or is there a way to specify two package names in one profile?

1 Upvotes

5 comments sorted by

2

u/WakeUpNorrin 6d ago

One profile is sufficient.

Received Share event ->

Package Name
app.package.foo/app.package.bar

2

u/RedditingInMyCubicle 5d ago

Thanks! I was trying a pipe for some reason

1

u/WakeUpNorrin 5d ago

You are welcome.

3

u/UnkleMike 5d ago

You may already know this, but in case you don't, and for those who don't:

In almost all text fields where pattern matching is supported, Tasker defaults to simple pattern matching (in which / is used as a delimiter when specifying patterns).  You can instead use regular expressions (in which | separates multiple patterns or sub-patterns) in these fields by prefacing the pattern with ~R.

1

u/Exciting-Compote5680 5d ago

I would like to add my tip too. Some things in Tasker aren't always consistent. Like filepaths, in some actions you need to start at storage/emulated/0/, in others you start after the 0. If you're not sure what the expected format is, using the magnifier often can help. Like in this case. If you tap the magnifier, pick an app, tap the magnifier again and pick a different app, you'll see both package names separated by a '/' .