2

10分ごとに定義された番号の選択からMACアドレスをローテーションする単純なApplescriptを作成しようとしています-Automatorのワークフローとして以下をまとめましたが、エラーを発生させることなく実行されていますが、そうではありません働いているようです!

なぜそうでないのかはわかりませんが、これは私が書いた最初の Apple スクリプトなので、単純なものを見落としているに違いありません

on run
tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:46" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:40" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:41" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:42" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:43" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:44" password "password" with administrator privileges


delay 600

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 4E:53:50:4F:4F:45" password "password" with administrator privileges

delay 100

tell application "Terminal" to do shell script "sudo ifconfig en2 ether 00:26:08:ff:85:ae" password "password" with administrator privileges


end run
4

1 に答える 1

0
  • 空港 -z
  • システム設定を終了します。
  • 端末で scselect -n を実行します。

-n システムの「場所」の変更を、次回のシステム起動時 (またはシステム構成設定の次回変更時) まで遅らせます。

  • sudo ifconfig en2 ether 4E:53:50:4F:4F:46 を実行します
于 2013-08-14T12:55:00.423 に答える