• 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
[Q] Problem in loading an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] Problem in loading an image


  • Subject: [Q] Problem in loading an image
  • From: JongAm Park <email@hidden>
  • Date: Sat, 30 Sep 2006 07:48:17 -0700

Hello.

I ran into this weird problem


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!!!!!


_______________________________________________ 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:
    • ACROBAT 7: Scripting Default Font Size for Text Annotations
      • From: Rick Gordon <email@hidden>
  • Prev by Date: Re: iTunes7: How to copy multiple artworks to other tracks?
  • Next by Date: ACROBAT 7: Scripting Default Font Size for Text Annotations
  • Previous by thread: can't create a read only object
  • Next by thread: ACROBAT 7: Scripting Default Font Size for Text Annotations
  • Index(es):
    • Date
    • Thread