SCRIPTING
Get
Wi-Fi
network's
Network Name

Network Details
VARIABLES
Set variable
OnOrOff
to
Network Details
SCRIPTING
If
OnOrOff
has any value
COMMENT
Images are in iCloud in folder ‘LockScreensipadMINI’
all MUST be jpg and numbered sequentially from 1
Selection is for day number - or [day no]
MISSING
Under Construction
MISSING
folder Under Construction
VARIABLES
Set variable
maxRandom
to
Folder
COMMENT
get the current day number in year
COMMENT
json file holds last image number used for locka nd nome screens
see if day no exceeds next image number
DOCUMENTS

File
SCRIPTING
Get dictionary from
File

Dictionary
SCRIPTING
Get
Value
for
lockCount
in
Dictionary

Dictionary Value
VARIABLES
Set variable
ScreenChoice
to
Dictionary Value
MATHS
ScreenChoice
+
1
Options Under Construction

Calculation Result
VARIABLES
Set variable
ScreenChoice
to
Calculation Result
COMMENT
check if selected image is too many - if so, reset to first image
SCRIPTING
If
ScreenChoice
is greater than
maxRandom
TEXT
1

Text
VARIABLES
Set variable
ScreenChoice
to
Text
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
COMMENT
update dictionary with new starting point
COMMENT
now get the latest image for the wallpaper
DOCUMENTS

File
MISSING
wallpaper.set Under Construction
SCRIPTING
Set
lockCount
to
ScreenChoice
in
Dictionary

Dictionary
DOCUMENTS
Save
Dictionary
Destination Path
/Shortcuts/iPadMINIScreenCount.jsonOverwrite If File Exists

Saved File
COMMENT
Now for home screen '
MISSING
folder Under Construction
VARIABLES
Set variable
maxRandom
to
Folder
MISSING
file Under Construction
SCRIPTING
Get dictionary from
File

Dictionary
SCRIPTING
Get
Value
for
homeCount
in
Dictionary

Dictionary Value
VARIABLES
Set variable
homeScreen
to
Dictionary Value
MATHS
homeScreen
+
1
Options Under Construction

Calculation Result
VARIABLES
Set variable
homeScreen
to
Calculation Result
SCRIPTING
If
homeScreen
is greater than
maxRandom
TEXT
1

Text
VARIABLES
Set variable
homeScreen
to
Text
SCRIPTING
Otherwise
SCRIPTING
End If

If Result
SCRIPTING
Set
homeCount
to
homeScreen
in
Dictionary

Dictionary
DOCUMENTS
Save
Dictionary
Destination Path
/Shortcuts/iPadMINIScreenCount.json
Overwrite If File Exists

Saved File
DOCUMENTS
Get File
File Path
/Shortcuts/example.txt

File
MISSING
wallpaper.set Under Construction
SCRIPTING
End If

If Result
MISSING
Under Construction
SCRIPTING
Exit shortcut with
Result