Re: Applescript brings finder to front each time
Re: Applescript brings finder to front each time
- Subject: Re: Applescript brings finder to front each time
- From: Emmanuel <email@hidden>
- Date: Fri, 8 Jun 2001 00:27:21 +0200
At 17:02 +0200 7/06/01, Mr Tea wrote:
>
This question has popped up several times, John, and I haven't seen a
>
solution that prevents the finder from coming to the front when an
>
applescript asks it to do something.
Not sure I understand. Here, finder comes to the front when - and only when
- I run "original item". This is on 9.1.
Here is the awful piece of code I finally use.
------------------------------------ error handling removed
tell application "Finder" to set isBogous to ((computer "sysv") is 2320)
if isBogous then tell application "Finder" to set theSavedProcess to (first
process whose frontmost is true) as text -- antibug OS 9.1
tell application "Finder"
-- blah blah involving "original item of ..."
end tell
if isBogous then tell application "Finder" to set frontmost of process
theSavedProcess to true -- antibug OS 9.1
------------------------------------
HTH
Emmanuel