• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting "Hide" others, etc. via process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Outlook Express Attachemnts
  • Next by Date: Re: Ok, what do you think of PERL
  • Previous by thread: Scripting "Hide" others, etc. via process
  • Next by thread: Re: Scripting "Hide" others, etc. via process
  • Index(es):
    • Date
    • Thread