Open In… / OpenIn (internally is.workflow.actions.openin)

This action requires that Shortcuts has permission to use WFUserInteractionResource.

description

summary

Opens the input as a file in the specified app.

usage

OpenIn showOpenInMenu=(true | false | variable) app=("app name" | "com.identifier.for.app")] WFAppName="string"

arguments


showOpenInMenu: Switch (Docs)

Default Value: true Allows Variables: true

Accepts a boolean or a variable.


app: App (Docs)

Allows Variables: true

Only enabled if: argument WFOpenInAskWhenRun == false

Accepts a string containing a supported app or an app identifier. You can use this shortcut to get an app identifier for an unsupported app. Supported apps are:

  • appstore (App Store)
  • files (Files)
  • shortcuts (Shortcuts)
  • safari (Safari)
  • Any other app by entering its id from this shortcut

WFAppName: Text (Docs)

Allows Variables: true

Only enabled if: This action is always disabled inside Shortcutslang.

Accepts a string or text with the text.


source json (for developers)

{
	"ActionClass": "WFOpenInAction",
	"ActionKeywords": [
		"open",
		"file",
		"document",
		"in",
		"app",
		"application",
		"uidocumentinteractioncontroller"
	],
	"Category": "Documents",
	"Description": {
		"DescriptionSummary": "Opens the input as a file in the specified app."
	},
	"IconName": "Apps.png",
	"Input": {
		"Multiple": false,
		"Required": true,
		"Types": [
			"public.data"
		]
	},
	"InputPassthrough": true,
	"Name": "Open In...",
	"Parameters": [
		{
			"Class": "WFSwitchParameter",
			"DefaultValue": true,
			"Key": "WFOpenInAskWhenRun",
			"Label": "Show Open In Menu"
		},
		{
			"AppSearchType": "OpenIn",
			"Class": "WFAppPickerParameter",
			"Key": "WFOpenInAppIdentifier",
			"Label": "App",
			"RequiredResources": [
				{
					"WFParameterKey": "WFOpenInAskWhenRun",
					"WFParameterValue": false,
					"WFResourceClass": "WFParameterRelationResource"
				}
			]
		},
		{
			"Class": "WFTextInputParameter",
			"Hidden": true,
			"Key": "WFAppName"
		}
	],
	"RequiredResources": [
		"WFUserInteractionResource"
	],
	"Subcategory": "Files",
	"UserInterfaces": [
		"UIKit",
		"UIKitWidget"
	]
}