[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] GLUE: hide application



As I come up with snippets, I'll post them along, if that is alright with
everyone.

#!perl -w
use Mac::Glue qw(:all);
my $f = new Mac::Glue 'Finder';
$f->set( $f->prop(visible => process => "Eudora Pro"), to => enum('false'));
warn $^E if $^E;
__END__

I am not entirely happy with having to use enum() here, but since the "to"
parameter accepts a wildcard, it is difficult to do it any other way.  If
"to" accepted a boolean by default, I could just pass 1 or 0 for true or
false.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org