why error msg "Some files are marked \"read-only\"...

when trying to save a sketch an error msg comes up:

Some files are marked "read-only", so you'll need to re-save the sketch in another location, and try again.
in german
Einige Dateien wurden als schreibgeschützt markiert, also müssen Sie den Sketch woanders speichern und es erneut versuchen.

i cant find a way getting rid of this, it worked quite a while without the msg
the effect suddenly appeared (mac 10.6.8, arduino 1.0.5), i changed the rights of every file in every folder ...
no effect

when i save the sketch under a new name, new location, same thing happens, next time i try to save

thanks for help

bern_hard

This typically happens when you try to save a sketch inside the examples folder. Where are you saving these sketches?

If you changed the status of the files in your folder, and still cannot save the file, and you didn't close the IDE while you were doing that, that's why the problem seems to not be solved.

The IDE will notice that the file was "read-only" when you openned it and started editing, and it remembers that, and won't know that you have gone to the folder and changed it.

I could be wrong but I can think of two reasons why the IDE was written like that.

1- You open an "Example" sketch and modify it and try to save it without changing the filename. (no explanation necessary)
2- You create a sketch that you have saved at least once, then modified it and try to save it with same filename. The IDE wants you
to know that it is different from the last save and wants you to indicate that in the filename with something (anything) like "-2".
or "-3".
[EDIT](#3 added after reading Reply#4)
3-You create a new sketch and try to save it in an IDE Examples folder

arrch was right

thank you
i when i saved inside the libraries folder
(shame on me)
the problems occur
outside everything is fine

thanks