View Single Post
  #17  
Old 05-23-2006, 08:38 PM
mypointofview mypointofview is offline
Registered User
 
Join Date: Sep 2005
Posts: 41
I have now tried to run a shell script after backup to create an icon on the target drive but it did not work. Here's what I did:

1. I downloaded the shell script (can't remember - it was on this forum, perhaps this thread). It shows up on my computer as a UNIX deamon (brownish rectangle) and it's called set_icon (no suffix). I opened it with BBEdit out of curiosity and it says:

PHP Code:
#!/bin/sh
echo "Restoring icon for $3..."

if [ -e $HOME"/Volume Icons/$3.VolumeIcon.icns" ]; then
 cp $HOME
"/Volume Icons/$3.VolumeIcon.icns" "$4/.VolumeIcon.icns"
 
/Developer/Tools/SetFile -a C "$4"
fi 
2. I got an icon from my Pixadex collection where I did an export as ICNS. I created a folder named Volume Icons inside my Home Library folder (to have it in a safe place). The icon I renamed as the-volume-name.VolumeIcon.icns - in my case G4 Factory.icns.

3. I launched SuperDuper! and called up my favorite Backup copy script Backup - all files (no HD icon) which is a slightly modified script that will ignore the files Icon and .VolumeIcon.icns from the top level of the master volume.

4. I went into Options > Advanced and checked the box "Run shell script...". Then I clicked the button "Choose" next to it and selected the set_icon shell script described above.

5. I did the Backup - all files (no HD icon).

6. Upon completion the new icon was not there. I looked at the volume also via Get Info in case the finder window had not been refreshing but it was just the generic drive icon.

Questions: Since I followed essentially the instructions... how do I know if I have the developpers tools installed? And: did I place the icon into the right place so that the script could actually be able to find it?

Thanks Dave for all your support. I have zero clou about Shell scripts

Sincerely, Martin.

Last edited by mypointofview; 05-23-2006 at 08:41 PM.
Reply With Quote