set YouTubeIcon to load image "YouTubeVideo"
display dialog ((class of (load image "YouTubeVideo")) as
string) & " " & (class of YouTubeIcon) as string
-- it shows that the (load image "YouTubeVideo") returns image
type, and YouTubeIcon is also image type.
However this works :
set image of image view "iconImageView" of window "CocoaTube" to
load image "YouTubeVideo"
While this doesn't work.
set image of image view "iconImageView" of window "CocoaTube" to
YouTubeIcon
Can anyone please explain this to me?
Thank you.
P.S. AppleScript is more difficult to me than Objective-C/C++ is!!!!!