show - hide window

Hi Folks,

in my application I have a funny situation:

I have a “splash” window which should appear when the application is starting, and
should be hidden when everything is loaded…

When I put the code in the on awake from nib then everything is working fine - unless the script is delaying for 10 seconds, and everything I want to load will load afterwards…



show window id 2
delay 10
hide window id 2


so I thought it would be better to put the show and the hide in the handler on launched the Application


on launched theApplication
show window id 2

--do lots of things...

--more things...

--end reached...

hide window id 2


Now I got an “NsREcieverEvauationScriptError: 4 (1)” which means something like “file not found” - does anybody can tell me why?

Thanks for your help and support!

Stefan

Stefan,

it seems to be a AppleScript Studio problem
so you should post all this stuff in the AppleScript Studio category.

Hi Stefan,

sorry, I took the wrong category…

thanks,

Stefan