Hi,
I did a small workflow to display information about the currently used wifi network. Is there a way to arrange the result items in a defined order and disable the hotkeys? Depending on the apps on my Mac the result items tend to rearrange unpredictably. I simply want my workflow to provide certain information and the items should not be interactive.
Thanks!
require_once('workflows.php');
$w = new Workflows();
// GET SSID
$info = exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I|grep SSID");
$infoex = explode(":",$info);
$ssid = ($info != ""?trim($infoex[1]):"not connected");
$w->result( '', '', $ssid, 'Connected Wifi Network', '', 'yes', 'autocomplete' );
// GET ENCRYPTION
$info = exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I|grep 'link auth'");
$infoex = explode(":",$info);
$auth = ($info != ""?trim($infoex[1]):"not connected");
$w->result( '', '', $auth, 'Link Authentication', '', 'yes', 'autocomplete' );
// GET CHANNEL
$info = exec("/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I|grep channel");
$infoex = explode(":",$info);
$channel = ($info != ""?trim($infoex[1]):"not connected");
$w->result( '', '', $channel, 'Used Channel', '', 'yes', 'autocomplete' );
echo $w->toxml();