Mac menubar countdown user with workflow
macOS: To avoid a conflicts with the macOS. I released that version as Menubar Countdown 1.3.
#Mac menubar countdown user with workflow archive
Have any trouble following along, or get stuck somewhere? Don’t worry, you can download an archive containing the complete workflow. When the record button is armed, pressing Play starts the recording process. With a user motivated enough to try to fix it himself, I finally got off my virtual butt and made the necessary updates to get the Menubar Countdown 1.x codebase updated so that it would build with Xcode 11 and run on macOS Catalina. (And be careful with those hidden files: They usually do important stuff, and deleting or renaming them could get you into trouble.)
That done, if you double-click that app, your Finder will disappear for a second, then reappear with hidden files showing or hidden (depending on their state before you launched the app). (When you copy and paste, make sure that the first line, beginning “if” and ending “then”, and the sixth, beginning “do” and ending “as string” are each a single line, with no hard returns in the middle.) Just save the workflow as Finder > Toggle Hidden Files. If contains (do shell script "defaults read AppleShowAllFiles") thenĭo shell script ("defaults write AppleShowAllFiles " & theValue) as string Add the Run AppleScript action to your workflow, and enter the following:
#Mac menubar countdown user with workflow update
Actually, this AppleScript really just triggers a bunch of Unix commands to update the Finder’s preferences to show hidden files and then relaunch the Finder. Automator doesn’t have an action for toggling on and off the visibility of hidden files, so again you’ll need to use AppleScript to do it. Start by creating a new Automator Application workflow. Sometimes it helps to see hidden system files this one toggles their visibility on and off. Select a file or folder, then select the service, and the date will be prepended. Your workflow now shows up in the Finder’s Services menu when you Control- or right-click on something. Lastly, save the workflow as Files and Folder > Add Date Prefix. While all of this sounds kind of complicated, it’s really just telling Automator you want the date prefix in YYYY-MM-DD format. Then set the Date/Time popup to Current, the Format popup to Year Month Day, the Where popup to Before name, the first Separator popup to Dash, the second Separator popup to Space, and click the Use Leading Zeros checkbox. If Automator prompts you to insert a Copy Finder Items action first to preserve your originals, click Don’t Add you’re just adding a prefix to the names of the files, not deleting them or anything serious like that.Ĭonfigure the action to Add Date or Time. Re-enabling SIP, reboots, SMC- or NVRAM-Resets are all useless to fix it after that. It's a very small application, but one that provides a lot of value for my workflow. It occurs immediately after you disable System Integrity Protection and toggle Dark dock & menu bar in System Preferences / General. I use it like a pomodoro timer, but without limiting myself to just 25m blocks. Find the Rename Finder Items action and drag it to the workflow. Horo is a simple menu bar timer app for the Mac. This one adds a current date prefix to the names of any selected files or folders.Ĭreate a new Automator Service workflow and set it to process files or folders in Finder.