Open BBaek opened 7 months ago
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´
❯ /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
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 🤷)
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/
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
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] <?xml version='1.0'?>