Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load image



this will work

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:

I think what you want is the AppleScript command 'load image' described
here:
<http://developer.apple.com/documentation/AppleScript/Reference/ StudioRefere
nce/sr3_app_suite/chapter_3_section_25.html>


Basically you'll do this:

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


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

This email sent to email@hidden
References: 
 >RE: Load image (From: "Christopher Hickman" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.