Le 4 août 06 à 20:47 Soir, Eric Richards a écrit:

If you mean "put all other applications in front of your", then the =20 only way is to bring every other application to the front , like this:

tell application "System Events" --or "Finder" for MacOS 9
        set i to every process whose frontmost is false
        set c to 1
        repeat
                if c > (count items of i) then exit repeat
                set p to item c of i
                set frontmost of p to true
                set c to c + 1
        end repeat
end tell

(but the second case should probably not be done).


Yep that be it.

Humm, this can't be done by declares ?

Yes, it can be done. I remember having seen a "Process Declares" (or such name) RB project, when RB 3 was the current version. I think it's not simple but it is possible.

This shouldn't be done ? Why's that ?

This is mostly my opinion.

I believe it 's not recommended in the Apple Interface Guidelines. I don't know if I'm right, but this approach seems disapointing (I'd like to do that sometimes, but it's not "classic"). First, you have to take care of processes the user has explicitly hidden. You should not make them visible again. Second, bringing an app to the front also brgins all of its windows to the front. An user may explicitly keep a window to the back but bring another window of the same app to the front. You don't preserve the order of the windows using the code above. (argument mostly for MacOS X). Third, since "send to back" is not a declare, I believe there are other cases where you should avoid doing that.

I was just testing out something I wanted to try.
This did work, though it means having apple script installed.

...the MBS plugin also handles process' declares in an easy way.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to