Log caffeine

Asks you to choose the type of caffeinated drink (coffee, espresso, cappuccino, or a soda) and logs the caffeine content into the Health app. Also compares against the daily recommended limit of milligrams of caffeine.

Actions Used

shortcuts-action-icon-if.webp
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
shortcuts-action-icon-choose-from-menu.webp
Choose from Menu
Presents a menu and runs different actions based on which menu item was chosen.
shortcuts-action-icon-stop-this-shortcut.webp
Stop shortcut
Stops execution of the current shortcut and dismisses the shortcut on screen. No more actions will be run after this action.
Date
Passes the specified date and time to the next action.
shortcuts-action-icon-dictionary.webp
Dictionary
Passes the specified list of key-value pairs to the next action as a dictionary.
Find Health Samples
Searches for the health samples in your library that match the given criteria. Allows for sorting, changing the order, grouping by time periods, limiting the number passed as a result, and more. Includes most information in the Health app.
Log Health Sample
Adds a data point into the Health app.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
shortcuts-action-icon-text.webp
Text
Passes the specified text to the next action.
shortcuts-action-icon-choose-from-list.webp
Choose from List
Presents a menu of the items passed as input to the action and outputs the user’s selection. Prompt The instruction provided when the list is presented. Select Multiple When enabled, multiple items may be chosen from the list.
shortcuts-action-icon-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.
shortcuts-action-icon-round-number.webp
Round Number
Rounds the number(s) passed into the action.
action-icon-calculate.webp
Calculate
Performs a number operation on the input and returns the result.
shortcuts-action-icon-number.webp
Number
Passed a number to the next action
shortcuts-action-icon-measurement.webp
Measurement
Passes the specified measurement (including number and unit) to the next action.
shortcuts-action-icon-show-alert.webp
Show Alert
Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues. The cancel button stops the shortcut.
action-icon-ask-for-input.webp
Ask for Input
Prompts the user to enter a piece of information.
shortcuts-action-icon-nothing.webp
Nothing
This action does nothing and produces no output. It is useful to separate blocks of actions, or to ensure that no input is passed to the next action.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Log%20caffeine
Open Shortcut deep link
shortcuts://open-shortcut?name=Log%20caffeine
AppleScript code
tell application “Shortcuts Events” run shortcut “Log caffeine” end tell

More From This Folder

More From The Library

Shame

Gets the base64-encoded text for the Shame sound from Game of Thrones, decodes it, and plays it twice at 75% volume with a short break in between.

Get Shortcut »

Copy timestamp for Discord

Creates a special message for Discord to help avoid confusion that displays a specified date and time in each user’s timezone by converting the value to a Unix timestamp, with your choice of formatting options. Includes a bypass with Shortcut Input values.

Get Shortcut »


Get way deeper into Shortcuts – become a member.