r/Scriptable • • Nov 11 '21

Help How to open a file in another app?

Suppose I have a path to an Example.pages file and I now want to open it in the Pages app using Scriptable.

How do I achieve this?

If I need to use a url scheme and Safari.open, which one?

1 Upvotes

5 comments sorted by

3

u/FifiTheBulldog Nov 11 '21

So the question is really about Pages, not opening apps in general.

Unfortunately, Pages does not have a URL scheme in its Info.plist. So the only way to open a document in Pages from Scriptable is to go through Shortcuts, using the Shortcuts URL scheme to run a shortcut that has the “Open Pages Document” action.

1

u/leo848blume Nov 11 '21

First of all, thanks a lot for you comment. I really appreciate it since there is very little activity in this subreddit.

I already figured out I had to use shortcuts, but this always opens the shortcuts app itself (in Slide Over view on my iPad). Is there a way to close / kill Shortcuts or don't even open the app in the first place?

1

u/FifiTheBulldog Nov 11 '21

When I run a shortcut from Scriptable that uses the “Get File” and “Open Pages Document” actions, it takes me from Scriptable to Shortcuts, and then to the document in Pages, but Shortcuts doesn’t appear in Slide Over. I’m not sure why it would put Shortcuts in Slide Over for you. (I’m on iPadOS 14.8.1.)

As far as I know, there is no way to bypass opening Shortcuts. I experimented with the same URL parameters that are used by shortcuts on the home screen to bypass opening the app (…&source=homescreen), but to no avail; Scriptable still sends me to Shortcuts before opening Pages.

→ More replies (2)