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

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 04-21-2007, 05:44 AM
TimLawson TimLawson is offline
Registered User
 
Join Date: Apr 2007
Posts: 12
Quote:
Originally Posted by MarkUK View Post
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!
I feel bad asking, but would it be possible, please, to have step-by-step instructions for a non-programmer to be able to do this? Grovel, grovel!

Tim.
Reply With Quote
 


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 01:29 PM.


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