tell application "System Events"
set window_check to false
repeat until (window_check)
set frontApp to name of first application process whose frontmost is true
if frontApp is "Microsoft Outlook" then
tell process "Microsoft Outlook"
if class of front window is draft window then
--syntax error: expected "then", etc. but found class name
display dialog "draft"
set window_check to true
end if
end tell
end if
end repeat
end tell
當我保存腳本,它彈出一個錯誤「語法錯誤:預期‘然後’等但卻發現了類名稱「(請參閱錯誤位置的註釋)有什麼錯我的AppleScript的語法錯誤:預期「然後」等,但發現的類名
我的腳本有什麼問題?
它的工作原理。謝謝 – 2013-05-14 01:28:22