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.
Peter On Sat, Apr 4, 2015 at 3:52 PM, kilon alios <kilon.al...@gmail.com> wrote: > I found the problem > > "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"" > > looks 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 > > "-" has some special meaning here ? > > On Sat, Apr 4, 2015 at 4:12 PM, Peter Uhnák <i.uh...@gmail.com> wrote: > >> create file ? i thought the class only creates methods >>> >> yeah, 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 first >> >> Peter >> > >