That's because the "current directory" isn't necessarily the location of the script. So, you'll really want to put the scpt somewhere you know (e.g. ~/bin) and reference it explicitly.
|
fuzzy outline
Hi
I have been trying to get this work Rather oddly the icon is restored after the backup, but seems to have a fuzzy outline. If I then click on the fuzzy harddrive icon it resorts to the generic yellow firewire drive icon. have you any idea please what I have done wrong? Thanks Mark |
Hm. Are you sure the icns file was taken from an original, non-fuzzy version?
|
Hi
Yes if do the whole process manually, using get info and copy and paste, the the icon looks perfectly Ok. The other thing that happens is that if I try Get Info on the fuzzy file I cannot paste over the top of it - nothing happens! |
Right, but did you copy the original icns file from the destination's volume, after you'd pasted it in? And can you look at it in Preview and have it look correct?
Finally, do you have the developer tools installed? |
Quote:
# Save volume icon if [ -e "$4/.VolumeIcon.icns" ]; then cp "$4/.VolumeIcon.icns" "/tmp/$3.VolumeIcon.icns" fi # 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 Actually, is there a reason SuperDuper doesn't have an option to do this automatically? |
When this was written, there wasn't both a before and after script... but this should work fine.
We don't have this in there because we're working on a better way, and it's not a big problem for most people (not enough of a problem to add it to the template)... |
Icon placement
Dave:
Mu drive layout: internal = iMac Internal HD external #1 partition #1 = LaCie Sandbox external #1 partition #2 = LaCie_External_HD external #2 = LaCie Data HD I have several icns in my (your) "Volume Icons" folder for both iMac Internal HD and LaCie_External_HD. External #2 isn't bootable as its name implies. 1) When booted off my internal drive and I want to do a "Copy all" clone of this internal drive to a sparseimage on LaCie Data HD, my special icn (= a star) gets properly copied per your Script (Volume Icons/iMac_Internal_DU.VolumeIcon.icns and the destination being iMac_Internal_DU inside "iMac_Internal_DU.sparseimage") ... success - AFTER I eject the disk image and then re-double click on the .sparseimage file! I still count this as a success, even given the required eject and re-expansion. 2) When booted off my internal drive and I want to do a "Shared Users and Apps" clone of this internal drive to LaCie Sandbox, my special icn (= a clam) gets properly copied per your Script (Volume Icons/LaCie SandBox.VolumeIcon.icns and the destination being LaCie SandBox - not a sparseimage) ... success! 3) Now, the "feature" ... When booted from either iMac Internal HD or LaCie_External_HD and I want to do a "Copy all" clone of LaCie_External_HD to a sparseimage file on LaCie Data HD, the above "star" icon gets copied (iMac_Internal_DU.VolumeIcon.icns, not LaCie_External_DU.VolumeIcon.icns which is a wrench) ... failure! The destination is a sparseimage file "LaCie_External_DU" on LaCie Data HD with Volume Icons/LaCie_External_DU.VolumeIcon.icns having the correct icon (= a wrench) 4) I do recall your saying awhile ago that all bets are essentially off for a destination of a sparseimage file ... but I am curious why the sparseimage example for (1) works and the sparseimage example for (3) does not work. John Love |
I'm really not sure why this would act any differently, John. Perhaps you can try the alternate approach "DavidGG" has presented for now.
|
Want different icons, easy to control
I just finished reading (well, skimming actually) this discussion.
1. I don't want to do any special coding. I could, but I don't want to. I just want to be able to set a parameter in Preferences. 2. I want the desktop icon of the bootable backup volume to be what I set it to before running SuperDuper. That is, I don't want SD to change it. I want to be able to visually distinguish between my original volume and my backup. It is that simple. 3. So, please consider this a feature request. thanks, dave |
Second Dave's Idea for Preferences Control of Disk Image
After spending 30 bucks on this great piece of software, I think it would not be too much to ask if the company could update their software to let the user pick whether or not the disk image should remain after back up.
I second Dave's idea... Sincerely, Ed Naggiar P.S. I tried with no avail to run the script as instructed in this chain. |
Put me on the bandwagon to have the program make the backup drive retain it's icon...!
I've tried all night to make the fixes mentioned here work, but to no avail either... I'm a USER, not a PROGRAMMER...! |
I will add my voice to those requesting a feature to have the destination drive maintain its own icon.
My destination drive is a second internal hard drive (which i can't eject). Having the icons for my primary (source) and secondary (destination) drives be identical is problematic because it increases the possiblity of accidentally accessing the wrong HD in the finder. |
My Method for what it's worth
I have a pre-script and post-script which run an automator action:
/Users/mark/SaveBackupIcon.app/Contents/MacOS/SaveBackupIcon & /Users/mark/SetBackupIcon.app/Contents/MacOS/SetBackupIcon I did this for flexibility, automator can do applescript, shellscript etc etc. Then the save automator action just runs a shellscript to save the icon to my /ICONS directory: cp '/Volumes/volume/.VolumeIcon.icns' '/ICONS/volume.VolumeIcon.icns' /Developer/Tools/setfile -a V /ICONS/*.icns Then my set automator action to put it back runs the following script: cp '/ICONS/volume.VolumeIcon.icns' '/Volumes/volume/.VolumeIcon.icns' chown mark:admin '/Volumes/volume/.VolumeIcon.icns' /Developer/Tools/SetFile -a C '/Volumes/volumes' I then do a 'Get Specified Finder Items' and that contains the volume whose icon is about to be restored. Pass that into an applescript action: on run {input, parameters} tell application "Finder" to update input return input end run Maybe it's of interest to someone, maybe not! |
Thanks for that, Mark! :)
|
All times are GMT -4. The time now is 11:25 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.