hombre
Jan 16, 2006, 10:16 PM
In PF3, I used the following Applescript (triggered by a keyboard shortcut Cmd-Shft-W using Keyboard Maestro (other similar programs would work)) to close all windows except the front one:
tell application "Path Finder"
close (every window whose index is not 1)
end tell
In PF4, that script now appears to close all open windows, but the following seems to work:
tell application "Path Finder"
close (every window whose index is not 2)
end tell
I don't actually understand any of this because I don't know Applescript. FWIW, the one I am using for the Finder is:
tell application "Finder"
close (get every window whose index is not 1)
end tell
Be advised that things can get unpleasantly weird in combination with the PkgInfo hack. I am waiting until the dust settles, as it were, to mess with that again.
tell application "Path Finder"
close (every window whose index is not 1)
end tell
In PF4, that script now appears to close all open windows, but the following seems to work:
tell application "Path Finder"
close (every window whose index is not 2)
end tell
I don't actually understand any of this because I don't know Applescript. FWIW, the one I am using for the Finder is:
tell application "Finder"
close (get every window whose index is not 1)
end tell
Be advised that things can get unpleasantly weird in combination with the PkgInfo hack. I am waiting until the dust settles, as it were, to mess with that again.