Re: "icon note" in Tiger now a generic icon
Re: "icon note" in Tiger now a generic icon
- Subject: Re: "icon note" in Tiger now a generic icon
- From: kai <email@hidden>
- Date: Tue, 29 Nov 2005 05:52:41 +0000
On 29 Nov 2005, at 04:41, Michael Henley wrote:
OMM that's just the standard mac face. The old talkie face as I
remember it was a half-face with a cartoon bubble. Does anybody
know where that is?
It's resource id -3820 of the "icns" resource in "/System Folder/
System Resources". One way to get at it might be to copy it (using a
resource editor) - and then put the copy somewhere more accessible...
FWIW, here's a somewhat less ambitious approach for a general icon
viewer:
-----------------
property iconList : missing value
property currIcon : missing value
set p to (path to "csrv" as Unicode text) &
"CoreTypes.bundle:Contents:Resources:"
tell application "Finder" to if iconList is missing value then
set iconList to name of folder p's document files whose name
extension is "icns"
set currIcon to iconList's item 1
end if
repeat
tell (choose from list iconList default items currIcon with prompt ¬
"Choose an icon to view:" OK button name "View...")
if it is false then return
set currIcon to item 1
end tell
set f to p & currIcon
set s to ((info for file f)'s size) div 1
tell (display dialog currIcon & return & "(" & s & " bytes)" with
icon ¬
file f buttons {"Cancel", "Copy Alias", "More..."} default button
3) to ¬
if button returned is "Copy Alias" then
tell me to set the clipboard to "alias \"" & f & "\""
return
end if
end repeat
-----------------
Um... interesting to note that AppleLogoIcon.icns in CoreTypes.bundle
is still the old, rainbow-coloured Apple logo... ;-)
---
kai
_______________________________________________
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