The Finder's information should be refreshing automatically and instantly as files and information is changing that is the goal and why Apple does not provide a "Refresh" option, although in practice things sometime don't work for whatever reason.
If the information is not automatically updating changes to files etc, it may be the result of a bug or Finder preferences corruption, or other corruption.
Make sure you are running the latest version of OS X, as the issue may be a bug that has been fixed already.
Additionally for folders where the contents are not updating properly it might be a good idea to try and remove the .DS_Store file for that directory, and see if that has an effect. (restarting the finder to verify)
The next option would be to reset the Finder's preferences. Try removing the the file named com.apple.finder.plist located at ~/Library/Preferences/com.apple.finder.plist
(restarting the finder to verify)
If the problem is consistently occurring contact Apple and show them the issue and how to repeat it, you may have found a bug.
Any file or folder that begins with '.' is going to be hidden in the Finder. That has always been true, back to the days of NeXTStep.
If what you are trying to do is automatically rename files that begin with a '.' to not begin with a '.' that can easily be accomplished with a shell script. Save the following as /usr/local/bin/rename-dot-files.sh
:
#!/bin/zsh -f
DIR="$HOME/Downloads/"
cd "$DIR"
ls -1Ad \.* | egrep -v '.DS_Store|.localized' | while read line
do
NEWNAME=$(echo "$line" | sed 's#^\.##g')
/bin/mv -vn "$line" "$NEWNAME"
done
exit 0
That script will look in $HOME/Downloads/
for any files that start with a . (excluding .DS_Store and .localized which you do not want to rename) and will rename it to the same name, without the '.' as long as there is no other file/folder with that same name.
To do this automatically you will need to create a launchd
plist that will automatically launch any time the directory changes:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.tjluoma.rename-dot-files</string>
<key>Program</key>
<string>/usr/local/bin/rename-dot-files.sh</string>
<key>RunAtLoad</key>
<true/>
<key>WatchPaths</key>
<array>
<string>/Users/luomat/Downloads/</string>
</array>
</dict>
</plist>
Obviously you'll want to change the path from /Users/luomat/
to whatever your $HOME is.
Save that plist to ~/Library/LaunchAgents/com.tjluoma.rename-dot-files.plist
and then load it as:
launchctl load ~/Library/LaunchAgents/com.tjluoma.rename-dot-files.plist
The script will run whenever the ~/Downloads/ is changed, which includes any files being added or removed, but it automatically limits itself to files which begin with '.'
Best Answer
In order to make only this specific file visible in Finder, try the following command using
Terminal.app
from Applications > Utilities:Hope this helps