Shortcut Trigger Source
Shortcut Trigger Source
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.
0 comments