Hi !
here is my problem. i have multiple window. i can open and close them when i use a button (sender) but when i just call the routine “on openMasqueWindowFromLDI” from an other script ; it doesn’t work
i think, i don’t need to pass parameter
Have you an idea ?
Thanks. Chris
in main script
on openMasqueWindowFromLDI:()
my closeActiveWindow()
my openNewWindow(windowToOpen)
end openPreferenceWindow:
-- Routine -----------------------------
on closeActiveWindow()
activate me -- activate my app
activeWindow's orderOut:me -- close normally the active window
end closeActiveWindow
on openNewWindow(newWindow)
newWindow's orderFront:me
set activeWindow to newWindow
activeWindow's makeKeyAndOrderFront:me
activeWindow's |center|()
end openNewWindow