Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

207
Vistas
Get list of window names for all running applications

Using the following block of code

Application("System Events")
  .applicationProcesses.where({ backgroundOnly: false })()
  .forEach((app) => {
     app.windows().forEach((window) => {
       console.log(window.name());
     });
  });

I can access a list of all window names for currently running applications. However, for my particular use case, this code is too slow to be useful. I have been looking into the Objective-C Bridge for JavaScript scripting and have been able to list all running applications, but not the windows for those applications.

const runningApps = ObjC.unwrap($.NSWorkspace.sharedWorkspace.runningApplications)
  .filter((app) =>
    app.activationPolicy === $.NSApplicationActivationPolicyRegular &&
    !ObjC.unwrap(app.hidden)
  );

So my question is: Which Objective-C API gives me access to a list of windows for running applications?

Note - I have seen other posts that ask similar questions to this, but I have not been able to get anything working from those answers as I am unexperienced with Objective-C.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda