0

Is it possible to bring a Finder window to the front by id? I've tried both of the following, but neither seems to work.

tell application "System Events" to tell process "Finder" to set index of window id 120 to 1
tell application "System Events" to tell process "Finder" to set frontmost of window id 120 to true

1 Answer 1

1

Figures that I would stumble upon the solution to this almost immediately after posting here. 🤦

tell application "Finder" to set index of window id 120 to 1

I guess involving "System Events" when trying to use a window id retrieved via a tell application "Finder" statement was the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .