How can I create an application to hide my files?
Hi, I was wondering how to create an application that can hide my files.
I am currently aware that I can hide a file using Terminal and inputting "chflags hidden" followed by the file's path, so now I want to create a workflow or application or something like that that can help me complete the task automatically.
My idea is to manually copy the path of the file I want hidden, and then to run an Applescript which opens Terminal, enters "chflags hidden " in the Terminal, followed by command+V, which pastes the path I copied, and hit enter, which hopefully would hide the file, and then quits Terminal.
I'm not really sure how to complete the process above( I'm currently stuck at having it press command+v), and I'm not quite sure it will work either.
Can someone please help me with it? I know it seems a bit rookie. I Googled some information on Applescripts by others, but I keep having my clipboard pasted onto Applescript instead of Terminal. Thanks a lot!