---
title: "Using Python, find active window name in Mac OS X"  
description: "Using Python, find active window name in Mac OS X"  
author: "Anonymous User"  
published: 2015-09-30  
updated: 2015-09-30  
canonical: https://www.mindstick.com/forum/33483/using-python-find-active-window-name-in-mac-os-x  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Using Python, find active window name in Mac OS X

How can I find the [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) of the [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) that [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript) I currently using with the time ([MAC OS](https://www.mindstick.com/interview/22877/use-of-cocoa-in-mac-os-x) X using [Python](https://www.mindstick.com/articles/75378/simple-yet-useful-tips-when-using-python))?

## Replies

### Reply by Tarun Kumar

From AppKit import NSWorkspace

```
active_app_name = NSWorkspace.sharedWorkspace().frontmostApplication().localizedName()print active_app_name
```


---

Original Source: https://www.mindstick.com/forum/33483/using-python-find-active-window-name-in-mac-os-x

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
