At 13:47 -0800 10/12/02, Adam Wells wrote:

One good way is to use AppleScript for both of these, with the "osascript" command.

The following simple AppleScript will kill Internet Explorer:

-----
tell application "Internet Explorer"
quit
end tell
-----
Not that this is an AppleScript list, but the one line version of this is helpful here:

tell application "Internet Explorer" to quit

(when typing and lazy, application can be shortened to app too).

% osascript -e 'tell application "Internet Explorer"' -e 'OpenURL "http://www.example.com";' -e 'end tell'
% osascript -e 'tell application "Internet Explorer"' -e 'quit' -e 'end tell'
The above is esspecially useful here:

osascript -e 'tell app "Internet Explorer" to quit'

Enjoy,
   Peter.

--
<http://www.interarchy.com/>  <http://download.interarchy.com/>

Reply via email to