Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #31  
Old 08-13-2006, 03:15 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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.
__________________
--Dave Nanian
Reply With Quote
  #32  
Old 08-31-2006, 12:17 PM
markstenton markstenton is offline
Registered User
 
Join Date: Aug 2005
Posts: 4
Question 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
Reply With Quote
  #33  
Old 08-31-2006, 12:26 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Hm. Are you sure the icns file was taken from an original, non-fuzzy version?
__________________
--Dave Nanian
Reply With Quote
  #34  
Old 08-31-2006, 12:41 PM
markstenton markstenton is offline
Registered User
 
Join Date: Aug 2005
Posts: 4
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!
Reply With Quote
  #35  
Old 08-31-2006, 12:42 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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?
__________________
--Dave Nanian
Reply With Quote
  #36  
Old 09-19-2006, 10:22 PM
DavidGG DavidGG is offline
Registered User
 
Join Date: May 2006
Location: Barcelona, Spain
Posts: 1
Quote:
Originally Posted by dnanian View Post
- Create a folder named "Volume Icons" in your Home.
- In there, place the icon you want, for a given volume, named "the-volume-name.VolumeIcon.icns".
- Download the attached and set it as your "after copy" script in Advanced
I may be missing something here, but is there a reason why the user should be bothered with maintaining a "Volume Icons" folder? Wouldn't it be better to use a "before copy" script that saves the icon in /tmp, and an "after copy" script that restores it later?

# 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?

Last edited by DavidGG; 09-19-2006 at 10:24 PM.
Reply With Quote
  #37  
Old 09-19-2006, 10:29 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
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)...
__________________
--Dave Nanian
Reply With Quote
  #38  
Old 09-20-2006, 12:08 PM
john love john love is offline
Registered User
 
Join Date: Apr 2004
Posts: 22
Question 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
Reply With Quote
  #39  
Old 09-20-2006, 12:46 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
I'm really not sure why this would act any differently, John. Perhaps you can try the alternate approach "DavidGG" has presented for now.
__________________
--Dave Nanian
Reply With Quote
  #40  
Old 10-19-2006, 12:43 PM
davebarnes davebarnes is offline
Registered User
 
Join Date: May 2006
Location: Denver, CO USA
Posts: 30
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
__________________
Dave Barnes
+1.303.906.2264
Reply With Quote
  #41  
Old 10-30-2006, 09:09 AM
enaggiar enaggiar is offline
Registered User
 
Join Date: Oct 2006
Posts: 1
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.
Reply With Quote
  #42  
Old 12-22-2006, 02:49 AM
Toddster63 Toddster63 is offline
Registered User
 
Join Date: Dec 2006
Posts: 1
Angry

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...!
Reply With Quote
  #43  
Old 01-21-2007, 03:50 PM
UniAce UniAce is offline
Registered User
 
Join Date: Jan 2007
Location: Urbana, IL
Posts: 15
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.
Reply With Quote
  #44  
Old 01-23-2007, 01:00 PM
MarkUK MarkUK is offline
Registered User
 
Join Date: Jan 2007
Posts: 1
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!
Reply With Quote
  #45  
Old 01-23-2007, 07:18 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Thanks for that, Mark!
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 05:13 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.