আপনি অ্যাপলস্ক্রিপ্ট মেনুতে এই অ্যাপলস্ক্রিপ্টের মতো কিছু রাখতে পারেন এবং এটি আপনার পছন্দসই নেটওয়ার্কগুলির তালিকা করতে বেছে নিতে এবং এটিতে সংযোগ স্থাপন করতে পারেন।
set the getList to paragraphs of (do shell script "networksetup -listpreferredwirelessnetworks en0")
set title to item 1 of getList
set wifi_list to items 2 thru -1 of getList
set the chosen_newtwork to choose from list the wifi_list with prompt "Choose a " & title without multiple selections allowed
if the chosen_newtwork is false then return
do shell script "networksetup -setairportnetwork en0 " & (chosen_newtwork as string)

(আমি এটি নিখুঁত বলতে পারি না কারণ আমি এটি খুঁজে পেয়েছি যে কখনও কখনও সংযোগ করতে চাই না তবে আমি নিশ্চিত না যে এটি কেবল আমার রাউটার / ওয়াইফাই)
হালনাগাদ.
উপরের একই ধারণাটি ব্যবহার করে আপনি খারাপ এসডির নিষিদ্ধ তালিকাও তৈরি করতে পারেন।
এবং তাদের ফিল্টার।
প্রধান কমান্ডটি নেটওয়ার্কসিভাইস কমান্ডের পরিবর্তে একটি বিমানবন্দর ফ্রেমওয়ার্ক কমান্ড ব্যবহার করছে তাই বাচ্চা ধীর। তবে উপলভ্য নেটওয়ার্কগুলির জন্য স্ক্যান কেবলমাত্র আপনি পছন্দ করেছেন।
set bannedList to {"BTWifi-X"}
set wifi_list to {}
set the getList to paragraphs of (do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s |awk '{print $1}'")
set title to item 1 of getList
repeat with i from 2 to number of items in getList
set this_item to item i of getList
if this_item is not in bannedList then
if this_item is not in wifi_list then -- stops duplicates from original list
copy this_item to end of wifi_list
end if
end if
end repeat
set the chosen_newtwork to choose from list the wifi_list with prompt "Choose a " & title without multiple selections allowed
if the chosen_newtwork is false then return
do shell script "networksetup -setairportnetwork en0 " & (chosen_newtwork as string)