2

I understand the difference between applications and processes from other questions. But I was hoping I could get a little clarification on what is happening in this bit of code.

(application processes whose visible is true)

Is "application processes" referring to all processes that are started by an application? Does that mean that there are processes not started by an application? Or could I just switch this to "processes" and take out "application"?

1 Answer 1

6

application process is just sub-class of process with a single property, namely the application file path. Using

tell application "System Events" to get every process

or

tell application "System Events" to get every application process

you will get an identical list because System Events can only access application processes.

The shell command ps can list all processes, where you can see the difference.

do shell script "ps aux"
1
  • Ok neat, thanks jwaks. By the way, where does one find all of this kind of information? Is there any documentation that details every specific class such as docs.oracle.com/javase/8/ does for Java?
    – Matt Groth
    Feb 1, 2017 at 23:42

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.