(-10006)Īs for a list of running applications, that would be great, only if they were sorted by last time of focus, from which I could get the second entry in that array. I see what you did there, but AS didn’t like it: 64:88: execution error: System Events got an error: Can’t set process "Launchbar" to false. Tell process "Launchbar" to set its visible to false Set frontmostAppPath to (path to frontmost application) as textĭisplay dialog frontmostAppPath -> Macintosh HD:System:Library:CoreServices:Finder.app:īTW, to directly respond to the OP’s question, it’s a simple matter to get the frontmost application and a list of running (visible) applications, but I’ve never come across a way to get “second frontmost application”. Perhaps there is a flaw in my thinking? tell application "System Events" to tell process "Test" to set its visible to false My point is that setting the visible property of the frontmost app to false may not make the previously active app frontmost. I tried that with other apps active and always got Finder. I then modified the script as follows and, with Safari active, double-clicked on the icon, which returned “Macintosh HD:System:Library:CoreServices:Finder.app:”. set frontmostAppPath to (path to frontmost application) as textĭisplay dialog frontmostAppPath -> Macintosh HD:Users:Robert:Desktop:Test.app: With Safari active, I double-clicked on the app icon, which returned “Macintosh HD:Users:Robert:Desktop:Test.app:”. I don’t have launchbar installed but thought I might simulate the situation by creating and saving a script to the desktop as an app named “Test”. An incomplete uninstallation of a program may cause problems, which is why thorough removal of programs is recommended.KniazidisR. There could be other causes why users may not be able to uninstall Aqua Dock.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |