• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Yosemite and activate failures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yosemite and activate failures


  • Subject: Re: Yosemite and activate failures
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 15 Jan 2015 21:06:33 +0100

Oops, I'm wrong.

What I described as the correct result is in fact :

testeur (which is the name of the applet)
Finder
Mail

So, It's not the normal one.

I made an other attempt with :


set appNameReportText to ""
tell application "Finder"
activate
set thisAppName to my getFrontmostAppName()
end tell
set appNameReportText to appNameReportText & thisAppName & return

tell application "Mail"
activate
set thisAppName to my getFrontmostAppName()
end tell
set appNameReportText to appNameReportText & thisAppName & return

say (name of me)
tell me
activate
say (get name of current application)
set thisAppName to my getFrontmostAppName()
set appNameReportText to appNameReportText & thisAppName & return
end tell
tell application "SystemUIServer" to display dialog appNameReportText


on getFrontmostAppName()
delay 0.1
tell application "System Events"
set frontmostName to item 1 of (get name of processes whose frontmost is true)
end tell


return frontmostName
end getFrontmostAppName


This time, the script said twice : testeur
and the displayed list was :
Finder
Mail
Mail

My understanding is that as it has so graphical interface, the script's process is not seen as the frontmost one.


Yvan KOENIG (VALLAURIS, France) jeudi 15 janvier 2015 21:06:28



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Yosemite and activate failures
      • From: Ray Robertson <email@hidden>
References: 
 >Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: 2551 <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Deivy Petrescu <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Yvan KOENIG <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Yvan KOENIG <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Shane Stanley <email@hidden>)
 >Re: Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)
 >Yosemite and activate failures (From: Ray Robertson <email@hidden>)
 >Re: Yosemite and activate failures (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Dunning-Kruger [was: Re: Database events [way OT]]
  • Next by Date: Re: Yosemite and activate failures
  • Previous by thread: Re: Yosemite and activate failures
  • Next by thread: Re: Yosemite and activate failures
  • Index(es):
    • Date
    • Thread