• 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
Get default icon of document/application/folder programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get default icon of document/application/folder programmatically


  • Subject: Get default icon of document/application/folder programmatically
  • From: Kevin Walzer <email@hidden>
  • Date: Sun, 13 Nov 2005 16:48:59 -0500
  • Organization: WordTech Software

Does anyone know if it's possible to get the default icon of a file/application/folder via AppleScript? I know there are functions at the C level in Carbon for this, but I'd rather access it in AS if possible.

Looking at Finder's dictionary, I see a reference to "icon family," but using this code:

tell application "Finder"
	get the icon of (choose file)
end tell

returns an error of "missing value"?

Thanks for any advice.

--
Cheers,

Kevin Walzer, PhD
WordTech Software - "Tame the Terminal"
http://www.wordtech-software.com
sw at wordtech-software.com
_______________________________________________
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


  • Follow-Ups:
    • Re: Get default icon of document/application/folder programmatically
      • From: Dave Lyons <email@hidden>
  • Prev by Date: Re: Entourage -- moving message from one folder to another
  • Next by Date: Re: do shell script "sort" not working : Thanks!
  • Previous by thread: Re: Entourage -- moving message from one folder to another
  • Next by thread: Re: Get default icon of document/application/folder programmatically
  • Index(es):
    • Date
    • Thread