[X-Unix] Hiding apps from the command line

Eugene Lee list-themacintoshguy at fsck.net
Fri Mar 26 05:03:51 PST 2004


On Fri, Mar 26, 2004 at 01:33:22PM +0100, Kirk McElhearn wrote:
: 
: On 3/26/04 1:15 PM, "Eugene Lee" <list-themacintoshguy at fsck.net> wrote:
: > 
: > #!/bin/sh
: > osascript <<END
: > tell application "Finder"
: > set visible of every process whose visible is true and name is not "Finder"
: > and name is not "$1" to false
: > end tell
: > END
: 
: This works, but returns the following:
: 
: $ hido
: 144:147: execution error: Can't get end. (-1728)
: 
: Any ideas?

"END" is not the same as "end".  You have some whitespace characters at
preceding the second "END" string delimiter.


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/



More information about the X-Unix mailing list