Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将简单自动机应用程序转换为applescript_Applescript_Automator - Fatal编程技术网

将简单自动机应用程序转换为applescript

将简单自动机应用程序转换为applescript,applescript,automator,Applescript,Automator,我对automator和applescript都是新手。我创建了一个应用程序,它使用automator打印拖放到程序图标上的文件。这很简单。在automator中,我只是运行 Print Finder Items 而且这个程序是有效的。现在我需要做更复杂的事情,我需要弄清楚如何将一个命令转换成applescript。我已经尝试过多篇堆栈溢出文章中给出的建议,包括:但它对我没有帮助。如何将其转换为applescript tell application "Finder" set theI

我对automator和applescript都是新手。我创建了一个应用程序,它使用automator打印拖放到程序图标上的文件。这很简单。在automator中,我只是运行

Print Finder Items
而且这个程序是有效的。现在我需要做更复杂的事情,我需要弄清楚如何将一个命令转换成applescript。我已经尝试过多篇堆栈溢出文章中给出的建议,包括:但它对我没有帮助。如何将其转换为applescript

tell application "Finder"
    set theItems to selection
    print theItems
end tell
您需要学习如何自己找到这些命令,以便了解它们的作用。打开AppleScript编辑器。在文件菜单下选择“打开字典”并选择查找器。这本字典告诉你所有你能用应用程序描述查找器的事情。每个应用程序都有自己的字典,所以您需要开始查看这些字典

该脚本适用于您在Finder中选择的任何文件。祝你好运