Aha, of course.The program makes assumptions about the file name and since it is naming the method like the file it fails, because you can't have "-" in method name.I could change it so it removes all non-alphanumeric characters from the name.PeterOn Sat, Apr 4, 2015 at 3:52 PM, kilon alios <kilon.alios@gmail.com> wrote:"-" has some special meaning here ?I found the problemlooks like it does not like that i use "-" inside the file name. In the folder the name of the file is not Norse_large-cpc.png but Norse-large-cpc.png
"Norse_largeThe '-' prefix works only for literal numbers (use #negated instead) -> -cpcIconContents
������ "Private - Method generated with the content of the file File @ /Users/kilon/Downloads/Norse_large-cpc.png""On Sat, Apr 4, 2015 at 4:12 PM, Peter Uhn��k <i.uhnak@gmail.com> wrote:create file ? i thought the class only creates methodsyeah, I mean method��anyway, the method is created , but it does not proceed to next png. Shouldn create a method for each png it finds in the directory ?yes it should, it operates on a collection, so if��dir allFiles select: [ :each | each extension = 'png' ]shows more then one file it should also create a method for each one, not just the firstPeter