Re: Scripting "Hide" others, etc. via process
Re: Scripting "Hide" others, etc. via process
- Subject: Re: Scripting "Hide" others, etc. via process
- From: Nigel Garvey <email@hidden>
- Date: Wed, 29 Aug 2001 23:06:20 +0100
"Jim at Mac.com" wrote on Wed, 29 Aug 2001 11:26:02 -0500:
>
Could anyone shed some light on a problem I have been having with a
>
feature of the scriptable finder?
>
I've written a script where an app is started by an applescript to
>
perform some time consumming activity
>
and then I send it the following; (minus the comment operators of
>
course)
>
--tell application "Finder"
>
--set visible of process "Some Running Application" of application
>
"Finder" to false
>
--end tell
>
The program takes up alot of screen real-estate and I just don't want it
>
in my way.
>
The problem is that this works fine when the script is run from within
>
script editor but fails when I save it as a classic applet.
>
The error generated is "can't set visible of process "Some Ru... etc."
>
Is this feature unsupported in compiled scripts or what?
The process you're trying to hide is probably the frontmost one at that
point. Try telling the Finder to activate (ie. bring itself to the front)
before it sets the visible property to false.
NG
----------
Geoff Garvey, 26th March 1915 - 29th August 2000
RIP, Dad. Lotsa love, Nig.