• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting icon (Applescript-users Digest, Vol 2, Issue 108)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting icon (Applescript-users Digest, Vol 2, Issue 108)


  • Subject: Re: Setting icon (Applescript-users Digest, Vol 2, Issue 108)
  • From: Stephen Jonke <email@hidden>
  • Date: Tue, 15 Feb 2005 09:56:39 -0500


On Feb 15, 2005, at 12:42 AM, Jonathan Levi, M.D. wrote:

do shell script ("rm " & quoted form of ((POSIX path of the folder/disk) & "Icon?"))

For volumes I now see that it appears to be stored in ".VolumeIcon.icns" at the top level of the drive. So what I did was set the icon to what I want it to be, then I copied that file from the disk to a folder, and then in the script I copy (do shell script "cp ...") that icon file on to the volume. Lastly I do:


   tell app "Finder" to update disk "Disk Name"

That updates the display of the disk in the Finder so the new icon shows. Works like a charm!

FYI, this is for a backup (cloning) script (I'm scripting the program SuperDuper!). A problem with cloning is that it clones the icon of the original disk too, which means all my drives end up looking the same. By using the above technique I can now set the icon for the backup drive to a different one that I want. Thanks for the help!

Steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Setting icon (Applescript-users Digest, Vol 2, Issue 108) (From: "Jonathan Levi, M.D." <email@hidden>)

  • Prev by Date: Multiple Clipboards?
  • Next by Date: Create a .jpg from text...
  • Previous by thread: Re: Setting icon (Applescript-users Digest, Vol 2, Issue 108)
  • Next by thread: scripting printing in iCal
  • Index(es):
    • Date
    • Thread