From: Axel Luttgens <>
Subject:r
To: AppleScript Users <>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 27/02/07 5:56, Donald Hall wrote:
Does anyone have any experience running an AppleScript application at
logout in Panther? I have it all working fine in Tiger, but not in
Panther.
I have installed a logout hook shell script that starts up an
AppleScript script application. Running the logout hook script from
Terminal in Panther works perfectly - the script application fires up
and does what it is supposed to.
But what exactly is it supposed to do?
For example, does it involve some user interaction, or target other apps...?
It is only at logout that it doesn't work. I know the logout hook
shell script starts at logout because it creates a file and that file
shows up where expected. However, the script application does not start.
Does it not start, or is it unable to complete its tasks?
The nuance may be enlightening... ;-)
Do the various logs show something?
(I use the 'open' shell command to start the script application
because it is a bundled application and otherwise it didn't seem to
work at all. A bundled application is the only way to get a universal
binary.)
The open command require a lot of things to be running or available
(such as LaunchServices).
Perhaps could you try with osascript?
And, if your AS app isn't too huge/sophisticated, perhaps could you even
write it as an inline AS script and feed it to osascript from within
your shell script?
Does anyone have any suggestions? As I said, it works fine in Tiger. I
can logout and my script application behaves exactly as expected.
I'm not sure, but I am under the impression that Tiger calls logout
hooks earlier in the logout process, when more OS pieces are still
available, than Panther.
BTW, how do you install the hook under Panther? As a loginwindow's
logout hook, or directly in /etc/ttys?
Is there another way to start a script application in Panther other
than with 'open'? I tried to execute the 'applet' inside the bundle
> directly, but couldn't get it to work.
Thanks,
Don
Hmmm, really just guessing here...
But, if you don't mind to share your app, I could do some trials here
while benefitting from a better understanding.
Axel