Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TenthAlmond

macrumors newbie
Original poster
Aug 24, 2017
2
1
I'm interested in using the built-in wireless sniffer (accessible from Wireless Diagnostics by pressing Cmd-Opt-6) as a part of a script. Is there a way to control it via scripting, maybe AppleScript?

I only need to start the sniffer and to be able to change the channel and bandwidth.

Can the interface be scripted? Does Wireless Diagnostics offer any Apple events?
 
The script editor doesn't have a dictionary for wireless diagnostics, which likely means that it won't support scripting. Perhaps wireshark has some terminal commands that can be scripted?
 
Even if there's no dictionary can't you script through UI elements?
Thanks for making me aware that scripting UI elements directly was an option! I didn't know.

I ended up doing as cruisin recommended, scripting Wireshark via tshark instead.
 
  • Like
Reactions: msephton
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.