简体   繁体   English

使用 AppleScript 阻止 Excel 消息“不受支持的内容”

[英]Block the Excel message “content that is not suported” using AppleScript

I have an Excel 2008 file.我有一个 Excel 2008 文件。 This give a warning message when opened.这会在打开时发出警告消息。 I would like this message not to be displayed.我不希望显示此消息。

tell application "Microsoft Excel"  
    open workbook workbook file name "private:var:root:Desktop:XLS FILES:Copy of 
                                   New Microsoft Excel Worksheet (5).xlsx" read only 1
end tell

With the above script the Excel file is opened but the Excel warning still appears:使用上述脚本,Excel 文件已打开,但 Excel 警告仍然出现:

SO14994693 问题示例

Try:尝试:

tell application "Microsoft Excel"
    open workbook workbook file name "private:var:root:Desktop:XLS FILES:Copy of New Microsoft Excel Worksheet (5).xlsx" with ignore read only recommended
end tell

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM