DICTIONARY

Dictionary
COMMENT
Enter comment...
SCRIPTING
Get
All Keys
in
Type

Dictionary Value
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Convert now;;;;
ORG:;
PHOTO;ENCODING=b:
Icons.update
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Search;;;;
ORG:By Measurement Type;
PHOTO;ENCODING=b:
Icons.exit
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Update;;;;
ORG:;
PHOTO;ENCODING=b:
Icons.convert
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Exit;;;;
ORG:;
PHOTO;ENCODING=b:
Icons.search
END:VCARD

Text
SCRIPTING
Set name of
Text
to
Menu.vcf

Renamed Item
CONTACTS
Get contacts from
Renamed Item

Contacts
SCRIPTING
Choose from
Contacts
Prompt
Choose an option :

Chosen Item
SCRIPTING
If
Chosen Item
is
Update
SCRIPTING
Repeat
Count

Repeat Results
DICTIONARY

Dictionary
VARIABLES
Set variable
LocalData
to
Dictionary
SCRIPTING
Get current IP address
Options Under Construction

Current IP Address
SCRIPTING
Count
Items
in
Current IP Address

Count
SCRIPTING
If
Count
is
0
SCRIPTING
Show alert
Informational Message
SCRIPTING
Otherwise
URL
https://routinehub.co/api/v1/shortcuts/
LocalData
/versions/latest

URL
NETWORK
Get contents of
URL
Options Under Construction

Contents of URL
SCRIPTING
If
result
contains
success
DICTIONARY

Dictionary
TEXT
<html><head></head><body><script>
// Embed-a-Engine 1.0
function cmp (a, b) {
let pa = a.split('.');
let pb = b.split('.');
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
let na = Number(pa[i]);
let nb = Number(pb[i]);
if (isNaN(na)) na = 0;
if (isNaN(nb)) nb = 0;
if (na > nb) return "RollbackAvailable";
if (nb > na) return "UpdateAvailable";
}
return "NoChanges";
};
let data =
CompareVersionsData
;
document.write(cmp(data.current, data.new));
</script></body></html>

Text
URL
data:text/html,
CompareVersionsHTML

URL
SAFARI
Get contents of web page at
URL

Contents of Web Page
SCRIPTING
If
Contents of Web Page
is
NoChanges
SCRIPTING
Show alert
Unit Converter Plus is up to date
Title
Unit Converter Plus is up to date
SCRIPTING
Otherwise
SCRIPTING
If
Contents of Web Page
is
RollbackAvailable
TEXT
A rollback is available:
LocalData
↘
Remote

Text
SCRIPTING
Otherwise
TEXT
An update is available:
LocalData
→
Remote

Text
SCRIPTING
End If

If Result
SCRIPTING
Choose from Menu

Menu Result
SCRIPTING
Install result (Version)

Menu Result
URL
https://routinehub.co/download/
Remote

URL
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
URL
SCRIPTING
Not now

Menu Result
SCRIPTING
End Menu

Menu Result
SCRIPTING
End If

If Result
SCRIPTING
Otherwise
SCRIPTING
Show alert
Informational Message
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Exit shortcut with
Repeat Results
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
is
Exit
NOTIFICATIONS
Show notification
Input
Options Under Construction
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
is
Convert now
SCRIPTING
Choose from
Dictionary Value
Prompt
Choose a measurement type from below :

Chosen Item
VARIABLES
Set variable
Type
to
Chosen Item
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
is
Search
SCRIPTING
Ask
Enter the type of measurement (Area, Mass, Volume ... etc) :

Provided Input
FILES
Filter
Dictionary Value
where
[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark inline', 'value': [{'class': 'magic', 'value': 'Provided Input', 'glyph': '', 'UUID': '23F14CBA-D11C-461B-B1C8-0A04635FEEC6'}]}]

Files
SCRIPTING
Choose from
Files
Prompt
Choose a measurement type :

Chosen Item
VARIABLES
Set variable
Type
to
Chosen Item
SCRIPTING
End If

If Result
SCRIPTING
If
Type
is
Other
MEASUREMENT
Ask Each Time
Value
m

Measurement
MEASUREMENT
Convert
Measurement
into
Ask Each Time
in
metres

Converted Measurement
SCRIPTING
Show alert
Informational Message
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
Get
Value
for
Type.
Type
in
Dictionary

Dictionary Value
SCRIPTING
Choose from
Dictionary Value
Prompt
Choose the unit you want to convert from :

Chosen Item
VARIABLES
Set variable
FromUnit
to
Chosen Item
SCRIPTING
Ask
Enter the Value in
FromUnit
:

Provided Input
VARIABLES
Set variable
Value
to
Provided Input
SCRIPTING
Repeat
Count

Repeat Results
SCRIPTING
If
Type
is
Volume
SCRIPTING
If
FromUnit
is
acre-feet
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
af

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
bushels
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
bsh

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
centiliters
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
cL

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
cubic centimeters
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
cm³

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
cups
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
cup

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
deciliters
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
dL

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
dm³
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
dm³

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
fluid ounces
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
fl oz

Measurement
SCRIPTING
End If

If Result
SCRIPTING
If
FromUnit
is
cubic feet
MEASUREMENT
Volume
{'VariableName': 'Value', 'Type': 'Variable'}
ft³

Measurement
SCRIPTING
End If

If Result