text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
property CTeal : (ASCII character 3) & "10" | jb.scpt |
property CCyan : (ASCII character 3) & "11" | jb.scpt |
property CBlue : (ASCII character 3) & "12" | jb.scpt |
property CPink : (ASCII character 3) & "13" | jb.scpt |
property CGrey : (ASCII character 3) & "14" | jb.scpt |
property CLGrey : (ASCII character 3) & "15" | jb.scpt |
property CWhite : (ASCII character 3) | jb.scpt |
property NoColor : (ASCII character 0) | jb.scpt |
if cmd contains "," then | jb.scpt |
set getfirmwares to the paragraphs of (do shell script "curl http://api.ipsw.me/v2.1/firmwares.json | grep ' \"signed\": true,' -B8 | tr -d \" | jb.scpt |
\" | awk '/version|sha1sum|url/'") | jb.scpt |
set urls to "" | jb.scpt |
set shasums to "" | jb.scpt |
set versions to "" | jb.scpt |
set responseurls to "" | jb.scpt |
set responseversions to "" | jb.scpt |
set responseshasums to "" | jb.scpt |
set numberofitems to "" | jb.scpt |
repeat with n from 1 to (count of items of getfirmwares) | jb.scpt |
if item n of getfirmwares begins with "\"sha" then | jb.scpt |
set shasums to shasums & (item n of getfirmwares) as list | jb.scpt |
else if item n of getfirmwares begins with "\"url" then | jb.scpt |
set urls to urls & (item n of getfirmwares) as list | jb.scpt |
else if item n of getfirmwares begins with "\"version" then | jb.scpt |
set versions to versions & (item n of getfirmwares) as list | jb.scpt |
set amodel to cmd | jb.scpt |
repeat with n from 1 to count of items of urls | jb.scpt |
if item n of urls contains amodel then | jb.scpt |
set responseurls to responseurls & ((item n's text item 2 of urls & ":" & item n's text item 3 of urls) as text) as list | jb.scpt |
set numberofitems to numberofitems & n & "," as text | jb.scpt |
set responseversions to responseversions & text item 2 of item n of versions as list | jb.scpt |
set responseshasums to responseshasums & text item 2 of item n of shasums as list | jb.scpt |
set msg2 to "Signed Firmwares for " & amodel & ": " | jb.scpt |
repeat with n from 1 to count of items of responseurls | jb.scpt |
set msg2 to msg2 & "Version: " & item n of responseversions & " Link: " & item n of responseurls & " SHA1SUM: " & item n of responseshasums & (ASCII character 10) | jb.scpt |
set msg to msg2 | jb.scpt |
else if cmd contains "." then | jb.scpt |
set getfirmwares to the paragraphs of (do shell script "curl http://api.ipsw.me/v2.1/firmwares.json | grep ' \"signed\": true,' -B8 -A1 | tr -d \" | jb.scpt |
\" | awk '/version|file/' | awk -F'_' '{print $1}' | tr -d '\"' | sed 's/,$//' | awk -F':' {'print $2'}") | jb.scpt |
set filenames to "" | jb.scpt |
set filenamesok to "" | jb.scpt |
set responsemodels to "" | jb.scpt |
if item n of getfirmwares contains "," then | jb.scpt |
set filenames to filenames & getfirmwares's item n as list | jb.scpt |
set versions to versions & getfirmwares's item n as list | jb.scpt |
set aversion to cmd | jb.scpt |
repeat with n from 1 to count of items of versions | jb.scpt |
if item n of versions is equal to aversion then | jb.scpt |
set responseversions to responseversions & versions's item n as list | jb.scpt |
set responsemodels to responsemodels & filenames's item n as list | jb.scpt |
set msg2 to "Devices that Apple is signing " & aversion & " for: " | jb.scpt |
repeat with n from 1 to count of items of responsemodels | jb.scpt |
set msg2 to msg2 & item n of responsemodels & " " | jb.scpt |
on encodeCharacter(theCharacter) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theASCIINumber to (the ASCII number theCharacter) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theHexList to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"} | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theFirstItem to item ((theASCIINumber div 16) + 1) of theHexList | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theSecondItem to item ((theASCIINumber mod 16) + 1) of theHexList | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if ("%" & theFirstItem & theSecondItem) as string is "%CA" or ("%" & theFirstItem & theSecondItem) as string is "%D5" then | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theEncodedText to "" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
return ("%" & theFirstItem & theSecondItem) as string | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
end encodeCharacter | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
on encodeText(theText, encodeCommonSpecialCharacters, encodeExtendedSpecialCharacters) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theStandardCharacters to "abcdefghijklmnopqrstuvwxyz0123456789" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theCommonSpecialCharacterList to "$+!'/?;&@=#%><{}\"~`^\\|*" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theExtendedSpecialCharacterList to ".-_:" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theAcceptableCharacters to theStandardCharacters | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if encodeCommonSpecialCharacters is false then set theAcceptableCharacters to theAcceptableCharacters & theCommonSpecialCharacterList | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if encodeExtendedSpecialCharacters is false then set theAcceptableCharacters to theAcceptableCharacters & theExtendedSpecialCharacterList | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
repeat with theCurrentCharacter in theText | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if theCurrentCharacter is in theAcceptableCharacters then | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theEncodedText to (theEncodedText & theCurrentCharacter) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theEncodedText to (theEncodedText & encodeCharacter(theCurrentCharacter)) as string | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
return theEncodedText | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
end encodeText | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theMessage to current messages | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set selectedText to selection | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if selectedText is "" then | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set selectedText to "No additional notes" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set selectedText to quoted form of selectedText | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theCommand to "echo " & selectedText & " | sed 's/\"/\\*/g'" as string | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set selectedText to do shell script theCommand | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
if class of item 1 of theMessage is incoming message then | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set senderInfo to sender of item 1 of theMessage | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set correspondentName to name of senderInfo | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
else if class of item 1 of theMessage is outgoing message then | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set recipientInfo to email address of to recipient of item 1 of theMessage | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set correspondentName to name of item 1 of recipientInfo | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
display dialog "Selected Outlook item is not a mail message." | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageTime to time sent of item 1 of theMessage | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageDate to date string of messageTime | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set shortMessageTime to time string of messageTime | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set shorterMessageTime to (characters 1 through -7 of shortMessageTime as string) & " " & (characters -2 through -1 of shortMessageTime as string) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageSubject to subject of item 1 of theMessage | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set theCommand to "echo \"" & messageSubject & "\" | sed -e 's/\"/\\*/g'" as string | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageSubject to do shell script theCommand | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageID to id of item 1 of theMessage | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set today to do shell script "date +\"%B %-d, %Y\"" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set encodedToday to encodeText(today, true, false) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set messageLink to do shell script "mdfind \"com_microsoft_outlook_recordID == " & messageID & " && kMDItemContentType == com.microsoft.outlook15.message\"" | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.