Apple Numbers – Link to Folder or File

On Apple’s support website, there is a guide on how to link to a web page, email, phone number or sheet in Numbers on iPad. Unfortunately there is nothing about linking to a folder or file you already have on your device.

It is possible to add hyperlinks to a local file or folder in Numbers, using the Shortcuts app.

  1. Add Get File from Folder action
  2. Add Open File action
  3. Set your main directory (iCloud Drive in my case)
  4. As path use Shortcut Input

Now you can use it with following pattern: shortcuts://run-shortcut?name=[shortcut_name]&input=[your_path]

Note that the “your_path” should be encoded. e.g. Desktop/tohippo/Tohippo.png should be changed to Desktop%2Ftohippo%2FTohippo.png

Basically each / is a %2F and each space is a %20

You can use a tool like https://meyerweb.com/eric/tools/dencoder that will do the job for you.

Example

For file iCloud Drive/Desktop/Tohippo/Tohippo.png use the following URL to open it from Numbers or any other app/browser:

shortcuts://run-shortcut?name=Open_file&input=Desktop%2Ftohippo%2FTohippo.png

You can then paste this link to your Numbers sheet, and when you click on it, the relevant file or folder will open.

Step by Step Guide

Open Shortcuts app, and select the + symbol on the top right to create a new shortcut
Open the Shortcuts app, and select the + symbol on the top right to create a new shortcut
Click on the upper left section where the title is, and rename the Shortcut to something relevant like "open_file"
Click on the upper left section where the title is, and rename the Shortcut to something relevant like “Open_file”
Click on "Search for apps and actions"
Click on “Search for apps and actions”
Find the Get File from Folder action and click on it.
Find the Get File from Folder action and click on it.
Click on Shortcut (1) and then select the relevant main folder, on my case iCloud Drive (2)
Click on Shortcut (1) and then select the relevant main folder, on my case iCloud Drive (2)
Find the Open File action and click on it.
Find the Open File action and click on it.
Click on Default App and select Files
Click on Default App and select Files
Select example.txt (1) and click on Shortcut Input (2)
Select example.txt (1) and click on Shortcut Input (2)
It should look like this at the end
It should look like this at the end

You can also check my other Shortcuts related solutions, like How to Create an Automation With Multiple Variables on Apple Home

Leave a Reply

Your email address will not be published. Required fields are marked *