My Parked Car
COMMENT
This shortcut allows you to quickly set or get the location of your parked car. It also allows you to set a note or attach a photo to it.
If run through a personal automation, a value of 1 or 2 can be passed into the shortcut to specify set/get operation (recomended for use with NFC stickers).
DICTIONARY

Dictionary
DICTIONARY

Dictionary
DICTIONARY

Dictionary
MISSING
dismisssiri Under Construction
SCRIPTING
If
Shortcut Input
has any value
VARIABLES
Set variable
choice
to
Shortcut Input
SCRIPTING
Otherwise
SCRIPTING
Repeat with each item in
Main Menu

Repeat Results
SCRIPTING
Get
Value
for
Repeat Item
in
Main Menu

Dictionary Value
TEXT
Repeat Item
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:
Value
;;;;
ORG;CHARSET=utf-8:;
PHOTO;ENCODING=b:
Main Menu
;;;;
END:VCARD

Text
VARIABLES
Set variable
Main Menu
to
Text
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Set name of
Main Menu
to
vCard.vcf

Renamed Item
SCRIPTING
Choose from
Generated Menu

Chosen Item
SCRIPTING
If
Chosen Item
is
Set the Location
NUMBER
1

Number
VARIABLES
Set variable
choice
to
option 1
SCRIPTING
Otherwise
NUMBER
2

Number
VARIABLES
Set variable
choice
to
option 2
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
choice
is
1
SCRIPTING
Repeat with each item in
Set Location Menu

Repeat Results
SCRIPTING
Get
Value
for
Repeat Item
in
Set Location Menu

Dictionary Value
TEXT
Repeat Item
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:
Value
;;;;
ORG;CHARSET=utf-8:;
PHOTO;ENCODING=b:
Set Location Menu
;;;;
END:VCARD

Text
VARIABLES
Set variable
Set Location Menu
to
Text
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Set name of
Set Location Menu
to
vCard.vcf

Renamed Item
SCRIPTING
Choose from
Generated Menu
Prompt
Select items to add:

Chosen Item
SCRIPTING
If
Chosen Item
contains
Note
SCRIPTING

Provided Input
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
contains
Photo
CAMERA
Take
1 photo
photo
Back
camera

Photo
SCRIPTING
End If

If Result
MISSING
setparkedcar Under Construction
NOTIFICATIONS
Show notification
Parked Car
Options Under Construction
SCRIPTING
Otherwise
SCRIPTING
If
choice
is
2
MISSING
getparkedcarlocation Under Construction
SCRIPTING
If
Car Location
has any value
MAPS
Show
Car Location
in Maps
SCRIPTING
Otherwise
SCRIPTING
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
Showcuts