• 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: Seting a file's icon from AppleScript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seting a file's icon from AppleScript.


  • Subject: Re: Seting a file's icon from AppleScript.
  • From: John Delacour <email@hidden>
  • Date: Thu, 20 Mar 2003 21:00:32 +0000
  • Mac-eudora-version: 6.0a11

At 11:15 am -0800 20/3/03, Joseph Silverman wrote:

Can anyone help me with a code snippet to set the icon (128x128 ideally) of a file (application actually) to the contents of a graphical file (can be gif, jpg, tiff, whatever, heck - it can even be a .icns file).

So far as I remember you just say

tell app "Finder" to set icon of item "<pathname>" to <icon family>

where <iconfamily> is the data from an 'icns' resource. I've never done it in OS 10 but in OS 7.6+ you could set the icon of item x to (get the icon of item y)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Seting a file's icon from AppleScript. (From: Joseph Silverman <email@hidden>)

  • Prev by Date: Re: Eudora users - Did you know that...
  • Next by Date: What is smile?
  • Previous by thread: Seting a file's icon from AppleScript.
  • Next by thread: Seeking to contract a Script
  • Index(es):
    • Date
    • Thread