Re: Get visible of process (was Re: Remote Access status)
Re: Get visible of process (was Re: Remote Access status)
- Subject: Re: Get visible of process (was Re: Remote Access status)
- From: Nigel Garvey <email@hidden>
- Date: Sun, 10 Feb 2002 11:17:43 +0000
Matt wrote on Sat, 9 Feb 2002 19:52:30 -0500 (EST):
>
Got it! The book frustrates one more time, but a web search reveals this
>
working usage:
>
set visible of the process "IPNetRouter.PPC" to false
>
>
...so getting rid of the "whose name is" part that NutShell says to use is
>
the way to go. I sure hope there's a 2nd edition with some notes on Mac
>
OS version and other component conundrums along with varying possible
>
usages soon...until then, I'm shelving this mess-making 1st Ed. as a
>
rule.
There's an optional term 'named' that can be used when referring to an
item with a particular 'name':
set visible of the process named "IPNetRouter.PPC" to false
When using the filter 'whose name is', the syntax requires that you
specify *which* matching item you mean, even when it's obvious there's
only one:
set visible of the first process whose name is "IPNetRouter.PPC" to
false
set visible of every process whose name is "IPNetRouter.PPC" to false
set visible of some process whose name is "IPNetRouter.PPC" to false
set visible of the middle process whose name is "IPNetRouter.PPC" to
false
set visible of the last process whose name is "IPNetRouter.PPC" to false
These all work. The first would be my preferred option - but in practice,
you wouldn't use any of them with 'name is'. You'd use the name directly,
as in the solution you found. They're good though with more general
filters - such as 'name begins with' or 'name contains' - or for
filtering on other properties.
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.