Background script cog leaves gap in status area
| Originator: | martin.kopischke | ||
| Number: | rdar://18424686 | Date Originated: | 23-Sep-2014 01:52 PM |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | OS X 10.10 (14A361c) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: The status bar area of the menu bar is not updated after the cog displayed in the menu bar status area when a NSAppleScript is executed in the background disappears, leaving a gap until the user switches apps or uses Exposé functions. Steps to Reproduce: 1. Open Automator 2. Choose to create a service 3. Insert a single “Run AppleScript” component 4. paste in the following example code: tell application "Mail" my markMailboxAsRead(get selected mailboxes of message viewer 1) end tell on markMailboxAsRead(targetMailbox) tell application "Mail" repeat with theMailbox in targetMailbox set unreadMessages to (every message of theMailbox whose read status is false) repeat with aMessage in unreadMessages set read status of aMessage to true end repeat repeat with subMailbox in every mailbox of theMailbox my markMailboxAsRead(subMailbox) end repeat end repeat end tell end markMailboxAsRead 5. save the service 6. open System Preferences → Keyboard → Shortcuts 7. assign a hotkey to the newly created service (ex. Ctrl-Cmd-u) 8. close System Preferences 9. open Mail.app 10. navigate to a mail folder 11. watch the status bar area of the menu bar 12. press the hotkey defined in 7. Expected Results: The script cog appears in the status area, spins, then disappears, leaving the status area in its previous state. Actual Results: The script cog appears in the status area, spins, then disappears, leaving a gap in the status area at its position. Notes: Behavior is not dependent on target application, script code or script host application (it’s identical with NSAppleScript based Alfred workflows, for instance).
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!