উত্তর:
আমি এই অ্যাপলস্ক্রিপ্ট করা উচিত অনুমান:
set numberOfWindows to "0"
tell application "System Events"
set allProcesses to application processes
repeat with i from 1 to number of allProcesses
tell process i
set numberOfWindows to (numberOfWindows + (count windows))
end tell
end repeat
end tell
tell application "System Events" to get UI elements enabled। আপনি যোগ করে এটি সক্রিয় করতে পারেন tell application "System Events" to set UI elements enabled to true স্ক্রিপ্টের শুরুতে; যদিও এটা আমার জন্য অদ্ভুত মনে হচ্ছে, এটি আপনার ক্ষেত্রে ইতিমধ্যে সক্ষম হয়ে আছে বলে মনে হচ্ছে।
tell application "System Events" to get UI elements enabled আয় true, কিন্তু উপরে ত্রুটি এখনও শুরু হয়, এমনকি আপনি শুরু করতে পরামর্শ enabler লাইন যোগ সঙ্গে।