this post was submitted on 24 Apr 2024
4 points (100.0% liked)

Shortcuts

1111 readers
1 users here now

Community dedicated to Apple Shortcuts.

founded 2 years ago
MODERATORS
 

Is there a way to know which app triggered the shortcut call?

For instance, if I share files from the Files app, I could reference something to see “Files” or “iCloud Drive”. When it’s Mail, I’d see “Mail”. Etc.

I am trying to have one universal shortcut for file input but I need to specialize some actions depending on the app that provided the files.

I checked “Shortcut Input” but there aren’t a lot of choices to evaluate. “File Path” is inconsistent in what it will show: executing from the Shortcuts app and picking a file will shows “iCloudDrive/FolderName/Filename.ext” but sharing from the Files app will just show the filename.ext. Sharing from Mail shows the file content.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here