Re: Yosemite and activate failures
Re: Yosemite and activate failures
- Subject: Re: Yosemite and activate failures
- From: Deivy Petrescu <email@hidden>
- Date: Sat, 17 Jan 2015 12:20:31 -0500
- Sun-java-system-smtp-warning: Lines longer than SMTP allows found and truncated.
Well, my be I am changing my views, it would require a different test.
The point is, if inside a tell block I issue a command that goes outside the tell block but it is needed to continue the tell block, the tell block commands should wait until the outside command returns something.
But it should not wait otherwise.
I ran the following script and checked the log. This is what I got.
<SCRIPT>
tell application "Finder"
activate
--return name of first process whose frontmost is true
set thisAppName to my getFrontmostAppName()
exists process thisAppName
end tell
on getFrontmostAppName()
tell application "System Events" to return item 1 of (get name of processes whose frontmost is true)
end getFrontmostAppName
</SCRIPT>
<log>
tell application "Finder"
activate
end tell
tell application "System Events"
get name of every process whose frontmost = true
end tell
tell application "Finder"
exists process "Script Editor"
end tell
tell application "System Events"
exists process "Script Editor"
end tell
Result:
true
</log>
So in spite of being inside a Finder tell block getFrontmostAppName() it is actually a totally different tell block.
If one uncomments the commented line in the script, one would see in the log that in spite of looking like a Finder command, "name of first process" is actually a SE command.
Since I many times use handlers to do something outside the tell block and use the reply of these handlers to continue on to the tell block, and never noticed any problems, I assume that it is behaving as it should.
Have to test more.
> On Jan 17, 2015, at 10:20 , Stockly, Ed <email@hidden> wrote:
>
> I think in yosemite the activate command is working almost the it would have before if it were in an “ignore application responses” block, but that’s not exactly it, otherwise there would be more issues.
>
>>>
>>> To my point of view is it working as expected.
>>
>
>
>
> _______________________________________________
> 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
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