I've encountered a situation where a Mac user needs to update the modified time of a file. If I was doing this, I'd just open up Terminal, cd to the file, and use the touch command. However, the person doing this is not me and I'd like to avoid making their lives more complicated with Linux commands. So, is there a simple way to touch a file from the OS X UI? This user will either be using Snow Leopard or Lion.
Asked
Active
Viewed 1.2k times
7
abeger
- 795
1 Answers
10
Open Automator and create a new Application.
From the Library, add a Run Shell Script action that receives input as arguments.
Change the sample script from cat to touch and save, e.g. as Update Time anywhere on your system.
Zip the created application (File ยป Compress "Update Time" in Finder) and email the .zip file to your user with the instructions to:
- Save the attachment to the Downloads folder
- Double-click the saved file to extract the application
- Drag & drop the audio file onto the application (with the robot icon)
Daniel Beck
- 111,893