timestamp an application bundle

Joined
Apr 14, 2009
Messages
17
Reaction score
0
Points
1
Hi,

Does anyone know of a way to change the timestamp of an application bundle from the Terminal? I tried "touch xxx.app" and it says "operation not permitted".

Thanks,
Andrew
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Could you be a little more specific? What exactly are you trying to accomplish?

You can "touch" an App bundle if you wanted to do so but note that App bundles are in fact folders, not files. "cd" into an app bundle or right click it in Finder and select "Show Package Contents" to see what I mean.
 
OP
S
Joined
Apr 14, 2009
Messages
17
Reaction score
0
Points
1
Thanks for your reply. Yes I realize it is a folder. I see now that I can indeed touch an .app. What I was trying to do which is not working (and still trying to do), is to touch an .app using the date/time of another file.

For example:

touch -r thefile.txt myapp.app

This only seems to work for files, but not folders.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top