Mailing Lists: Apple Mailing Lists

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

windowing question



Hi all.

I'm sort of getting the hang of this apple script application, but i'm finding reverse engineering all the examples leaving me with obvious knowledge gaps. Anyone care to recommend some decent reading material (web? books)??

my current problem is that i've used the example code to activate a window when the user selects Preferences from the menu

heres the code:

on choose menu item theObject
if prefsWindow is equal to null then
load nib "preferences"
set prefsWindow to window "prefsWindow"

end if
set visible of prefsWindow to true
end choose menu item

that works fine ONCE. then when the preferences option is greyed out and cant be reselected. I've looked at the setup of the sample apps, and cant find anything i'm doing differently, so any insights would be welcome :)

Cheers,

Steve


Steven Doyle..
------------------------------------------------------------------------ ----
ichat: email@hidden
IT Manager - School of Communications & Multimedia
Edith Cowan University. Perth. Australia.

"Some cause happiness wherever they go; others, when they go" - Oscar
Wilde
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
Do not post admin requests to the list. They will be ignored.



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.