• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: "Sprague, Graham" <email@hidden>
  • Date: Tue, 18 Dec 2001 15:54:38 -0500

Anyone know how to load an image into an image view when the image resides
outside of the project folder? I tried the following but can't seem to get
it to work. I get an error message "NSCannotCreateScriptCommandError (10)".


on clicked theObject

tell application "Finder"
set theImage to "Macintosh HD:80g3.jpg"
end tell

set skuNumber to contents of text field "sku" of window "imagefinder"

set image of image view "image" of window "imagefinder" to load image
theImage

set contents of text field "imagename" of window "imagefinder" to skuNumber
as string

end clicked



Thanks,
Graham Sprague


  • Prev by Date: Re: Broken script in 9.2.2
  • Next by Date: RE: Broken script in 9.2.2
  • Previous by thread: Scripting OSX Directory Services (LDAP)
  • Next by thread: Re: stripping an extra character from a text item
  • Index(es):
    • Date
    • Thread