在 Windows 中自动执行任务的最佳方法
Mac 内置了 applescript,我发现它非常适合自动化工作。
最好的 Windows 等效项是什么?
Mac has applescript 'built in' and I've found its pretty nice to work with for automating stuff.
What's the best windows equivalent?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
也许是 PowerShell ——但它确实比 applescript 强大得多。 VBA 仅存在于提供它的特定应用程序中,例如 Excel,而不是独立的。
Maybe PowerShell -- but it's really much more powerful than applescript. VBA only exists within specific applications that supply it, such as Excel, not stand-alone.
VBScript 和 JScript 是标准 Windows 脚本宿主语言。 请参阅 Microsoft Windows 脚本技术。
VBScript and JScript are standard Windows Script Host languages. See Microsoft Windows Script Technologies.
当我搬到 PC 上时,我发现了 python,并且正在寻找一些东西来完成我通常使用 applescript 做的所有事情。 作为一个使用 applescript 学习大部分编程技能的人,这对我来说非常容易。 最好的是您可以在任何平台上使用它。
顺便说一句,applescript 的存在时间比 OSX 长得多。
I discovered python when I moved to a PC and was looking for something to do all the kind of stuff I'd usually do with applescript. As someone who learned most of my programming skills using applescript it came pretty easily to me. Best thing is that you can use it on any platform.
BTW applescript has been around a lot longer than OSX.
如果您想在 Windows 中实现自动化操作,Powershell 是一个可以学习的程序。 Microsoft 正在弃用 vbscript(它是 Windows Script Host 的一部分),并推动 Powershell 作为 vbscript 的现代替代品。 例如,微软正在为 Powershell 创建越来越多的 API。 另一方面,vbscript 与 vba 非常相似,vba 是自动执行 Word、Excel 和 Outlook 的默认程序。
Powershell is the program to learn if you want to automate stuff in windows. Microsoft is deprecating vbscript, which is part of Windows Script Host, and pushing Powershell as the modern replacement for vbscript. For example, Microsoft is creating more and more APIs for Powershell. On the other hand, vbscript bears a great similarity to vba, which is the default program for automating Word, Excel and Outlook.
为了完整起见,还有相当过时的 AutoHotkey。 它最初的设计目的是提供系统范围的热键来实现自动化,但它也可以用作通用自动化工具。
但是,我不能推荐它。 其语法可怕且晦涩,这就是他们目前正在对版本 2 进行彻底改造的原因。
Just for completeness, there is also the rather dated AutoHotkey. Originally designed to provide system-wide hotkeys to automate things, it can also be used as a general automation tool.
However, I cannot recommend it. The syntax is horrible and obscure, and that's the reason they are currently doing a complete haulover for version 2.