I have this AppleScript:
tell application "Reminders" try set remTime to the (remind me date of the first reminder of list "Focus") set focusRem to (time string of (remTime)) return focusRem end try end tell
An example of what it returns: “10:00:56 AM”
Can I return the time as minutes until, based on the current time?
For example, if the remind me date of the reminder is 10:00am, and the actual time is 9:45am, I want to return: “15 minutes” (just the minutes, no seconds)
I am at a loss on how to do the above. Any help is appreciated.