1

選択したフォルダーとそのサブフォルダー内のすべての .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

私はアップルスクリプトの初心者ですが、このアプリケーションを使えば何時間もの作業時間を節約できます! よろしくお願いします:)

4

1 に答える 1