|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | +<plist version="1.0"> |
| 4 | +<dict> |
| 5 | + <key>bundleid</key> |
| 6 | + <string></string> |
| 7 | + <key>category</key> |
| 8 | + <string>Internet</string> |
| 9 | + <key>connections</key> |
| 10 | + <dict> |
| 11 | + <key>5BBE995D-6577-4C90-BA1F-0AF3B21FD6F4</key> |
| 12 | + <array> |
| 13 | + <dict> |
| 14 | + <key>destinationuid</key> |
| 15 | + <string>5CF6ACA0-E175-419F-B76E-58FF00C71C48</string> |
| 16 | + <key>modifiers</key> |
| 17 | + <integer>0</integer> |
| 18 | + <key>modifiersubtext</key> |
| 19 | + <string></string> |
| 20 | + <key>vitoclose</key> |
| 21 | + <false/> |
| 22 | + </dict> |
| 23 | + </array> |
| 24 | + <key>5CF6ACA0-E175-419F-B76E-58FF00C71C48</key> |
| 25 | + <array> |
| 26 | + <dict> |
| 27 | + <key>destinationuid</key> |
| 28 | + <string>024EB43A-D209-4F88-81A2-69BF2D568832</string> |
| 29 | + <key>modifiers</key> |
| 30 | + <integer>0</integer> |
| 31 | + <key>modifiersubtext</key> |
| 32 | + <string></string> |
| 33 | + <key>vitoclose</key> |
| 34 | + <false/> |
| 35 | + </dict> |
| 36 | + </array> |
| 37 | + </dict> |
| 38 | + <key>createdby</key> |
| 39 | + <string></string> |
| 40 | + <key>description</key> |
| 41 | + <string>connect/disconnect vpn</string> |
| 42 | + <key>disabled</key> |
| 43 | + <false/> |
| 44 | + <key>name</key> |
| 45 | + <string>shimo</string> |
| 46 | + <key>objects</key> |
| 47 | + <array> |
| 48 | + <dict> |
| 49 | + <key>config</key> |
| 50 | + <dict> |
| 51 | + <key>alfredfiltersresults</key> |
| 52 | + <false/> |
| 53 | + <key>argumenttype</key> |
| 54 | + <integer>1</integer> |
| 55 | + <key>escaping</key> |
| 56 | + <integer>1</integer> |
| 57 | + <key>keyword</key> |
| 58 | + <string>shimo</string> |
| 59 | + <key>queuedelaycustom</key> |
| 60 | + <integer>1</integer> |
| 61 | + <key>queuedelayimmediatelyinitially</key> |
| 62 | + <false/> |
| 63 | + <key>queuedelaymode</key> |
| 64 | + <integer>0</integer> |
| 65 | + <key>queuemode</key> |
| 66 | + <integer>1</integer> |
| 67 | + <key>runningsubtext</key> |
| 68 | + <string>please wait</string> |
| 69 | + <key>script</key> |
| 70 | + <string># This workflow ships with artwork from Oxygen Icons. |
| 71 | +# For those icons applies the LGPLv3 licence, see |
| 72 | +# http://www.oxygen-icons.org/ |
| 73 | +shopt -s nocasematch;echo "<items>";osascript -e 'set text item delimiters to "\n"' -e 'set p to {}' -e 'set i to 0' -e 'tell application "Shimo"' -e 'repeat' -e 'set i to i+1' -e 'try' -e 'set end of p to (name of account i)' -e 'on error errMsg' -e 'exit repeat' -e 'end try' -e 'end repeat' -e 'end tell' -e 'return p as string' | while IFS= read -r line; do if [[ $line == *{query}* ]]; then echo "<item uid=\"\" arg=\"$line\"><title>$line</title>";osascript -e 'tell application "Shimo"' -e "set p to profile \"$line\"" -e 'if p is connected then' -e 'set result to "<subtitle>Disconnect from VPN Service</subtitle><icon>disconnect.png</icon>"' -e 'else' -e 'set result to "<subtitle>Connect to VPN Service</subtitle><icon>connect.png</icon>"' -e 'end if' -e 'end tell'; echo "</item>"; fi; done; echo "</items>"</string> |
| 74 | + <key>scriptargtype</key> |
| 75 | + <integer>0</integer> |
| 76 | + <key>scriptfile</key> |
| 77 | + <string></string> |
| 78 | + <key>subtext</key> |
| 79 | + <string>VPN for the rest of us.</string> |
| 80 | + <key>title</key> |
| 81 | + <string>Shimo</string> |
| 82 | + <key>type</key> |
| 83 | + <integer>0</integer> |
| 84 | + <key>withspace</key> |
| 85 | + <true/> |
| 86 | + </dict> |
| 87 | + <key>type</key> |
| 88 | + <string>alfred.workflow.input.scriptfilter</string> |
| 89 | + <key>uid</key> |
| 90 | + <string>5BBE995D-6577-4C90-BA1F-0AF3B21FD6F4</string> |
| 91 | + <key>version</key> |
| 92 | + <integer>2</integer> |
| 93 | + </dict> |
| 94 | + <dict> |
| 95 | + <key>config</key> |
| 96 | + <dict> |
| 97 | + <key>concurrently</key> |
| 98 | + <false/> |
| 99 | + <key>escaping</key> |
| 100 | + <integer>68</integer> |
| 101 | + <key>script</key> |
| 102 | + <string>on run argv |
| 103 | + set theQuery to item 1 of argv |
| 104 | + tell application "Shimo" set p to account theQuery if p is connected then disconnect account p else connect account p end if end tell |
| 105 | + return theQuery |
| 106 | +end run</string> |
| 107 | + <key>scriptargtype</key> |
| 108 | + <integer>1</integer> |
| 109 | + <key>scriptfile</key> |
| 110 | + <string></string> |
| 111 | + <key>type</key> |
| 112 | + <integer>6</integer> |
| 113 | + </dict> |
| 114 | + <key>type</key> |
| 115 | + <string>alfred.workflow.action.script</string> |
| 116 | + <key>uid</key> |
| 117 | + <string>5CF6ACA0-E175-419F-B76E-58FF00C71C48</string> |
| 118 | + <key>version</key> |
| 119 | + <integer>2</integer> |
| 120 | + </dict> |
| 121 | + <dict> |
| 122 | + <key>config</key> |
| 123 | + <dict> |
| 124 | + <key>lastpathcomponent</key> |
| 125 | + <false/> |
| 126 | + <key>onlyshowifquerypopulated</key> |
| 127 | + <false/> |
| 128 | + <key>removeextension</key> |
| 129 | + <false/> |
| 130 | + <key>text</key> |
| 131 | + <string>{query}</string> |
| 132 | + <key>title</key> |
| 133 | + <string>Shimo</string> |
| 134 | + </dict> |
| 135 | + <key>type</key> |
| 136 | + <string>alfred.workflow.output.notification</string> |
| 137 | + <key>uid</key> |
| 138 | + <string>024EB43A-D209-4F88-81A2-69BF2D568832</string> |
| 139 | + <key>version</key> |
| 140 | + <integer>1</integer> |
| 141 | + </dict> |
| 142 | + </array> |
| 143 | + <key>readme</key> |
| 144 | + <string></string> |
| 145 | + <key>uidata</key> |
| 146 | + <dict> |
| 147 | + <key>024EB43A-D209-4F88-81A2-69BF2D568832</key> |
| 148 | + <dict> |
| 149 | + <key>xpos</key> |
| 150 | + <integer>530</integer> |
| 151 | + <key>ypos</key> |
| 152 | + <integer>90</integer> |
| 153 | + </dict> |
| 154 | + <key>5BBE995D-6577-4C90-BA1F-0AF3B21FD6F4</key> |
| 155 | + <dict> |
| 156 | + <key>xpos</key> |
| 157 | + <integer>60</integer> |
| 158 | + <key>ypos</key> |
| 159 | + <integer>90</integer> |
| 160 | + </dict> |
| 161 | + <key>5CF6ACA0-E175-419F-B76E-58FF00C71C48</key> |
| 162 | + <dict> |
| 163 | + <key>xpos</key> |
| 164 | + <integer>320</integer> |
| 165 | + <key>ypos</key> |
| 166 | + <integer>90</integer> |
| 167 | + </dict> |
| 168 | + </dict> |
| 169 | + <key>webaddress</key> |
| 170 | + <string></string> |
| 171 | +</dict> |
| 172 | +</plist> |
|
0 commit comments