You'll want to go to File>Options>Script Triggers and use OnFirstWindowOpen. Write a script that looks for the device, then goes to the layout you want.
Great, Thanks for that.
What about if the database is only for Ipad and i want always layout "main screen" open first. It must be easy setting some where and i am sorry I am still a newbe to file maker.
Thanks for help.
In Filemaker go to "File" - "File Options" and in the "Open" tab choose "Specify" right after "Switch to layout"
There choose the layout you want to start in.