Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

PowerPC Punk

macrumors member
Original poster
May 22, 2020
57
44
ahoi!
I just wanted to change the date/time of a file/folder to now (!).
"Long time ago" i used to use the genious FinderPop by Turly,
with a FinderPop Extras shell script
--- Called Touchfsel-!!!.sh. ---
"Touch sets the item's modification date to now".
-
Right click, select and ok.
-
But Apple SIPped FinderPop away, with 10.10.
So i tried to make a Service with FinderPop´s Touchfsel-!!!.sh.
Of course (?), it didn´t work..I´m not a shell scripter...
Then i duckducked around, and found a lot of non working solutions.
-
Sad thing about this whole stuff,
it´s 2024 and we have to go down, in the deep cellar of UNIX, open the Terminal,
to make things work as we need them.
---
This no good, this is not "genious".
This ist just sad.
---
Sometimes i hear an annoying noise...
like scratching or something like that.
Is my HHD dying ?
No, it´s just Steve Jobs, rotating in his grave,
because he is really angry how things go wrong.
 
Last edited by a moderator:
ahoi! Bigwaff,

yeah, you got it, Something like this ? !
But i don´t want to buy an app,
that´s just wrapped up in a simple Unix command, and sold as an app.
What i want is, again:
Right click, select the file, touch date and ok.
-
Here is the go(o)d old turly script:
---
#!/bin/bash
# FinderPop Add-on to touch the selected files/dirs
# The name 'Touchfsel-!!!.sh' means that FinderPop will only include this script
# in its menus if there's a Finder selection. Also, it will appear in the menu
# as 'Touch' without all that hairy stuff.
#
# History
# 20081209 01 turly Add version header
# 20081207 00 turly Initial

while [ $# -gt 0 ]; do
/usr/local/bin/touch "$1"
shift
done
---------------------------------
Fanx, have a nice day.
-
Stefan
 
Use Automator to save your shell script as a service that will appear in the contextual menu in the Finder. (Or Shortcuts, not sure if this option is available there.)
 
  • Like
Reactions: NoBoMac and bogdanw
(Or Shortcuts, not sure if this option is available there.)

Available in Monterey and higher.

Rough outline (have not thoroughly tested):

touch.png
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.