Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: icon of file



Hi Peter,

set iconImage to call method "iconForFile:" of (call method "sharedWorkspace" of class "NSWorkspace") with parameter "/Some/Full/POSIX/Path/Here/To/Your/File"

This should do the trick, even tested it myself ;-)

Tim

On Friday, August 22, 2003, at 04:02 AM, peter wrote:

Hi
I have made several posts both here and elsewhere regarding
obtaining the icon image of a file ( outside of my app bundle) to display in an image view in my AS app.
I have learned that "Icon" in finder on OSX is not yet supported.
So far, nobody seems to know a workaround for this.
Surely call method "icon" or some other Obj C method can help me achieve this?

Sorry to keep asking the same question.............
thanks

Peter
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.

References: 
 >icon of file (From: peter <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.