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

#1 2011-08-03 13:56:43

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Change file icon

How do you change the cat icon that shows up in the image of a file on your filesystem?

E.g.: http://i.imgur.com/GBWQO.png

Offline

 

#2 2011-08-03 14:04:57

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Change file icon

the file has to be a shortcut, and then right-click >> properties and change icon and upload teh file.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#3 2011-08-03 14:10:12

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

I want to know how to change that when the file is created in Scratch, not using the Operating System options.

Offline

 

#4 2011-08-03 14:16:47

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Change file icon

thats not possible


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-08-03 14:20:31

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: Change file icon

download resource hacker and change the icon. you have to have a .ico image to use as the new icon.


the the the the the

Offline

 

#6 2011-08-03 14:30:03

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

WindowsExplorer wrote:

thats not possible

Of course that's possible. BYOB does that.

I think you didn't understand. Somewhere in the code, there is a method that creates the file in the filesystem and sets its icon to the Scratch cat. I want to know where that method is so I can change the icon to something else.

Offline

 

#7 2011-08-03 14:31:48

jslomba
Scratcher
Registered: 2009-09-25
Posts: 1000+

Re: Change file icon

Baderous wrote:

WindowsExplorer wrote:

thats not possible

Of course that's possible. BYOB does that.

I think you didn't understand. Somewhere in the code, there is a method that creates the file in the filesystem and sets its icon to the Scratch cat. I want to know where that method is so I can change the icon to something else.

well then edit the skin and change that picture to the picture you want, just make sure it's a GIF, though. then, load the skin and save image for end-user. done!

Last edited by jslomba (2011-08-03 14:35:04)


the the the the the

Offline

 

#8 2011-08-03 14:43:13

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: Change file icon

it is impossible without hacking scratch.


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#9 2011-08-03 14:43:31

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

I would change it if I knew which picture it is. I've looked in the ScratchSkin and haven't found it.

Offline

 

#10 2011-08-03 14:44:59

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Change file icon

Baderous wrote:

I would change it if I knew which picture it is. I've looked in the ScratchSkin and haven't found it.

The picture will not be within scratch, if it's the picture that you're refering to at the start (in the picture) lol to many pictures XD, the picture will only be in the installer for scratch.


http://i.imgur.com/zeIZW.png

Offline

 

#11 2011-08-03 15:03:47

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

rookwood101 wrote:

Baderous wrote:

I would change it if I knew which picture it is. I've looked in the ScratchSkin and haven't found it.

The picture will not be within scratch, if it's the picture that you're refering to at the start (in the picture) lol to many pictures XD, the picture will only be in the installer for scratch.

What do you mean by "the picture will only be in the installer for scratch"? I am modifying the source code provided by MIT, not the original Scratch.

Offline

 

#12 2011-08-03 15:10:36

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Change file icon

Baderous wrote:

rookwood101 wrote:

Baderous wrote:

I would change it if I knew which picture it is. I've looked in the ScratchSkin and haven't found it.

The picture will not be within scratch, if it's the picture that you're refering to at the start (in the picture) lol to many pictures XD, the picture will only be in the installer for scratch.

What do you mean by "the picture will only be in the installer for scratch"? I am modifying the source code provided by MIT, not the original Scratch.

Assuming you want to change the icon for a scratch project in windows explorer, it is set by the scratch installer.

I am basing this on the fact that the picture you gave us as an example shows this.


http://i.imgur.com/zeIZW.png

Offline

 

#13 2011-08-03 15:19:20

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

But I could be exploring the source code without installing Scratch. The source code is just an .image file which I am opening in a Squeak VM (which needn't be Scratch.exe, or in my case Scratch.app, since I am using Mac OS X).

Offline

 

#14 2011-08-03 15:40:21

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Change file icon

Baderous wrote:

But I could be exploring the source code without installing Scratch. The source code is just an .image file which I am opening in a Squeak VM (which needn't be Scratch.exe, or in my case Scratch.app, since I am using Mac OS X).

If you haven't installed scratch using the installer, then you won't get the cat picture on projects.


http://i.imgur.com/zeIZW.png

Offline

 

#15 2011-08-04 03:23:22

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Change file icon

if your talking about the icon that shows on the Scratch.exe file and in the top-left corner of Scratch, use Resource Hacker.
if you mean the icon on files you save in Scratch, windows automatically uses the icon for Scratch.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#16 2011-08-04 04:01:20

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Change file icon

nathanprocks wrote:

if your talking about the icon that shows on the Scratch.exe file and in the top-left corner of Scratch, use Resource Hacker.
if you mean the icon on files you save in Scratch, windows automatically uses the icon for Scratch.

As I said above, the icon on the files you save in scratch, is set by the installer when you run it.


http://i.imgur.com/zeIZW.png

Offline

 

#17 2011-08-04 06:12:58

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Change file icon

rookwood101 wrote:

nathanprocks wrote:

if your talking about the icon that shows on the Scratch.exe file and in the top-left corner of Scratch, use Resource Hacker.
if you mean the icon on files you save in Scratch, windows automatically uses the icon for Scratch.

As I said above, the icon on the files you save in scratch, is set by the installer when you run it.

the installer changes the computers settings to make *.sb files open with scratch. windows shows the icon of the program that opens the file.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#18 2011-08-04 06:14:03

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Change file icon

nathanprocks wrote:

rookwood101 wrote:

nathanprocks wrote:

if your talking about the icon that shows on the Scratch.exe file and in the top-left corner of Scratch, use Resource Hacker.
if you mean the icon on files you save in Scratch, windows automatically uses the icon for Scratch.

As I said above, the icon on the files you save in scratch, is set by the installer when you run it.

the installer changes the computers settings to make *.sb files open with scratch. windows shows the icon of the program that opens the file.

But the installer tells windows what icon to use for it, windows CAN decide on icons for programs, but in this case, the installer does it.


http://i.imgur.com/zeIZW.png

Offline

 

#19 2011-08-04 06:48:31

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Change file icon

rookwood101 wrote:

nathanprocks wrote:

rookwood101 wrote:


As I said above, the icon on the files you save in scratch, is set by the installer when you run it.

the installer changes the computers settings to make *.sb files open with scratch. windows shows the icon of the program that opens the file.

But the installer tells windows what icon to use for it, windows CAN decide on icons for programs, but in this case, the installer does it.

i don't really understand what your saying because if i make a program, then change the settings in windows to make files open with my program, it shows my programs icon on the files.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#20 2011-08-04 07:51:28

Baderous
New Scratcher
Registered: 2011-04-14
Posts: 100+

Re: Change file icon

That could be true for .sb files. The point here is that I've modified the source code to create files with a different extension and they still show up the cat icon.

Offline

 

Board footer