• 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: Deivy Petrescu <email@hidden>
  • Date: Wed, 22 Jun 2016 16:10:00 -0400

> On Jun 22, 2016, at 14:48 , Yvan KOENIG <email@hidden> wrote:
>
>>
>> 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

Yvan,
not odd, this has been caged a while ago.
This will not give any errors


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


display dialog is an scripting addition, any SA command will give you that error if it is not called by SE.
There was a discussion a very long time ago why this would be good.
Well wasn’t a discussion, it was Apple telling was that this was better.


Deivy Petrescu
email@hidden




 _______________________________________________
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: Yvan KOENIG <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>)
 >Re: FastScripts and script editor discrepancies (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: FastScripts and script editor discrepancies
  • Next by Date: Re: AppleScript-Users Digest, Vol 13, Issue 269
  • Previous by thread: Re: FastScripts and script editor discrepancies
  • Next by thread: Re: FastScripts and script editor discrepancies
  • Index(es):
    • Date
    • Thread