• 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: FastScripts and script editor discrepancies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FastScripts and script editor discrepancies


  • Subject: Re: FastScripts and script editor discrepancies
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 22 Jun 2016 20:48:36 +0200


Le 22 juin 2016 à 20:25, Christopher Stone <email@hidden> a écrit :

System Events produces the same text as the Finder and is a better option, because you don't disrupt the user's visual-space – and you can easily return him/her to the app they were working in:

---------------------------------------------------
tell application "System Events"
set frontApp to first process whose frontmost is true
activate
display dialog "1212"
set frontmost of frontApp to true
end tell
---------------------------------------------------

--
Best Regards,
Chris

Hello Christopher

Did you look at the events log ?

Here I get :

tell application "System Events"
get process 1 whose frontmost = true
activate
display dialog "1212"
«event ascrgdut»
display dialog "1212"
set frontmost of application process "Script Editor" to true
end tell


which seems to be odd.



Yvan KOENIG running El Capitan 10.11.5 in French (VALLAURIS, France) mercredi 22 juin 2016 20:46:18



 _______________________________________________
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: FastScripts and script editor discrepancies
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >Re: Script Libraries (From: Shane Stanley <email@hidden>)
 >Re: Script Libraries (From: Jim Underwood <email@hidden>)
 >FastScripts and script editor discrepancies (From: 2551phil <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Shane Stanley <email@hidden>)
 >Re: FastScripts and script editor discrepancies (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: FastScripts and script editor discrepancies
  • Next by Date: Re: FastScripts and script editor discrepancies
  • Previous by thread: Re: FastScripts and script editor discrepancies
  • Next by thread: Re: FastScripts and script editor discrepancies
  • Index(es):
    • Date
    • Thread