You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Automation for System-wide Insert of Date & Time

Hallo,


im new to macOS and i was looking for a faster way to insert the date and time in a Note.

Before i asked here i found an other User looking for something similar:

https://discussions.apple.com/thread/8651300


An User Posted an way to create an "Quick Action" in "Automator":


This would solve my Problem and be very useful for other things too.

But sadly, unlike the person who asked back then, i wasn't able to reproduce this Quick Action.

So its either 1: i did it wrong or 2: it don't function the same way like back then/ or even at all


If its 1:

I did everything exactly as written there, even the names and shortcuts are the same. the only difference is that when i created the Automation there was an Circle with three dots in it, but the original there was a Gear


if its 2:

My mac is right now on 11.5.2 and i found some post about exactly this Automation on a third party forum (im not sure if im allowed to post the source) the person who posted on the 29.12.2020 said it works for him.

So my question is, was there any mac updates that caused that automation to fail between 29.12 and now and is there a way to make it work again.

Mac mini, macOS 11.5

Posted on Aug 23, 2021 10:54 AM

Reply
Question marked as Top-ranking reply

Posted on Aug 23, 2021 1:38 PM

Yes, you can assign a keystroke to a Quick Action, though you must be careful to not use a keystroke used by the Finder or other applications. One of my Date-oriented Quick Actions uses control+option+D.


In System Preferences > Keyboard > Shortcuts > Services, look for the name of your saved Quick Action. On the right side of that entry will be the word none. Click the word none and it will change to an Add Shortcut button. Click that, and then type the control, option, and d key sequence, and then press return. The Add Shortcut button appears again. Click it to see your shortcut. Quit System Preferences.


You need to run the Quick Action once via the Application > Services menu before the unique keyboard shortcut works.

Similar questions

3 replies
Question marked as Top-ranking reply

Aug 23, 2021 1:38 PM in response to ismedinO

Yes, you can assign a keystroke to a Quick Action, though you must be careful to not use a keystroke used by the Finder or other applications. One of my Date-oriented Quick Actions uses control+option+D.


In System Preferences > Keyboard > Shortcuts > Services, look for the name of your saved Quick Action. On the right side of that entry will be the word none. Click the word none and it will change to an Add Shortcut button. Click that, and then type the control, option, and d key sequence, and then press return. The Add Shortcut button appears again. Click it to see your shortcut. Quit System Preferences.


You need to run the Quick Action once via the Application > Services menu before the unique keyboard shortcut works.

Aug 23, 2021 11:17 AM in response to ismedinO


This works with Notes on macOS 11.5.2. You position your cursor in Notes where you want the date string deposited and then from Notes > Services > Date String Output. The Quick Action, in this case, was named Date String Out.


If you wanted a custom date string, and not the default AppleScript format, then you can use a Run Shell Script with the UNIX date application to create that output. Far simpler than all the AppleScript date/time string manipulations to achieve it. I can post an example if you want to see how that is done in a Quick Action.

Automation for System-wide Insert of Date & Time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.