I you're stuck and don't want to spent any more time on this problem
I would suggest you actually do start a new project. I believe you
can just copy the MainMenu.nib file from one project to the other
replacing the existing one and it will retain the AppleScript
information for the UI elements.
The last thing I could think of would be to change the bundle
identifier for your application. That's the value for the
CFBundleIdentifier key in the Info.plist file. If I understand things
correctly this is what gets registered with LaunchServices and
LaunchServices is responsible for allowing an application to be
visible in the Dock and have a menu bar. So my wild guess is that
something went wrong there and changing the bundle identifier might
fix that.
Basically there's no way in AppleScript to start an application
without it being displayed in the Dock by issuing a few commands
before the application is finally launched so it would surprise me if
this error would be attributable to your AppleScript code.
Good luck,
Adrian
On 20.01.2006, at 12:20, Kiel wrote:
Hi Adrian,
Thanks for the workaround.
Regarding my own app. I set up many try/error steps with error logs
and if clauses with logs, as well as simple "step logging" (log 1,
log 2, …) for the "will finish launching" handler. All the steps
done during launch proceed without any error. But the behaviour is
still the same.
I did a copy paste of the "main script" and "launch scripts" code
into a fresh project. This project also compiles fine (except
errors for non existing data sources) and it will show up and
behave as expected.
I still got no idea what happened and how to fix.
Regarding the problem with your application not being launched
correctly: Did you check the console.log for any messages that
might give us a clue as to what is going wrong?
Later,
Adrian
On 20.01.2006, at 01:19, Kiel wrote:
Hi Adrian,
Many thanks for the reply.
there's a default key named "LSUIElement" that when set to "1"
has the same effect you're describing: The application won't
show up in the Dock and the main menu will not be visible. So
check your Info.plist file or trash the preference file for your
application and see if that helps.
I've searched for the "LSUIElement", but I can't find that within
the code or Info.plist. Also trashing the prefs didn't help - but
at least I found another error that way.
So I've still got no idea what happened. The app shows up after
build&run (with no errors) but stays in the background behind
Xcode. The main window title is greyed, a click on the main
window will make it frontmost but the title is still greyed, a
click on one of the buttons of the window will make the title
appear as normal, but still no menus appear.
I also noticed your message that you sent as a reply to Brad's
question about Outline Views and the "selection changed" handler
not being called. I sent a workaround for this problem to you,
the list, Brad and all other people in the list that I could
find and asked about this problem. Didn't you get it?
My message had as subject >WORKAROUND: Outline View does not
call "selection changed" handler< and was sent on 17th of
January 2006 at 11:58:27 AM.
Unfortunately I did not get the message and also didn't find in
the ASS list - maybe you could be so kind to resent.
Best regards
Andreas
Best regards,
Adrian
On 19.01.2006, at 16:13, Andreas Kiel wrote:
H all,
I just made a small change to an application I'm working on.
After build&run everything compiled without error and the app
showed up, but it stays in the background, has no menu and
doesn't show up in the dock. Reverting to the original state in
XCode (by "Undo"), doesn't make any difference.
All buttons do work fine, but other things like menus or drop
are not working any more.
any help is really appreciated since the app has many thousand
lines of code and I would be more than happy to be able to fix
it without rebuilding the whole applocation
Regards
Andreas Kiel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/lists%
40macevangelist.de