Basic Usage
Run a shortcut by name:Parameters
| Parameter | Type | Description |
|---|---|---|
name | str | None | Shortcut name |
index | int | None | Shortcut position (0-based) |
Provide either
name or index, not both.Examples
Run by Name
Run by Index
Shortcut Workflow
Useful Shortcut Ideas
Shortcuts can extend TapKit’s capabilities:Copy Clipboard
Create a shortcut that copies clipboard contents to a file or sends it via API
Set System Settings
Toggle settings that aren’t directly accessible via TapKit
Send Notifications
Send custom notifications or alerts
Process Data
Transform data using Shortcuts’ built-in actions
Creating Compatible Shortcuts
For best results with TapKit:- Make shortcuts silent - Avoid dialogs that require interaction
- Use timeouts - Add reasonable timeouts for network operations
- Handle errors - Use “Continue if Error” for robust execution
- Keep them focused - Single-purpose shortcuts are more reliable
Example: Silent Screenshot Shortcut
A shortcut that takes a screenshot and saves it without prompts:- Take Screenshot
- Save to Photo Album (no confirmation)
- Stop and Output (nothing)
Tips
Finding shortcut names
Finding shortcut names
Open the Shortcuts app to see exact shortcut names. Names are case-sensitive.
Shortcut execution time
Shortcut execution time
Complex shortcuts take time. Add appropriate delays after running:
Shortcuts with input
Shortcuts with input
TapKit runs shortcuts without input parameters. If your shortcut needs input, consider:
- Setting up the input beforehand (clipboard, files)
- Creating a wrapper shortcut that fetches input
Error handling
Error handling
Check device state after running shortcuts to verify success: