Re: Hiding Apps
Re: Hiding Apps
- Subject: Re: Hiding Apps
- From: Nigel Garvey <email@hidden>
- Date: Thu, 7 Feb 2002 00:50:40 +0000
Paul Berkowitz wrote on Wed, 06 Feb 2002 09:42:54 -0800:
>
On 2/6/02 9:23 AM, "Rob Lewis" <email@hidden> wrote:
(with regard to activating the Finder before setting the visible of every
process whose visible is true to false):
>
> Thanks. Mine is working without "activate". I wonder what would be the
>
> problem with just saying:
>
> set visible of every process to false
>
> Too much wasted time checking all the background processes, maybe?
>
>
It's some sort of bug or 'feature' that trying to set the 'visible' property
>
of a process to false when it's already false can result in an error, hence
>
the need of a whose clause to operate just on those processes whose visible
>
is true. Did you try it without? You'll see for yourself. [It may be - I've
>
never really checked - that certain background processes have read-only
>
visible properties, and so baulk at any attempt to set this read-only
>
property to anything at all.]
I think that's the reason.
>
You're correct, of course, that there's
>
absolutely no need to activate the Finder. Some people who started scripting
>
by recording scripts just get in the bad habit of including 'activate' as
>
the recorder has to.
Rob's original query did stipulate that he was using Mac OS X, about
which I know nothing, so he may indeed be right. With any Mac OS version
before that though, it's absolutely necessary that the Finder be the
frontmost app before hiding all the others - otherwise it throws a "Can't
continue" error.
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.