text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
keystroke "DEEPFREEZEPASSWORD"
|
MRDC deepfreeze helper.applescript
|
end DF_unlock
|
MRDC deepfreeze helper.applescript
|
do JavaScript "window.getSelection().anchorNode.parentElement.closest('a,button').click()"
|
open_highlighted_link.applescript
|
set myList to {"orange", "apple", "grape", "kiwi", "lychee"}
|
random.applescript
|
set listCount to count of myList
|
random.applescript
|
set randItem to random number from 1 to listCount
|
random.applescript
|
set myItem to item randItem of myList
|
random.applescript
|
display dialog myItem
|
random.applescript
|
on getProgrammingDatabase()
|
DevonThink - Query Objects.applescript
|
end getProgrammingDatabase
|
DevonThink - Query Objects.applescript
|
on getTopLevelFolders(db)
|
DevonThink - Query Objects.applescript
|
get every record of db whose location = "/" and kind = "Group"
|
DevonThink - Query Objects.applescript
|
end getTopLevelFolders
|
DevonThink - Query Objects.applescript
|
on getDataForTestDocument(folderEnum)
|
DevonThink - Query Objects.applescript
|
get plain text of 1st item of (get children of folderEnum whose kind = "PDF+Text")
|
DevonThink - Query Objects.applescript
|
end getDataForTestDocument
|
DevonThink - Query Objects.applescript
|
set progDatabase to getProgrammingDatabase()
|
DevonThink - Query Objects.applescript
|
set topLevelFolders to getTopLevelFolders(progDatabase)
|
DevonThink - Query Objects.applescript
|
set numTopLevelFolders to (length of topLevelFolders)
|
DevonThink - Query Objects.applescript
|
log "Length of topLevelFolders is: " & numTopLevelFolders
|
DevonThink - Query Objects.applescript
|
set randTopLevelFolder to (random number from 1 to numTopLevelFolders)
|
DevonThink - Query Objects.applescript
|
set chosenTopLevelFolder to item randTopLevelFolder of topLevelFolders
|
DevonThink - Query Objects.applescript
|
set chosenDocument to getDataForTestDocument(chosenTopLevelFolder)
|
DevonThink - Query Objects.applescript
|
set theContactID to id of first item of theSelection
|
Make Link to Contact.applescript
|
set the clipboard to "addressbook://" & theContactID
|
Make Link to Contact.applescript
|
on choose_item_from_list(the_items)
|
Script 16-6.applescript
|
set the_selection to choose from list the_items
|
Script 16-6.applescript
|
if the_selection is false then
|
Script 16-6.applescript
|
error number -128 -- User canceled
|
Script 16-6.applescript
|
return item 1 of the_selection
|
Script 16-6.applescript
|
end choose_item_from_list
|
Script 16-6.applescript
|
global S
|
bilibili-av-bv-converter.applescript
|
global table
|
bilibili-av-bv-converter.applescript
|
global xor
|
bilibili-av-bv-converter.applescript
|
global add
|
bilibili-av-bv-converter.applescript
|
global tr
|
bilibili-av-bv-converter.applescript
|
set S to {11, 10, 3, 8, 4, 6}
|
bilibili-av-bv-converter.applescript
|
set table to every character of "fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF"
|
bilibili-av-bv-converter.applescript
|
set xor to 177451812
|
bilibili-av-bv-converter.applescript
|
set add to "8728348608"
|
bilibili-av-bv-converter.applescript
|
set tr to {}
|
bilibili-av-bv-converter.applescript
|
if item i of this_list is equal to this_item then return i
|
bilibili-av-bv-converter.applescript
|
on BtoA(Input)
|
bilibili-av-bv-converter.applescript
|
set X to every character of text returned of Input
|
bilibili-av-bv-converter.applescript
|
set R to 0
|
bilibili-av-bv-converter.applescript
|
repeat with i from 1 to 6
|
bilibili-av-bv-converter.applescript
|
set a to item i of S
|
bilibili-av-bv-converter.applescript
|
set b to item (a + 1) of X
|
bilibili-av-bv-converter.applescript
|
set t to (list_position(b, table))
|
bilibili-av-bv-converter.applescript
|
set t to (t - 1)
|
bilibili-av-bv-converter.applescript
|
set i to (i - 1)
|
bilibili-av-bv-converter.applescript
|
set curr to (t * (58 ^ i))
|
bilibili-av-bv-converter.applescript
|
set R to R + curr as inches as string #Kinda annoying it would output a form of scientific notation when big number is involved, so we need to make it to any type of units, like inches, kilos etc.
|
bilibili-av-bv-converter.applescript
|
set beforeResult to (R - add) as string
|
bilibili-av-bv-converter.applescript
|
set resultBtoA to (do shell script "echo $(( (" & R & "-" & add & ") ^ " & xor & ")) ")
|
bilibili-av-bv-converter.applescript
|
end BtoA
|
bilibili-av-bv-converter.applescript
|
on AtoB(Input)
|
bilibili-av-bv-converter.applescript
|
set X to (do shell script "echo $(( (" & X & " ^ " & xor & ")+" & add & ")) ")
|
bilibili-av-bv-converter.applescript
|
set R to {"B", "V", "1", "", "", "4", "", "1", "7", "", "", ""}
|
bilibili-av-bv-converter.applescript
|
set c to X div (58 ^ (i - 1)) mod 58
|
bilibili-av-bv-converter.applescript
|
set item (a + 1 as number) of R to item (c + 1) of table
|
bilibili-av-bv-converter.applescript
|
set resultAtoB to list2string(R, "")
|
bilibili-av-bv-converter.applescript
|
end AtoB
|
bilibili-av-bv-converter.applescript
|
on Check(Input1, Input2)
|
bilibili-av-bv-converter.applescript
|
if AtoB(Input1) is equal to Input2 then
|
bilibili-av-bv-converter.applescript
|
display dialog "Valid"
|
bilibili-av-bv-converter.applescript
|
display dialog "Not valid"
|
bilibili-av-bv-converter.applescript
|
end Check
|
bilibili-av-bv-converter.applescript
|
set stringOfDialog to "How to convert?"
|
bilibili-av-bv-converter.applescript
|
set returnRecord to display dialog stringOfDialog buttons {"A to B", "B to A", "Check"} default button 2
|
bilibili-av-bv-converter.applescript
|
set buttonPressed to button returned of returnRecord
|
bilibili-av-bv-converter.applescript
|
if returnRecord is {button returned:"A to B"} then
|
bilibili-av-bv-converter.applescript
|
set Input to display dialog "Input the AV number you wish to be converted with" default answer ""
|
bilibili-av-bv-converter.applescript
|
display dialog AtoB(Input)
|
bilibili-av-bv-converter.applescript
|
else if returnRecord is {button returned:"B to A"} then
|
bilibili-av-bv-converter.applescript
|
set Input to display dialog "Input the BV number you wish to be converted with" default answer ""
|
bilibili-av-bv-converter.applescript
|
display dialog BtoA(Input)
|
bilibili-av-bv-converter.applescript
|
else if returnRecord is {button returned:"Check"} then
|
bilibili-av-bv-converter.applescript
|
set Input1 to display dialog "Input the AV Number you wish to be checked with" default answer ""
|
bilibili-av-bv-converter.applescript
|
set Input2 to display dialog "Input the BV Number you wish to be checked with" default answer ""
|
bilibili-av-bv-converter.applescript
|
display dialog Check(Input1, Input2)
|
bilibili-av-bv-converter.applescript
|
set template_file to "SYS:Users:marcos.garcia:Projects:Lab:applescripts:template:text.txt:"
|
copy_file_content.applescript
|
set the clipboard to (read file template_file as «class utf8»)
|
copy_file_content.applescript
|
var Evernote = Application('Evernote');
|
FindNotes.applescript
|
var list = Evernote.findNotes('AUTOMATE EVERNOTE');
|
FindNotes.applescript
|
list.forEach(function(item){
var title = item.title();
console.log(title);
})
|
FindNotes.applescript
|
Evernote.activate();
|
FindNotes.applescript
|
do shell script "sips -s format jpeg -s formatOptions 100 " & thePathShell
|
JPG compress 100%.applescript
|
set the allNotificationsList to {"New Mail"}
|
Register Outlook with Growl.applescript
|
set the enabledNotificationsList to {"New Mail"}
|
Register Outlook with Growl.applescript
|
register as application "Outlook" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Microsoft Outlook"
|
Register Outlook with Growl.applescript
|
on make_textedit_log(log_name)
|
Script 19-15.applescript
|
script TextEditLog
|
Script 19-15.applescript
|
property class : "textedit log"
|
Script 19-15.applescript
|
if not (exists document log_name) then
|
Script 19-15.applescript
|
make new document with properties {name:log_name}
|
Script 19-15.applescript
|
make new paragraph at end of document log_name with data (the_text & my _linefeed)
|
Script 19-15.applescript
|
end make_textedit_log
|
Script 19-15.applescript
|
set originalCallStatus to («event sendskyp» given «class cmnd»:"GET CALL " & callId & " STATUS", «class scrp»:scriptName)
|
HiDefSkypeStatus-CallPoller.applescript
|
if originalCallStatus is "CALL " & callId & " STATUS INPROGRESS" then
|
HiDefSkypeStatus-CallPoller.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.