Sunday, December 4, 2022

#1 2022-11-08 01:34:25 am

lagr
Member
Registered: 2022-04-09
Posts: 8

Is "background activity count" in Mail.app broken?

I have tried to use the

Applescript:

background activity count

in Mail.app to determine when a task is done but I just get an error message error

Applescript:

"Mail got an error: AppleEvent handler failed." number -10000

. Is it broken or am I using the wrong syntax? Something like:

Applescript:

tell application "Mail"
activate
repeat until background activity count = 0
delay 0.5
end repeat
end tell

Would be very appreciated if someone else could verify this.

Thank you.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)