This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-05-20 12:39:10

fab_programmer123
Scratcher
Registered: 2007-04-21
Posts: 27

Scratch fails to save file with * in filename

Whenever I am working on a project and I save the project with an ( * ) in it,a window pops up saying that the save failed or something like that and it asks me whether i want to proceed, debug, or abandon, and when i go to the place on my computer where i saved it, the filename is tmp001.

Offline

 

#2 2007-05-20 15:44:03

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Scratch fails to save file with * in filename

Filenames should be limited to what the operating system comfortably supports.
As a general rule, using only letters, digits, underscore, and minus is safest, though both PCs and Macs will accept other characters.  Transferring files with weird characters in them often causes problems.

I agree that scratch should prescreen the file names and tell you that it refuses to use "*" in filenames, rather than letting the OS mess up.

Offline

 

#3 2007-05-20 19:44:23

fab_programmer123
Scratcher
Registered: 2007-04-21
Posts: 27

Re: Scratch fails to save file with * in filename

The thing is though, when I try to save with an * in the file name, the window that pops up is not from the operating system, it's within scratch. I believe it's some sort of window from squeak, as I'm pretty sure scratch was written with some sort of connection with squeak.

Offline

 

#4 2007-05-21 13:36:08

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Scratch fails to save file with * in filename

Yes.  There are two aspects to the problem:

1) what workaround can you use? (avoid dangerous filenames)
2) what should the Scratch team do? (test for and prohibit dangerous filenames)

Offline

 

#5 2007-05-21 14:46:25

Mick
Scratcher
Registered: 2007-03-23
Posts: 100+

Re: Scratch fails to save file with * in filename

When I put : in a project's name it saves it as a - instead of a :.


Go to www.legoless.com
It's my blog.  big_smile

Offline

 

Board footer