Hi chown33, Thank you very much for your posting. On the confusing-the-finder and other programs issue, I've been using Macs since 1985 and hand-removing extensions, and have never had any trouble with the finder not knowing what ap to open the file with. After removal of the extension, the icon retains the application icon it's tied to. As far as the Trojan, I've never any trouble with that either, and I'm willing to take the risk.
I already have an applet that will hide the extension of any file dropped onto it. However, the applescript that the applet is made from does not seem to change the name of the selected file. That's why I tried to figure out how to do it. I don't want to have to use an applet. I want to be able to select the item and use a key command to eliminate the extension.
I have a unique reason for doing what I want to do. I have some cognitive deficits which affect the way I visually process file names. I am able to function much better and my work is smoother when the extensions are hidden.
I thought this was going to be a pretty easy matter, but I guess not. Again, I am NOT a very advanced applescripter. I do not understand Hazel scripts, aliases, Posix paths or any of these specialized terms. Much of the suggestions that have been posted here, although appreciated, are way over my head. I am not stupid, I am just not an applescripter beyond some very basic scripting I have done here and there. Having put a number of hours into this already, I felt that rather than having to study and learn a bunch of applescript concepts, that I could just ask here on the forum for a sample script that works.
1) I tried pasting the text of the "Hazel script" in the one link you gave me, into a script editor, selecting my file, and running it. I got this message:
tell application "Finder"
set extension hidden of item 1 to true
end tell
The script runs, the event log says "true", but the file extension does not disappear.
2) I tried running the script in the link you said was an applet on my file, and I got the message "The variable posixPath is not defined."
3) The link to the article you provided about the Finder preference to hide all extensions is something I am very familiar with. But as I said before, it does not work. Never has, as long as I've been using Macs. This has been confirmed by many other forum posts. It's some Apple quirk. Maybe they finally fixed it in Mountain Lion, but I'm on Snow Leopard and they still haven't fixed it in Snow Leopard.
4) Prior to posting my original post here, I had already come across and reviewed the article about hiding extensions being a security risk. In that article, I agree with the person who has not found that to be the case with later systems and opined that perhaps that was a problem with earlier systems. That article also refers to computers networked to servers, which mine is not.
5) Unfortunately I am not familiar with Automator or workflows, so I would not be able to implement your suggested script using the same. I did try just pasting it into a script editor and running it and I got an error.
6) Finally, I am familiar with the command-option-I ("get info) function where you check the box to hide the extension. This takes just as long as manually removing the extension. I was hoping for a key command to do the same.
Once again, I very much solicit your continued assistance until I can get this solved.
Thank you!