make selected files invisible... ?

I would like to make certain selected files invisible.
actually, it’s just putting a dot (.) in front of the name’s file. (but you need invisible files visible ON, option avaible in OnyX and TinkerTool)

but me, as a newbie in any kind of programmation, I tried to record my steps with AppleScript editor on my “My band” file, and that’s what he records:

tell application “Finder”
activate
set name of document file “My Band.mpg” of folder “clips” of folder “movies” of folder “SK Folder” of startup disk to “.My band.mpg”
end tell

well, I don’t want him to change that specific file in that specific location, I want him to change any “file name” in “.file name”, and I don’t know how to tell Finder that.

can somebody help me? it would be very appreciated

thanks in advance

sk.

running Mac OS X 10.3.4, Script Editor 2.0

Perhaps this one can help you:
http://macscripter.net/faq/general.php?id=P39

Or, if you don’t want to install the big honking Deveolper Tools folder, you can do something like the script beow. It uses the Terminal and the terminal mv command to add a “.” before the file name, effectively making it invisible. The Finder won’t let you do this but Terminal will.


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]