alfred-network-workflow icon indicating copy to clipboard operation
alfred-network-workflow copied to clipboard

Wifi List is not working

Open BBaek opened this issue 11 months ago • 5 comments

Wifi List is not working. This is the alfred workflow debug error log below. When I type 'wifilist' wifi list does not show.

Alfred 5, Network workflow v1.7


[09:15:01.880] Network[Script Filter] Queuing argument '(null)' [09:15:01.993] Network[Script Filter] Script with argv '(null)' finished [09:15:02.000] STDERR: Network[Script Filter] src/helpers.sh: line 287: [: : integer expression expected src/helpers.sh: line 289: [: : integer expression expected src/helpers.sh: line 291: [: : integer expression expected [09:15:02.001] Network[Script Filter]

BBaek avatar Mar 20 '24 00:03 BBaek

Hi @BBaek,

I actually see the same error (src/helpers.sh: line 289: [: : integer expression expected) for each wifi AP found when running wifilist, but output is still correct. Does wifilist show an empty list in Alfred or something else? What is the output when you run below command in your terminal?

´/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --scan´

mrodalgaard avatar Mar 20 '24 07:03 mrodalgaard

❯ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --scan

WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.
❯ sw_vers 
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

yamaya-masayuki avatar Apr 03 '24 06:04 yamaya-masayuki

Same issue as the other 2 guys. I think it might be truly because of the deprecated, or soon to be deprecated, "airport --scan" ....

Even after fixing the handling of the integers in 287/8 and 291... still the wifilist shows nothing... the debug shows the script working... running helpers.sh and the other relevant src scripts in terminal works fine with no errors...

Issue is: Alfred shows nothing in the list... (it used to work on my older mac 🤷)

yarub123 avatar Apr 18 '24 12:04 yarub123

Yikes! Bad news. MacOS 14.4 removed the airport utility completely because of a "security concern" and there is no out-of-the-box replacement. wdutil does not have the functionality to scan for APs and is also behind sudo.

Anyone with suggestions on alternatives? Otherwise I'll have to remove that feature completely, which would be a shame.

https://www.reddit.com/r/MacOS/comments/1bjjchk/rip_airport_cli_macos_sonoma_144_removes_the/

mrodalgaard avatar Apr 24 '24 13:04 mrodalgaard

I was looking for a solution to a different problem, but maybe this will help with a solution. Just execute in the console:

system_profiler SPAirPortDataType

VladislavGatsenko avatar Jul 25 '24 18:07 VladislavGatsenko