Time Machine app holds on to activation event, never returns to caller

Originator:jalkut
Number:rdar://30923869 Date Originated:08-Mar-2017 01:24 PM
Status:Open Resolved:
Product:macOS + SDK Product Version:10.12.3 (16D32)
Classification:Serious Bug Reproducible:Always
 
Area:
Time Machine

Summary:
PLEASE NOTE: This is not a bug with Time Machine data or backup behavior, but a bug with the app itself and it's behavior responding to an AppleScript activation. Please do me the favor of trying the simple AppleScript described below before asking me to create a hundreds-of-megabytes large system profile.

Bug: Time Machine app doesn't respond to activation event, causing the sending app/process to hang. In an app like my FastScripts, because AppleScripts are run on the main thread, this causes the app to hang. In an app like Script Editor where the app is run on a thread, it causes the script window to become unusable.

Steps to Reproduce:
1. Open Script Editor
2. Paste in the following script:

tell application "Time Machine" to activate

3. Run.

Expected Results:
Time Machine is activated for the current app, and the script completes running.

Actual Results:
The script keeps running until it finally times out.

The problem can be ameliorated by adding an explicit, shorter timeout around the call:

try
	with timeout of 0.1 seconds
		tell application "Time Machine" to activate
	end timeout
end try

Whatever TimeMachine.app is doing in response to the activation event, it should cede control back to the calling app by responding appropriately to the event.


Version:
10.12.3 (16D32)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!