Example - Passing a Value to a Shortcut Using Python
Posted: Mon Mar 13, 2023 6:11 pm
Passing data to a Shortcut using Python is easy using an embedded script.
Apple Shortcut
Get Text From - Shortcut Input
Calendar - Add New Event
- Code: Select all
import os
val = indigo.variables[123456].value
os.system(f'/usr/bin/shortcuts run "Post Event to Calendar" <<< \"{val}\"')
Apple Shortcut
Get Text From - Shortcut Input
Calendar - Add New Event