On 2005–10–12, at 23:37, Ted Zeng wrote:
I would like to find out if an application like Illustrator is running
On OS X or not from a perl script. How can I do it?
"ps" doesn't list the processes like Illustrator.
A late arrival which hasn't been mentioned so far:
$ killall -0 Illustrator 2>/
On 平成 17/10/13, at 9:06, Sherm Pendley wrote:
On Oct 12, 2005, at 7:47 PM, Ted Zeng wrote:
BTW, Apple just reported yesterday that Mac units shipped increased
By 48% last quarter. Sound like Mac is gaining market share.
Yeah - and AAPL immediately dropped 10%. I'll *never* understand
Wa
On Oct 12, 2005, at 7:47 PM, Ted Zeng wrote:
BTW, Apple just reported yesterday that Mac units shipped increased
By 48% last quarter. Sound like Mac is gaining market share.
Yeah - and AAPL immediately dropped 10%. I'll *never* understand Wall
Street.
sherm--
Cocoa programming in Perl: ht
Chris,
I don't receive your earlier post. I will check out your solution.
Thanks.
Thanks for everyone who has responded. Both
Solutions (use AppleScript or just "ps x") work
Well.
BTW, Apple just reported yesterday that Mac units shipped increased
By 48% last quarter. Sound like Mac is gaining m
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Chris Nandor) wrote:
Oops, typo. This:
>print 1 if grep 'Photoshop', `ps auxw`;
should be:
>print 1 if grep /Photoshop/, `ps auxw`;
And I forgot to mention -- just because it may be useful -- you can also
convert between PID and P
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ted Zeng) wrote:
> "ps" doesn't list the processes like Illustrator.
Yeah, like Sherm said.
These are the two most common methods that I've used, along with a sort-of
port of JD's AppleScript to Mac::Glue.
#!perl -wl
# simple
print 1 i
On Oct 12, 2005, at 5:37 PM, Ted Zeng wrote:
I would like to find out if an application like Illustrator is running
On OS X or not from a perl script. How can I do it?
"ps" doesn't list the processes like Illustrator.
"px x" does. ;-)
#!/usr/bin/perl
use strict;
use warnings;
At 2:37 pm -0700 12/10/05, Ted Zeng wrote:
I would like to find out if an application like Illustrator is running
On OS X or not from a perl script. How can I do it?
#!/usr/bin/perl
@processes = split /, /, `osascript -e '
tell app "system events" to name of processes whose visible is true'`;
I'd think with your email address, you should know which process
Illustrator runs as, or at least be able to find out... ;-)
Use AppleScript, from osascript or from Mac::Glue or etc.
You won't find a single, cross platform method for answering this
question. Ergo, if you need the "same" piece
Hi,
I would like to find out if an application like Illustrator is running
On OS X or not from a perl script. How can I do it?
"ps" doesn't list the processes like Illustrator.
Ted Zeng
Adobe Systems
10 matches
Mail list logo