Login About Gallery
PowerUtil
Accepts
App Store Apps, Articles, Contacts, Dates, Email Addresses, WFFolderContentItem, Files, Images, iTunes Products, Locations, Map Links, Media, PDFs, Phone Numbers, Rich Text, Safari Web Pages, Text and URLs
COMMENT
PowerUtil has been built with ❤️ by iTech Everything. You can support the creator on the following platforms: youtube.com/TheiTE twitter.com/TheOriginaliTE For more information and other shortcuts like this, visit itecheverything.com/shortcuts
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
SCRIPTING
Get the
System Version
MATHS
Round
System Version
to
Ones Place
Mode
Always Round Down
SCRIPTING
Get the
Device Model
SCRIPTING
If
Device Model
contains
Vision
NUMBER
1
VARIABLES
Set variable
isVision
to
True
Otherwise
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
SCRIPTING
End If
SCRIPTING
If
Shortcut Input
has any value
SCRIPTING
If
Shortcut Input
contains
log-aggregated
TEXT
log-aggregated
Otherwise
SCRIPTING
If
Shortcut Input
contains
Analytics
TEXT
Analytics
Otherwise
output Under Construction
End If
End If
VARIABLES
Set variable
fileName
to
If Result
Otherwise
SCRIPTING
If
Device Model
is
Mac
output Under Construction
End If
SCRIPTING
If
isVision
is
<value>
SAFARI
Open
prefs:root=Privacy&path=PROBLEM_REPORTING
TEXT
Please click "Analytics Data" on your screen. -> Click or search for any one the
Required File
file(s). -> Click Share on the top right -> Click PowerUtil If you have "Share
VAR
Analytics" disabled or have the
Required File
file missing, you will need to enable them and wait for at least 24 hours.
Otherwise
SCRIPTING
If
Rounded Number
is greater than or equal to
15
SAFARI
Open
prefs:root=Privacy&path=PROBLEM_REPORTING
TEXT
Please click "Analytics Data" on your screen. -> Click or search for any one the
Required File
file(s). -> Click Share on the top right -> Click PowerUtil If you have "Share
VAR
Analytics" disabled or have the
Required File
file missing, you will need to enable them and wait for at least 24 hours.
Otherwise
SCRIPTING
Open
com.apple.Preferences
TEXT
Please go to Privacy -> Analytics & Improvements and click "Analytics Data" on your screen. -> Click or search for any one the
Required File
file(s). -> Click Share on the top right -> Click PowerUtil If you have "Share
VAR
Analytics" disabled or have the
Required File
file missing, you will need to enable them and wait for at least 24 hours.
End If
End If
SCRIPTING
Choose from Menu
Watch Tutorial
SAFARI
Show web page at
https://youtu.be/uQ_0l5pi7ro
Enter Safari Reader
Dismiss
End Menu
SCRIPTING
Exit shortcut with
Result
End If
SCRIPTING
Set name of
Shortcut Input
to
analytics.txt
DOCUMENTS
Get text from
Renamed Item
TEXT
Match
"last_value_AlgoChemID":[^\n]*\n
in
Log-Aggregated
Case Sensitive
SCRIPTING
If
Analytics
has any value
TEXT
Split
Analytics
by
New Lines
SCRIPTING
Get
Last Item
from
Split Text
TEXT
Split
Item from List
by
Custom
}
SCRIPTING
Get
First Item
from
Split Text
Otherwise
DOCUMENTS
Get text from
Renamed Item
End If
VARIABLES
Set variable
AnalyticsFile
to
If Result
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
SCRIPTING
SCRIPTING
Otherwise
TEXT
NominalChargeCapacity
End If
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
VARIABLES
Set variable
Analytics
to
Dictionary
DICTIONARY
<inline variable>
5 items
<inline variable>
5 items
SCRIPTING
Get
Value
for
fileName
in
Dictionary
SCRIPTING
Get dictionary from
Corresponding Dictionary
SCRIPTING
Get
All Keys
in
Dictionary
SCRIPTING
Repeat with each item in
Dictionary Value
SCRIPTING
Get
Value
for
Repeat Item
in
Corresponding Dictionary
SCRIPTING
If
fileName
is
Analytics
SCRIPTING
Get
Value
for
Required Key
in
AnalyticsFile
SCRIPTING
Get numbers from
Dictionary Value
SCRIPTING
Get
First Item
from
Numbers
Otherwise
TEXT
Match
(?<=
Required Key
<\/key>).*\n.*.\d+
in
AnalyticsFile
Case Sensitive
TEXT
Match
\d+
in
Matches
Case Sensitive
End If
SCRIPTING
Get
First Item
from
If Result
SCRIPTING
If
Item from List
has any value
SCRIPTING
Set
Repeat Item
to
Item from List
in
Dictionary
VARIABLES
Set variable
Analytics
to
Dictionary
End If
End Repeat
VARIABLES
Set variable
maximumCapacity
to
Analytics
VARIABLES
Set variable
averageTemperature
to
Analytics
VARIABLES
Set variable
cycleCount
to
Analytics
VARIABLES
Set variable
AvailableMax
to
Analytics
VARIABLES
Set variable
OriginalMax
to
Analytics
SCRIPTING
If
OriginalMax
is not
0
calculateexpression Under Construction
MATHS
Format
Calculation Result
to
2 decimal places
SCRIPTING
If
Formatted Number
is greater than
100
NUMBER
100
End If
VARIABLES
Set variable
PowerUtilCalculatedBatteryHealth
to
If Result
TEXT
<spacer type="block" width="50" /> <h4>PowerUtil Calculated Battery Health</h4> <p2>
PowerUtilCalculatedBatteryHealth
%<p2> <p>This is a measure of your current battery capacity compared to the battery capacity (in mAh) that Apple lists on their website.</p>

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

62 more actions