diff --git a/src/info.plist b/src/info.plist
index 9d2cf5b..0260093 100644
--- a/src/info.plist
+++ b/src/info.plist
@@ -8,63 +8,11 @@
Productivity
connections
- 05465173-78BA-46B5-BAB9-66742B45EE44
-
-
- destinationuid
- 16865643-D0A0-48DA-961D-053770CCBB23
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 06D43C57-AF42-446D-A9D4-11B41BED1C85
-
-
- destinationuid
- 86590F04-57CC-4B1E-96FF-A87CC14063DA
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 08549E07-E3B8-4574-BA24-3B4F32C1FE4E
-
-
- destinationuid
- 68D994C5-8D38-457E-A4C8-355E6813D77A
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 0DB9CFD6-37CD-405C-AA68-3A682CFD5BBA
-
-
- destinationuid
- E63F1F76-116F-4C39-A91D-7A1BD00B991B
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
0FAC263F-D24B-4ACB-9D59-07329F75BCD0
destinationuid
- E4B277B2-977C-4560-8E33-DA50A32F72CE
+ A2BE7579-08DF-4914-9F8B-59D5C429C3AA
modifiers
0
modifiersubtext
@@ -77,7 +25,7 @@
destinationuid
- 217E2CEF-689C-49E5-986E-8C1B55AB80C8
+ D5DDD534-314A-473C-A898-AEC5C234FC52
modifiers
0
modifiersubtext
@@ -90,7 +38,7 @@
destinationuid
- 217E2CEF-689C-49E5-986E-8C1B55AB80C8
+ D5DDD534-314A-473C-A898-AEC5C234FC52
modifiers
0
modifiersubtext
@@ -103,20 +51,7 @@
destinationuid
- FFD39690-F75B-4539-B79C-E25613FB3A3A
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 217E2CEF-689C-49E5-986E-8C1B55AB80C8
-
-
- destinationuid
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
+ 9ECF0139-0E66-4EAC-8C62-1D55A508874E
modifiers
0
modifiersubtext
@@ -129,7 +64,7 @@
destinationuid
- FFD39690-F75B-4539-B79C-E25613FB3A3A
+ 9ECF0139-0E66-4EAC-8C62-1D55A508874E
modifiers
0
modifiersubtext
@@ -142,53 +77,7 @@
destinationuid
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 636E755F-9C12-4C93-BC09-0F6C1B84697C
-
-
- destinationuid
- 9E8D3519-0F74-4721-8468-CD8ED09FAA52
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- destinationuid
- 7EA9EAD0-794A-4D65-9283-E49D1DCA0DDA
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 68D994C5-8D38-457E-A4C8-355E6813D77A
-
-
- destinationuid
- 0DB9CFD6-37CD-405C-AA68-3A682CFD5BBA
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- destinationuid
- A65C4EA1-6F56-4821-8EBE-2C2717B3A455
+ 76CD24D4-D950-445D-A8FC-D8BD4D390299
modifiers
0
modifiersubtext
@@ -201,33 +90,7 @@
destinationuid
- EE62CA2C-AD0A-4574-A27D-965347ADB14C
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 7EA9EAD0-794A-4D65-9283-E49D1DCA0DDA
-
-
- destinationuid
- 06D43C57-AF42-446D-A9D4-11B41BED1C85
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- 82575DDB-BCA7-4201-A253-C4316E28B570
-
-
- destinationuid
- 3B3500C8-4B35-4842-9DB3-18793D2881F2
+ E63F1F76-116F-4C39-A91D-7A1BD00B991B
modifiers
0
modifiersubtext
@@ -236,6 +99,8 @@
+ 86590F04-57CC-4B1E-96FF-A87CC14063DA
+
953EA110-8004-4091-9985-F0AF57D696C4
@@ -259,24 +124,11 @@
- 9E8D3519-0F74-4721-8468-CD8ED09FAA52
-
-
- destinationuid
- 473F5DFC-4A6D-4D50-8043-08B57D3D3028
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
9ECF0139-0E66-4EAC-8C62-1D55A508874E
destinationuid
- F02490D9-0F64-4B7B-99B2-B162E9DD11EB
+ 86590F04-57CC-4B1E-96FF-A87CC14063DA
modifiers
0
modifiersubtext
@@ -285,11 +137,11 @@
- A65C4EA1-6F56-4821-8EBE-2C2717B3A455
+ A2BE7579-08DF-4914-9F8B-59D5C429C3AA
destinationuid
- 05465173-78BA-46B5-BAB9-66742B45EE44
+ 9ECF0139-0E66-4EAC-8C62-1D55A508874E
modifiers
0
modifiersubtext
@@ -302,43 +154,7 @@
destinationuid
- E4B277B2-977C-4560-8E33-DA50A32F72CE
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- B4E2CA73-00A6-4589-B3F9-9D717FF489A1
-
-
- destinationuid
- 82575DDB-BCA7-4201-A253-C4316E28B570
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- destinationuid
- 08549E07-E3B8-4574-BA24-3B4F32C1FE4E
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
- D675C802-AD81-43EF-8415-4D4FE2425415
-
-
- destinationuid
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
+ A2BE7579-08DF-4914-9F8B-59D5C429C3AA
modifiers
0
modifiersubtext
@@ -347,11 +163,11 @@
- E4B277B2-977C-4560-8E33-DA50A32F72CE
+ B855F94C-6DC2-4999-9A4C-3DF7F330CD9F
destinationuid
- FFD39690-F75B-4539-B79C-E25613FB3A3A
+ 16865643-D0A0-48DA-961D-053770CCBB23
modifiers
0
modifiersubtext
@@ -360,11 +176,11 @@
- EE62CA2C-AD0A-4574-A27D-965347ADB14C
+ D5DDD534-314A-473C-A898-AEC5C234FC52
destinationuid
- B4E2CA73-00A6-4589-B3F9-9D717FF489A1
+ 76CD24D4-D950-445D-A8FC-D8BD4D390299
modifiers
0
modifiersubtext
@@ -373,7 +189,7 @@
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
+ D675C802-AD81-43EF-8415-4D4FE2425415
destinationuid
@@ -386,11 +202,11 @@
- F02490D9-0F64-4B7B-99B2-B162E9DD11EB
+ E63F1F76-116F-4C39-A91D-7A1BD00B991B
destinationuid
- 636E755F-9C12-4C93-BC09-0F6C1B84697C
+ B855F94C-6DC2-4999-9A4C-3DF7F330CD9F
modifiers
0
modifiersubtext
@@ -422,19 +238,6 @@
- FFD39690-F75B-4539-B79C-E25613FB3A3A
-
-
- destinationuid
- 9ECF0139-0E66-4EAC-8C62-1D55A508874E
- modifiers
- 0
- modifiersubtext
-
- vitoclose
-
-
-
createdby
Amos Manneschmidt (@amoose136)
@@ -464,38 +267,6 @@
version
1
-
- config
-
- applescript
- on alfred_script(q)
-
-set contacts_running to false
-if application "Contacts" is running then
-set contacts_running to true
-end if
-
-tell application "Contacts"
-set q to text ((offset of "Metadata/" in q)+9) thru ((offset of "." in q)-1) of q
-set phonenumber to value of phone of person id q
set phonenumber to item 1 of phonenumber
-
-if contacts_running is false
-tell application "Contacts" to quit
-end if
-
-return phonenumber
-end tell
-end alfred_script
- cachescript
-
-
- type
- alfred.workflow.action.applescript
- uid
- 217E2CEF-689C-49E5-986E-8C1B55AB80C8
- version
- 1
-
config
@@ -587,40 +358,34 @@ end alfred_script
config
- lastpathcomponent
-
- onlyshowifquerypopulated
-
- removeextension
-
- text
- {var:uncleaned} is an improperly formatted number
- title
- Cannot place call
-
- type
- alfred.workflow.output.notification
- uid
- 3B3500C8-4B35-4842-9DB3-18793D2881F2
- version
- 1
-
-
- config
-
- inputstring
- {query}
- matchcasesensitive
+ applescript
+ on alfred_script(q)
+
+set contacts_running to false
+if application "Contacts" is running then
+ set contacts_running to true
+else
+ do shell script "open -j /Applications/Contacts.app"
+end if
+
+tell application "Contacts"
+ set q to text ((offset of "Metadata/" in q)+9) thru ((offset of "." in q)-1) of q
+ set phonenumber to value of phone of person id q
set phonenumber to item 1 of phonenumber
+end tell
+
+if contacts_running is false
+ tell application "Contacts" to quit
+end if
+
+return phonenumber
+end alfred_script
+ cachescript
- matchmode
- 1
- matchstring
- 1
type
- alfred.workflow.utility.filter
+ alfred.workflow.action.applescript
uid
- 82575DDB-BCA7-4201-A253-C4316E28B570
+ D5DDD534-314A-473C-A898-AEC5C234FC52
version
1
@@ -642,29 +407,6 @@ end alfred_script
version
1
-
- config
-
- concurrently
-
- escaping
- 127
- script
- open 'tel://{query}'
- scriptargtype
- 0
- scriptfile
-
- type
- 0
-
- type
- alfred.workflow.action.script
- uid
- E63F1F76-116F-4C39-A91D-7A1BD00B991B
- version
- 2
-
config
@@ -686,40 +428,6 @@ end alfred_script
version
1
-
- config
-
- matchmode
- 1
- matchstring
- [^0-9]?
- replacestring
-
-
- type
- alfred.workflow.utility.replace
- uid
- 76CD24D4-D950-445D-A8FC-D8BD4D390299
- version
- 1
-
-
- config
-
- matchmode
- 1
- matchstring
- ^[0-9]{7}+([0-9]{3,4})?$
- replacestring
- 1
-
- type
- alfred.workflow.utility.replace
- uid
- B4E2CA73-00A6-4589-B3F9-9D717FF489A1
- version
- 1
-
config
@@ -738,61 +446,6 @@ end alfred_script
version
1
-
- config
-
- argument
- {query}
- variables
-
- cleaned
- {query}
-
-
- type
- alfred.workflow.utility.argument
- uid
- EE62CA2C-AD0A-4574-A27D-965347ADB14C
- version
- 1
-
-
- config
-
- argument
- {query}
- variables
-
- uncleaned
- {query}
-
-
- type
- alfred.workflow.utility.argument
- uid
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
- version
- 1
-
-
- config
-
- inputstring
- {var:skip_confirm}
- matchcasesensitive
-
- matchmode
- 1
- matchstring
- True
-
- type
- alfred.workflow.utility.filter
- uid
- 0DB9CFD6-37CD-405C-AA68-3A682CFD5BBA
- version
- 1
-
config
@@ -812,7 +465,7 @@ end alfred_script
type
alfred.workflow.action.script
uid
- 05465173-78BA-46B5-BAB9-66742B45EE44
+ E63F1F76-116F-4C39-A91D-7A1BD00B991B
version
2
@@ -834,56 +487,39 @@ end alfred_script
version
1
-
- config
-
- argument
- {var:cleaned}
- variables
-
-
- type
- alfred.workflow.utility.argument
- uid
- 68D994C5-8D38-457E-A4C8-355E6813D77A
- version
- 1
-
config
inputstring
- {query}
+ {var:skip_confirm}
matchcasesensitive
-
+
matchmode
0
matchstring
- 1
+ True
type
alfred.workflow.utility.filter
uid
- 08549E07-E3B8-4574-BA24-3B4F32C1FE4E
+ B855F94C-6DC2-4999-9A4C-3DF7F330CD9F
version
1
config
- inputstring
- {var:skip_confirm}
- matchcasesensitive
-
matchmode
- 0
+ 1
matchstring
- True
+ [^0-9]?
+ replacestring
+
type
- alfred.workflow.utility.filter
+ alfred.workflow.utility.replace
uid
- A65C4EA1-6F56-4821-8EBE-2C2717B3A455
+ 76CD24D4-D950-445D-A8FC-D8BD4D390299
version
1
@@ -989,17 +625,16 @@ end alfred_script
set contacts_running to false
if application "Contacts" is running then
-set contacts_running to true
+ set contacts_running to true
end if
tell application "Contacts"
-delay .5
-set q to text ((offset of "Metadata/" in q)+9) thru ((offset of "." in q)-1) of q
-set phonenumber to value of phone of person id q
set phonenumber to item 1 of phonenumber
+ set q to text ((offset of "Metadata/" in q)+9) thru ((offset of "." in q)-1) of q
+ set phonenumber to value of phone of person id q
set phonenumber to item 1 of phonenumber
end tell
if contacts_running is false
-tell application "Contacts" to quit
+ tell application "Contacts" to quit
end if
return phonenumber
@@ -1010,47 +645,7 @@ end alfred_script
type
alfred.workflow.action.applescript
uid
- E4B277B2-977C-4560-8E33-DA50A32F72CE
- version
- 1
-
-
- config
-
- lastpathcomponent
-
- onlyshowifquerypopulated
-
- removeextension
-
- text
- {var:uncleaned} is an improperly formatted number
- title
- Cannot SMS number
-
- type
- alfred.workflow.output.notification
- uid
- 473F5DFC-4A6D-4D50-8043-08B57D3D3028
- version
- 1
-
-
- config
-
- inputstring
- {query}
- matchcasesensitive
-
- matchmode
- 1
- matchstring
- 1
-
- type
- alfred.workflow.utility.filter
- uid
- 9E8D3519-0F74-4721-8468-CD8ED09FAA52
+ A2BE7579-08DF-4914-9F8B-59D5C429C3AA
version
1
@@ -1133,19 +728,25 @@ end alfred_script
config
- matchmode
- 1
- matchstring
- ^[0-9]{10,11}$
- replacestring
- 1
+ concurrently
+
+ escaping
+ 127
+ script
+ open 'imessage://{query}'
+ scriptargtype
+ 0
+ scriptfile
+
+ type
+ 0
type
- alfred.workflow.utility.replace
+ alfred.workflow.action.script
uid
- 636E755F-9C12-4C93-BC09-0F6C1B84697C
+ 86590F04-57CC-4B1E-96FF-A87CC14063DA
version
- 1
+ 2
config
@@ -1164,42 +765,6 @@ end alfred_script
version
1
-
- config
-
- argument
- {query}
- variables
-
- cleaned
- {query}
-
-
- type
- alfred.workflow.utility.argument
- uid
- F02490D9-0F64-4B7B-99B2-B162E9DD11EB
- version
- 1
-
-
- config
-
- argument
- {query}
- variables
-
- uncleaned
- {query}
-
-
- type
- alfred.workflow.utility.argument
- uid
- FFD39690-F75B-4539-B79C-E25613FB3A3A
- version
- 1
-
config
@@ -1221,63 +786,6 @@ end alfred_script
version
1
-
- config
-
- concurrently
-
- escaping
- 127
- script
- open 'imessage://{query}'
- scriptargtype
- 0
- scriptfile
-
- type
- 0
-
- type
- alfred.workflow.action.script
- uid
- 86590F04-57CC-4B1E-96FF-A87CC14063DA
- version
- 2
-
-
- config
-
- inputstring
- {query}
- matchcasesensitive
-
- matchmode
- 0
- matchstring
- 1
-
- type
- alfred.workflow.utility.filter
- uid
- 7EA9EAD0-794A-4D65-9283-E49D1DCA0DDA
- version
- 1
-
-
- config
-
- argument
- {var:cleaned}
- variables
-
-
- type
- alfred.workflow.utility.argument
- uid
- 06D43C57-AF42-446D-A9D4-11B41BED1C85
- version
- 1
-
config
@@ -1301,51 +809,9 @@ end alfred_script
readme
- I wanted Alfred to better integrate with continuity features in the Iphone so I made this. Released under Apache License 2.0. Written by @amoose136 2015-2016. Requires Alfred V3.
+ I wanted Alfred to better integrate with continuity features in the Iphone so I made this. Released under Apache License 2.0. Written by @amoose136 2015-2017. Requires Alfred V3.
uidata
- 05465173-78BA-46B5-BAB9-66742B45EE44
-
- colorindex
- 4
- note
- send to tel://
- xpos
- 970
- ypos
- 260
-
- 06D43C57-AF42-446D-A9D4-11B41BED1C85
-
- colorindex
- 4
- xpos
- 840
- ypos
- 630
-
- 08549E07-E3B8-4574-BA24-3B4F32C1FE4E
-
- colorindex
- 4
- note
- contains 7, 10, or 11 digits
- xpos
- 700
- ypos
- 290
-
- 0DB9CFD6-37CD-405C-AA68-3A682CFD5BBA
-
- colorindex
- 4
- note
- show confirm?
- xpos
- 880
- ypos
- 220
-
0FAC263F-D24B-4ACB-9D59-07329F75BCD0
xpos
@@ -1355,19 +821,23 @@ end alfred_script
10C9547D-84B9-43F9-9DA0-6AEC76C58A94
+ colorindex
+ 4
note
skip confirmation
xpos
- 210
+ 220
ypos
120
126EBE51-784E-415A-8D65-C85B217DF930
+ colorindex
+ 4
note
show confirmation popup before calling
xpos
- 210
+ 220
ypos
10
@@ -1376,11 +846,11 @@ end alfred_script
colorindex
4
note
- click call.
+ click call
xpos
- 1120
+ 610
ypos
- 260
+ 280
1DFF0026-0410-4E09-B829-03EA6203893F
@@ -1389,24 +859,6 @@ end alfred_script
ypos
590
- 217E2CEF-689C-49E5-986E-8C1B55AB80C8
-
- xpos
- 300
- ypos
- 30
-
- 3B3500C8-4B35-4842-9DB3-18793D2881F2
-
- colorindex
- 1
- note
- format bad
- xpos
- 780
- ypos
- 70
-
42AC172B-3284-46CC-A8B8-B5251D9644DB
xpos
@@ -1414,19 +866,10 @@ end alfred_script
ypos
700
- 473F5DFC-4A6D-4D50-8043-08B57D3D3028
-
- colorindex
- 1
- note
- format bad
- xpos
- 860
- ypos
- 440
-
5C05FAE4-38A9-4B98-8863-C42A8F5CE7E5
+ colorindex
+ 4
note
skip confirmation
xpos
@@ -1434,67 +877,27 @@ end alfred_script
ypos
320
- 636E755F-9C12-4C93-BC09-0F6C1B84697C
-
- colorindex
- 3
- note
- This is functionally an "if" statement
- xpos
- 660
- ypos
- 540
-
- 68D994C5-8D38-457E-A4C8-355E6813D77A
-
- colorindex
- 4
- xpos
- 790
- ypos
- 290
-
76CD24D4-D950-445D-A8FC-D8BD4D390299
-
- note
- Remove letters and spaces (leaving numbers)
- xpos
- 420
- ypos
- 210
-
- 7EA9EAD0-794A-4D65-9283-E49D1DCA0DDA
colorindex
4
note
- contains 10, or 11 digits
- xpos
- 770
- ypos
- 630
-
- 82575DDB-BCA7-4201-A253-C4316E28B570
-
- colorindex
- 1
- note
- does not contain 7, 10, or 11 digits
+ Remove letters and spaces (leaving numbers)
xpos
- 700
+ 330
ypos
- 100
+ 310
86590F04-57CC-4B1E-96FF-A87CC14063DA
colorindex
- 4
+ 7
note
- send the imessage://
+ send to Messages.app
xpos
- 900
+ 470
ypos
- 600
+ 520
953EA110-8004-4091-9985-F0AF57D696C4
@@ -1505,36 +908,27 @@ end alfred_script
ypos
180
- 9E8D3519-0F74-4721-8468-CD8ED09FAA52
-
- colorindex
- 1
- note
- does not contain 10 or 11 digits
- xpos
- 770
- ypos
- 470
-
9ECF0139-0E66-4EAC-8C62-1D55A508874E
+ colorindex
+ 7
note
Remove letters and spaces (leaving numbers)
xpos
- 480
+ 390
ypos
- 540
+ 550
- A65C4EA1-6F56-4821-8EBE-2C2717B3A455
+ A2BE7579-08DF-4914-9F8B-59D5C429C3AA
colorindex
- 4
+ 7
note
- skip confirm
+ Extract number
xpos
- 880
+ 210
ypos
- 290
+ 420
AA05525E-1106-40EB-8CFC-66CA0AFFF10F
@@ -1543,72 +937,47 @@ end alfred_script
ypos
370
- B4E2CA73-00A6-4589-B3F9-9D717FF489A1
+ B855F94C-6DC2-4999-9A4C-3DF7F330CD9F
colorindex
- 3
- note
- This is functionally an "if" statement
- xpos
- 600
- ypos
- 210
-
- D675C802-AD81-43EF-8415-4D4FE2425415
-
- note
- show confirmation popup before calling
+ 4
xpos
- 220
+ 550
ypos
- 210
+ 310
- E4B277B2-977C-4560-8E33-DA50A32F72CE
+ D5DDD534-314A-473C-A898-AEC5C234FC52
+ colorindex
+ 4
note
Extract number
xpos
- 200
+ 300
ypos
- 420
+ 40
- E63F1F76-116F-4C39-A91D-7A1BD00B991B
+ D675C802-AD81-43EF-8415-4D4FE2425415
colorindex
4
note
- send to tel://
- xpos
- 970
- ypos
- 130
-
- EE62CA2C-AD0A-4574-A27D-965347ADB14C
-
- note
- save cleaned query and pass along
- xpos
- 510
- ypos
- 210
-
- EFD6D29D-E612-49E1-8CAD-411BEA21ACA2
-
- note
- Save initial query
+ show confirmation popup before calling
xpos
- 330
+ 220
ypos
210
- F02490D9-0F64-4B7B-99B2-B162E9DD11EB
+ E63F1F76-116F-4C39-A91D-7A1BD00B991B
+ colorindex
+ 4
note
- save cleaned query and pass along
+ Make call button appear
xpos
- 570
+ 410
ypos
- 540
+ 280
FF8E3BE3-2E94-4801-8A01-9AA8DE17340B
@@ -1619,23 +988,9 @@ end alfred_script
ypos
30
- FFD39690-F75B-4539-B79C-E25613FB3A3A
-
- note
- Save initial query
- xpos
- 390
- ypos
- 540
-
-
- variables
-
- skip_confirm
- False
version
- 2.1
+ 2.2
webaddress