-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.plist
307 lines (285 loc) · 7.63 KB
/
info.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>org.glaubitz.alfred.airfoil</string>
<key>connections</key>
<dict>
<key>3B526A2C-AF8D-41E2-9674-AD4D284CB679</key>
<array>
<dict>
<key>destinationuid</key>
<string>5570A5FD-39EA-4DE6-85B1-01F86EBB0FF0</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>417EDFE4-EEA3-4586-BACB-72B5CD1488FA</key>
<array>
<dict>
<key>destinationuid</key>
<string>2C2B5ADC-50D0-4495-AFB6-C05077291E5B</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>5570A5FD-39EA-4DE6-85B1-01F86EBB0FF0</key>
<array>
<dict>
<key>destinationuid</key>
<string>FE6E013B-F496-4110-974C-AE7DE868A1FE</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
<key>6744BA2A-F0A2-40A5-93A6-5D286AA5EEE8</key>
<array>
<dict>
<key>destinationuid</key>
<string>417EDFE4-EEA3-4586-BACB-72B5CD1488FA</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
</dict>
</array>
</dict>
<key>createdby</key>
<string>jan</string>
<key>description</key>
<string>Connect and disconnect to speakers from Alfred</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Airfoil</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>applescript</key>
<string>on alfred_script(q)
--set spkId to "com.rogueamoeba.airfoil.LocalSpeaker"set spkId to qtell application "Airfoil" set spkList to every speaker whose id is spkId set spk to first item of spkList if not (connected of spk) then connect to spk else disconnect from spk end if end tell
end alfred_script</string>
<key>cachescript</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.action.applescript</string>
<key>uid</key>
<string>2C2B5ADC-50D0-4495-AFB6-C05077291E5B</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>4</integer>
<key>keyword</key>
<string>afspeaker</string>
<key>runningsubtext</key>
<string>Loading...</string>
<key>script</key>
<string>tell application "Airfoil" set res to "<?xml version='1.0'?><items>" set aList to every speaker set listThem to {} repeat with spk in aList set listThem to listThem & {{name of spk, id of spk}} end repeat repeat with aSpeaker in aList set spkName to name of aSpeaker set spkId to id of aSpeaker set spkActive to connected of aSpeaker if (spkActive) then set subTitle to "Disconnect from " & spkName else set subTitle to "Connect to " & spkName end if set itemText to "<item uid=\"" & spkId & "\" arg=\"" & spkId & "\"><title>" & spkName & "</title><subtitle>" & subTitle & "</subtitle>" set itemText to itemText & "<icon>airfoil.png</icon></item>" set res to res & itemText end repeat set res to res & "</items>" end tell</string>
<key>title</key>
<string>Airfoil Speaker Selection</string>
<key>type</key>
<integer>6</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>417EDFE4-EEA3-4586-BACB-72B5CD1488FA</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>action</key>
<integer>0</integer>
<key>argument</key>
<integer>3</integer>
<key>argumenttext</key>
<string>afspeaker</string>
<key>hotkey</key>
<integer>106</integer>
<key>hotmod</key>
<integer>8388608</integer>
<key>hotstring</key>
<string>F16</string>
<key>leftcursor</key>
<false/>
<key>modsmode</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.hotkey</string>
<key>uid</key>
<string>6744BA2A-F0A2-40A5-93A6-5D286AA5EEE8</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>4</integer>
<key>keyword</key>
<string>afsource</string>
<key>runningsubtext</key>
<string>Loading...</string>
<key>script</key>
<string>tell application "Airfoil" set res to "<?xml version='1.0'?><items>" set aList to every application source set listThem to {} repeat with src in aList set listThem to listThem & {{name of src, id of src}} end repeat repeat with src in aList set srcName to name of src set srcId to id of src set itemText to "<item uid=\"" & srcId & "\" arg=\"" & srcId & "\"><title>" & srcName & "</title><subtitle>" & "select " & srcName & "</subtitle>" set itemText to itemText & "<icon type=\"fileicon\">/Applications/" & name of src & ".app</icon></item>" set res to res & itemText end repeat set res to res & "</items>" end tell</string>
<key>title</key>
<string>Airfoil Source Selection</string>
<key>type</key>
<integer>6</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>5570A5FD-39EA-4DE6-85B1-01F86EBB0FF0</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>applescript</key>
<string>on alfred_script(q)
--set srcId to "2" as integerset srcId to q as integertell application "Airfoil" set srcList to every application source whose id is srcId set src to first item of srcList set current audio source to srcend tell
end alfred_script</string>
<key>cachescript</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.action.applescript</string>
<key>uid</key>
<string>FE6E013B-F496-4110-974C-AE7DE868A1FE</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>action</key>
<integer>0</integer>
<key>argument</key>
<integer>3</integer>
<key>argumenttext</key>
<string>afsource</string>
<key>hotkey</key>
<integer>64</integer>
<key>hotmod</key>
<integer>8388608</integer>
<key>hotstring</key>
<string>F17</string>
<key>leftcursor</key>
<false/>
<key>modsmode</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.hotkey</string>
<key>uid</key>
<string>3B526A2C-AF8D-41E2-9674-AD4D284CB679</string>
</dict>
</array>
<key>readme</key>
<string>Airfoil and the Airfoil icon are the property of Rogue Amoeba Software, LLC.</string>
<key>uidata</key>
<dict>
<key>2C2B5ADC-50D0-4495-AFB6-C05077291E5B</key>
<dict>
<key>ypos</key>
<real>60</real>
</dict>
<key>3B526A2C-AF8D-41E2-9674-AD4D284CB679</key>
<dict>
<key>ypos</key>
<real>180</real>
</dict>
<key>417EDFE4-EEA3-4586-BACB-72B5CD1488FA</key>
<dict>
<key>ypos</key>
<real>60</real>
</dict>
<key>5570A5FD-39EA-4DE6-85B1-01F86EBB0FF0</key>
<dict>
<key>ypos</key>
<real>180</real>
</dict>
<key>6744BA2A-F0A2-40A5-93A6-5D286AA5EEE8</key>
<dict>
<key>ypos</key>
<real>60</real>
</dict>
<key>FE6E013B-F496-4110-974C-AE7DE868A1FE</key>
<dict>
<key>ypos</key>
<real>180</real>
</dict>
</dict>
<key>webaddress</key>
<string>http://www.glaubitz.org</string>
</dict>
</plist>