You have Mac and PC ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

You have Mac and PC ?

Edgar J. De Cleene
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:
newName.]].
FileDirectory setDefaultDirectory: oldFolder pathName.

Hope could be useful to someone

Edgar


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners