我需要一个脚本来读取所选文件夹及其子文件夹中的每个 .dwg/.step ,然后进行一系列单击以将文件保存在同一文件夹中,然后将其关闭。
这是我所拥有的,Applescripts 无法识别 .dwg/.step 扩展指令。
set MyFolder to (choose folder)
tell application "Finder"
set MyFiles to every file of entire contents of MyFolder whose name extension is ("DWG" or "STEP")
return MyFiles -- this doesn't return anything
repeat with aFile in MyFiles
tell application "Rhinoceros"
open aFile
activate
delay 1
end tell
tell application "System Events" -- the instruction is given 'manually'
click at {150, 1}
delay 1
click at {150, 180}
delay 1
click at {680, 335}
delay 1
click at {600, 495}
delay 1
click at {900, 510}
end tell
delay 1
end repeat
end tell
我是 applescript 的初学者,但这个应用程序可以节省大量的工作时间!在此先感谢您的帮助 :)