#9
|
||||
|
||||
You'd need to create two files -- plain text ones -- with those commands in them. The actual files would be:
saveicon.sh: Code:
#!/bin/sh # Save volume icon if [ -e "$4/.VolumeIcon.icns" ]; then cp "$4/.VolumeIcon.icns" "/tmp/$3.VolumeIcon.icns" fi Code:
#!/bin/sh # Restore volume icon if [ -e "/tmp/$3.VolumeIcon.icns" ]; then cp "/tmp/$3.VolumeIcon.icns" "$4/.VolumeIcon.icns" if [ -e /Developer/Tools/SetFile ]; then /Developer/Tools/SetFile -a C "$4" # Set "custom icon" flag for volume fi rm -f "/tmp/$3.VolumeIcon.icns" fi Code:
chmod +x ~/saveicon.sh ~/restoreicon.sh
__________________
--Dave Nanian |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot find target volume | Timmy | General | 6 | 03-13-2006 01:06 PM |
maintaining target volume icon | yoxi | General | 43 | 12-16-2005 09:41 AM |
SD sannot find target Volume problem | braeside | General | 7 | 09-02-2005 03:59 PM |
Error while trying to enable permissions on target volume | Hoosier_1701 | General | 11 | 07-16-2005 11:50 AM |
Cannot find target volume -- Even with volume mounted! | cmod | General | 3 | 06-03-2005 09:21 AM |