In article <towb-07EB91.14422922092004.TakeThisOut@news.1und1.de>,
Tobias Weber <towb.TakeThisOut@gmx.net> wrote:
> As I said this is executed via /usr/bin/osascript inside a shell script
> called from Terminal. I'd like the Finder window to come in front of
> Terminal and get the focus.
If you want both the window to become frontmost in the Finder, and the
Finder to become the frontmost application, use :
tell application "Finder"
set index of window of alias myPath to 1
activate
end tell
Of course, the window must already be open in the Finder.
Patrick
--
Patrick Stadelmann <Patrick.Stadelmann.TakeThisOut@unine.ch><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: move Finder to foreground