Add License
Easily run shortcuts, from your app!
Shortcut
The Shortcut object provides all the information ShortcutsKit needs to run it.
import ShortcutsKit let shortcut = Shortcut(name: "Shortcut Name!") // Initialize print(shortcut.name) // Access Name
Quickly list all the shortcuts on a Mac by accessing the property shortcuts. Returns an array of Shortcuts.
shortcuts
import ShortcutsKit let shortcuts = Shortcuts.default.shortcuts
Finally, the thing you’ve been waiting for: Running shortcuts.
👉 Important note 👈 runShortcut blocks until the shortcut is finished running.
runShortcut
import ShortcutsKit let shortcut = Shortcut(name: "Name") // Initialize Shortcuts.default.runShortcut(shortcut) // Run the shortcut
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
ShortcutsKit
Easily run shortcuts, from your app!
The
ShortcutObjectThe
Shortcutobject provides all the information ShortcutsKit needs to run it.List Shortcuts
Quickly list all the shortcuts on a Mac by accessing the property
shortcuts. Returns an array ofShortcuts.Run Shortcuts
Finally, the thing you’ve been waiting for: Running shortcuts.