Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Is there a way to copy text message in a pop-up window like this is possible on Windows machine by making pop-up window active and then pressing CTRL+C?

share|improve this question

1 Answer 1

Not that I know of, but you can access most text elements from the accessibility API. For example this shows the prompt text in password dialogs:

tell application "System Events" to tell process "SecurityAgent" to value of UI elements of UI elements of window 1

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.