set theImagePath to "/Users/You/Desktop/ImageFile.jpg"
set theImage to load image theImagePath
set image of image view "image1" of window "main" to theImage
or
set image of image view "image1" of window "main" to (load image
"/Users/You/Desktop/ImageFile.jpg")
greetings bastiaan
Op 5-jul-05 om 19:07 heeft Christopher Hickman het volgende geschreven:
set image of image view "image1" of window "yourWindowName" to load
image
(POSIX path of theimage)
Topher
-----Original Message-----
From: applescript-studio-bounces+tophu=email@hidden
[mailto:applescript-studio-bounces+tophu=email@hidden] On
Behalf
Of Pete Kincaid
Sent: Tuesday, July 05, 2005 12:44 PM
To: applescript applescript
Subject: Load image
Hello, another simple question I hope from a applescript studio
begginer.
Mac OS 10.3.8
I have a .nib window with a imageview whose name is image1. I have a
script
attached to a button that when clicked opens a "choose file"
applescript and
sets the result to variable "theimage".
How do I get "theimage" to appear in my imageview window.
P.S. I want the preview of the image not the path to appear in my
imageview
window.
Thanks
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/
email@hidden