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

#1 2012-02-28 10:12:48

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Change scratchthumbs.db location

I need to change the location of scratchthumbs.db. I was fine with it back when I was a young Scratcher who didn't mind a big, cluttered desktop, but now I'm hyper-organized (a clean freak as far as desktops go) and would really love to get that file tucked away somewhere in the Scratch folder. Not only does it save space, I'd have three neat columns of icons.  tongue
Can I edit the source code to move it? How?

Last edited by Hardmath123 (2012-02-28 10:44:06)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#2 2012-02-28 10:29:57

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Change scratchthumbs.db location

hmm
no hidden files on mac?

Offline

 

#3 2012-02-28 10:35:46

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Change scratchthumbs.db location

EDIT: you need developer tools (Xcode)

if you are on a mac use this command in terminal

setfile -a V ~/Desktop/scratchthumbs.db

PS the Italics is wrong

Last edited by muppetds (2012-02-28 10:38:41)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#4 2012-02-28 10:46:29

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Change scratchthumbs.db location

I'm thinking more along the lines of editing the Squeak source code's default path. But thanks for the suggestion, muppetds.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#5 2012-02-28 10:50:23

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Change scratchthumbs.db location

no prob - I'm not sure it works like that


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#6 2012-02-28 13:56:16

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Change scratchthumbs.db location

if this happens to me i just rightclick (since i'm on windows) and press "Properties" then press the "Hidden" checkbox and apply - it saves me space  tongue


I'm back.
Maybe.

Offline

 

#7 2012-02-28 15:37:02

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Change scratchthumbs.db location

Hardmath123 wrote:

I'm thinking more along the lines of editing the Squeak source code's default path. But thanks for the suggestion, muppetds.

Maybe there's some kind of primitive in Squeak that allows you to run terminal commands, so you could do that each time the database file is created!  neutral

Offline

 

#8 2012-02-28 17:44:10

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Change scratchthumbs.db location

If you're on a mac, you can chflags hidden them, but there's not much you can do about it because Scratch puts one in each folder you open in thumbnail mode.


nXIII

Offline

 

#9 2012-02-29 07:15:12

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Change scratchthumbs.db location

Ok, then, how about disabling the whole thing?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#10 2012-02-29 07:26:21

logiblocs
Scratcher
Registered: 2010-05-05
Posts: 100+

Re: Change scratchthumbs.db location

I think there is a way, I will look later. I have found the class that manages saving and will see if there is an easy way to disable it.

Offline

 

#11 2012-02-29 07:46:32

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Change scratchthumbs.db location

Hardmath123 wrote:

Ok, then, how about disabling the whole thing?

It will take a long time to generate the thumbnails each time you look at a folder, but if you really want to you can look into ScratchFileChooserDialog and friends.


nXIII

Offline

 

Board footer