Mailing Lists: Apple Mailing Lists

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

Newbie: Showing/Hiding Pictures



My 9-year old is learning Applescript at his school. He is eager to add an interface to his apps. I have experience building applications in Script Editor and Facespan. But, Xcode and Interface Builder are completely new to me.

We have started with a simple application which:
- has hidden pictures of friend of his.
- a button for each friend.
- clicking a button should hide all of the images and show the one for his friend.


But, when we click on a button, we get this error:

Applescript Error: NSCannotCreateScriptCommandError(10)

The images are defined as hidden in interface builder. The starting version of the script is below. Two questions:

1) What are we doing wrong?
2) Can you resource for me I can exploit to avoid dumping similarly basic questions to this list?


on setallhidden()
	set hidden of image "hunter" to true
	set hidden of image "conrad" to true
end setallhidden

on clicked theObj
	if title of theObj is "conrad" then
		--setallhidden()
		set hidden of image "conrad" to false
	end if
end clicked

Thanks much!

Gary
_______________________________________________
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: Showing and closing windows in AppleScript Studio (Xcode 2, Tiger) (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.