#18
|
|||
|
|||
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! |
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 |