COMMENT
By C Baker
Version 3.2.1
Use this to check the media metadata including TIFF, Exif, GPS, GIF, IPTC and JFIF.
Use it from the photo or media share sheet to investigate the media’s metadata.
If it contains the metadata it will be shown in the Comprehensive or Raw PDF.
MATHS
Random number between
1
and
10

Random Number
SCRIPTING
If
Random Number
is
5
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
COMMENT
[Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ] Could not check for updates, there is no internet connection.
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
COMMENT
[Eᴍʙᴇᴅ-ᴀ-Uᴘᴅᴀᴛᴇ] No updates are available at this time.
SCRIPTING
Otherwise
SCRIPTING
If
Contents of Web Page
is
RollbackAvailable
TEXT
A
result
rollback is available:
result
↵
LocalData
Rollback Notes (If Available)
LocalData

Text
SCRIPTING
Otherwise
TEXT
A
result
update is available:
LocalData
➜
result
Update Notes (If Available)
LocalData

Text
SCRIPTING
End If

If Result
VARIABLES
Set variable
UpdateText
to
If Result
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Install Version
result
;;;;
ORG:;
PHOTO;ENCODING=b:
update
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Later;;;;
ORG:This update menu will appear again randomly;
PHOTO;ENCODING=b:
later
END:VCARD

Text
VARIABLES
Set variable
UpdateYN
to
Text
SCRIPTING
Set name of
UpdateYN
to
Menu.vcf

Renamed Item
SCRIPTING
Choose from
Renamed Item
Prompt
[{'class': 'magic', 'value': 'UpdateText', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]

Chosen Item
SCRIPTING
If
Chosen Item
contains
Install
URL
https://routinehub.co/download/
result

URL
SAFARI
Open
URL
SCRIPTING
Exit shortcut with
Result
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
contains
Later
SCRIPTING
End If

If 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
End If

If Result
COMMENT
Added colour space 65535 = Uncalibrated to Exif
DICTIONARY

Dictionary
VARIABLES
Set variable
MetaTagDict
to
Dictionary
DICTIONARY

Dictionary
VARIABLES
Set variable
MenuDictionary
to
Dictionary
SCRIPTING
If
Shortcut Input
has any value
VARIABLES
Get
Shortcut Input
SCRIPTING
Otherwise
TEXT
Select the location of the image / clip that you require:

Text
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Get from File Location;;;;
ORG:;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Get from Photo's;;;;
ORG:;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD

Text
VARIABLES
Set variable
FilePhoto
to
Text
SCRIPTING
Set name of
FilePhoto
to
Menu.vcf

Renamed Item
SCRIPTING
Choose from
Renamed Item
Prompt
[{'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': 'F7AAAD28-B210-4B94-B438-63B7105953CA'}]

Chosen Item
SCRIPTING
If
Chosen Item
contains
File
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:iCloud ;;;;
ORG:;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Dropbox;;;;
ORG:;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD

Text
VARIABLES
Set variable
GetFile
to
Text
SCRIPTING
Set name of
GetFile
to
Menu.vcf

Renamed Item
SCRIPTING
Choose from
Renamed Item
Prompt
[{'class': 'magic', 'value': 'Text', 'glyph': '', 'UUID': 'F7AAAD28-B210-4B94-B438-63B7105953CA'}]

Chosen Item
SCRIPTING
If
Chosen Item
is
iCloud
DOCUMENTS

File
SCRIPTING
End If

If Result
SCRIPTING
If
Chosen Item
contains
Dropbox
DOCUMENTS

File
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
SCRIPTING
If
If Result
contains
Photo's
PHOTOS

Photos
SCRIPTING
End If

If Result
SCRIPTING
End If

If Result
VARIABLES
Set variable
TheInput
to
If Result
DICTIONARY

Dictionary
VARIABLES
Set variable
SummaryDict
to
Dictionary
SCRIPTING
If
TheInput
has any value
LOCATION
TheInput

Location
VARIABLES
Set variable
PhotoLocation
to
Location
MAPS
Get addresses from
PhotoLocation

Addresses
MEDIA
Get images from
Addresses

Images
VARIABLES
Set variable
LocationThumbRaw
to
Images
SCRIPTING
End If

If Result
MAPS
Get maps URL from
PhotoLocation

Maps URL
VARIABLES
Set variable
Maps URL
to
Maps URL
SCRIPTING
Get
All Keys
in
SummaryDict

Dictionary Value
SCRIPTING
Repeat with each item in
keys

Repeat Results
SCRIPTING
Get
Value
for
Repeat Item
in
SummaryDict

Dictionary Value
SCRIPTING
Count
Characters
in
Dictionary Value

Count
SCRIPTING
If
Count
is greater than
0
TEXT
<strong>
Repeat Item
:</strong>
Dictionary Value
<br />

Text
SCRIPTING
Otherwise
TEXT
Text

Text
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
VARIABLES
Set variable
SummaryHTML
to
Repeat Results
SCRIPTING
If
TheInput
has any value
TEXT
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Comprehensive PDF;;;;
ORG:Includes Metadata Dictionary ;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD
BEGIN:VCARD
VERSION:3.0
N;CHARSET=utf-8:Raw PDF;;;;
ORG:Includes Metadata Dictionary and Raw Metadata Dictionary ;
PHOTO;ENCODING=b:
MenuDictionary
END:VCARD

Text
VARIABLES
Set variable
MetaDictYN
to
Text