Hi all,
When people use my computer, specifically my parents when they're too lazy to get theirs, they tend to have a pair of wandering eyes. To keep some of my personal data private, I put a '.' in front of the title so it will be hidden by OS X.
Hiding and unhiding the files is quite the pain, though, as I have to open terminal each time, and type in the two commands required to show and hide the files, which are as follows...
I am curious if it would be possible to implement these two commands into a script, so that when I double-click the file, it opens in Terminal, checks the status of whether the files are hidden or not (whether it's TRUE or FALSE), and then does the opposite of what the check returns. Like if it checks it, and it returns TRUE, it would make it false, and run it, followed by the killall Finder.
I do have a lot of experience with HTML and PHP, but outside that I'm pretty useless.
Can anyone help me?
If anything I said above doesn't make sense, please tell me and I will clarify it.
Thanks,
~ideal.dreams
When people use my computer, specifically my parents when they're too lazy to get theirs, they tend to have a pair of wandering eyes. To keep some of my personal data private, I put a '.' in front of the title so it will be hidden by OS X.
Hiding and unhiding the files is quite the pain, though, as I have to open terminal each time, and type in the two commands required to show and hide the files, which are as follows...
Code:
defaults write com.apple.finder AppleShowAllFiles TRUE
Code:
killall Finder
I am curious if it would be possible to implement these two commands into a script, so that when I double-click the file, it opens in Terminal, checks the status of whether the files are hidden or not (whether it's TRUE or FALSE), and then does the opposite of what the check returns. Like if it checks it, and it returns TRUE, it would make it false, and run it, followed by the killall Finder.
I do have a lot of experience with HTML and PHP, but outside that I'm pretty useless.
Can anyone help me?
If anything I said above doesn't make sense, please tell me and I will clarify it.
Thanks,
~ideal.dreams