We don't know what kind of app yours is, so we have no way to tell if its
behavior is more like Preview, more like TextEdit, more like System
Preferences, or more like <insert name here>.
Thomas Singer wrote:
I've tried to write the login item names to stdout.
Did you write an AppleScript, or did you write a Java program , or did you
write a shell script?
I'm trying to understand the context where the error message "variable
'stdout' not defined" appears, and I don't know which of the 3
possibilities I listed you're talking about, or whether it's a combination:
Java exec'ing an AppleScript, Java exec'ing a shell script, Java exec'ing a
single 'osascript' command, etc.
When I used the term "stdout" before, I simply meant "the standard output
stream". I didn't mean to imply there is an object or class named "stdout"
available to AppleScripts. I didn't even mean to imply that you should
write an actual AppleScript module: an osascript command-line is all I
intended.
It is not perfect, but better than starting our application with windows
at login.
Have you considered a Launch Agent?
BTW, the Preview application behaves the same, it does not show any window
at all when started.
That's because Preview is a read-only viewer. If you don't give it any
documents you want to view, it makes sense for it to not show any windows,
document-windows or otherwise.
We don't know what kind of app yours is, so we have no way to tell if its
behavior is more like Preview, more like TextEdit, more like System
Preferences, or more like <insert name here>.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden