[Newbies] You have Mac and PC ?

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Sat Jul 7 13:34:04 UTC 2007

And was tired of problems if you wish copy files between two ?

Here a Squeak solution what Windows XP and OS X don't have.

You could save as and use in any Squeak.
"Jolietize.st"  For using on OS X

| listaArchivos newName badChars oldFolder newFolder |
badChars := #( $: $< $> $| $/ $\ $? $* $") asSet.
oldFolder _ FileDirectory default.
    newFolder _ FileList2 modalFolderSelector.
    FileDirectory setDefaultDirectory: newFolder pathName.
listaArchivos _ FileDirectory default fileNames copyWithout: ( FileDirectory
default fileNames first).
listaArchivos do: [:fName | (fName includesAnyOf: badChars )ifTrue:[newName
:= fName copyWithoutAll: badChars.FileDirectory default rename: fName toBe:
FileDirectory setDefaultDirectory: oldFolder pathName.

Hope could be useful to someone


More information about the Beginners mailing list