I m试图说明如何写出一个将接触所有FinderWindows的果字。
Application Logic
我认为,文字必须具有这一应用逻辑:
- Check a residual setting and get the name of the last "Frontmost Application" (perhaps use a text file ~/last-application.txt to store this?)
- Grab the name of the current Frontmost Application
- If the name of the current of the Frontmost Application is Expose, then activate the previous frontmost application
- Else, activate finder, and then activate expose for just finder windows
Desired Behavior
- When the script is activated all the finder windows (and only the finder windows) will be shown in Exposé
- If the script is then run again (and no finder window was selected) the script will just switch back to the last frontmost application
我不敢肯定如何做到这一点。 如果还有另一个效用,这自然也是巨大的。