Javascriptの以下のコードに相当するものは何ですか?このアップルスクリプトはJavaスクリプトに変換できますか?
tell application "Finder"
activate
set position of Finder window 1 to {607, 276}
close Finder window 1
end tell
ありがとう。
Javascriptの以下のコードに相当するものは何ですか?このアップルスクリプトはJavaスクリプトに変換できますか?
tell application "Finder"
activate
set position of Finder window 1 to {607, 276}
close Finder window 1
end tell
ありがとう。
OS X Yosemite のリリース以降、自動化に JavaScript を使用できるようになりました。
コードに相当するものは次のとおりです。
var finder = Application('Finder');
finder.activate();
finder.windows[0].position = {x: 607, y: 276};
finder.windows[0].close();
ノード js モジュールを使用できます: https://github.com/TooTallNate/node-applescript