text
stringlengths
0
15.7k
source
stringlengths
6
112
set noteColor to noteCol as text
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
if noteColor is "Destacado" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {65535, 65531, 2689, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
else if noteColor is "Resumen" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {52428, 65535, 26214, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
else if noteColor is "Citable/Definición" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {26214, 65535, 65483, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
else if noteColor is "Pregunta/Referencia" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {52428, 52428, 52428, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
else if noteColor is "Técnica/Método" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {65260, 52435, 26213, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
else if noteColor is "Resultado/Interpretación" then
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
set end of colorCodes to {26214, 65535, 26214, 65535}
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
return colorCodes
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
end chooseColor
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
if exists content record then
Execute Shell Script.applescript
my executeSource(text of think window 1 as string, true)
Execute Shell Script.applescript
else if (count of selection) is 1 then
Execute Shell Script.applescript
my triggered(item 1 of (the selection as list), true)
Execute Shell Script.applescript
on executeSource(this_source, displayError)
Execute Shell Script.applescript
if this_source is not missing value and length of this_source > 0 then
Execute Shell Script.applescript
do shell script this_source
Execute Shell Script.applescript
if displayError and error_number is not -128 then display alert "DEVONthink" message error_message as warning
Execute Shell Script.applescript
end executeSource
Execute Shell Script.applescript
on triggered(theRecord)
Execute Shell Script.applescript
my executeSource(plain text of theRecord, false)
Execute Shell Script.applescript
set carpetaDestino to quoted form of (POSIX path of (choose folder with prompt "Selecciona la carpeta de destino"))
secuenciaScreenshot.scpt
set tiempo to text returned of (display dialog "Ingresa el intervalo de segundos entre las capturas:" default answer "30")
secuenciaScreenshot.scpt
set repeticiones to text returned of (display dialog "Ingresa la cantidad de capturas que desas realizar:" default answer "10")
secuenciaScreenshot.scpt
repeat repeticiones times --Selecciona la cantidad de veces que desea realizar las capturas
secuenciaScreenshot.scpt
do shell script ("screencapture " & carpetaDestino & "captura-" & i & ".png") --Cambia "captura-" por el nombre con el que desées guardar la secuencia.
secuenciaScreenshot.scpt
delay tiempo -- El tiempo (en segundos) que espera entre cada captura
secuenciaScreenshot.scpt
display notification "Se realizaron: " & repeticiones & " capturas en " & carpetaDestino with title "Capturas guardadas"
secuenciaScreenshot.scpt
set strDatePlaceholder to "%DATE%"
pasteClip.applescript
set clipName to "scriptHeaderSteps.xml"
pasteClip.applescript
set clipDir to POSIX file (POSIX path of (path to me) & "/..") as text
pasteClip.applescript
set clipAlias to (clipDir & "Clips:" & clipName) as alias
pasteClip.applescript
set clipClass to "script_step"
pasteClip.applescript
set autoPasteClip to false
pasteClip.applescript
set strDateFull to do shell script "date '+%Y-%h-%d %Hh%M'"
pasteClip.applescript
set clipText to readFile(clipAlias)
pasteClip.applescript
set clipTextNew to searchReplaceText(clipText, strDatePlaceholder, strDateFull)
pasteClip.applescript
set clipTextFormatted to convertClip(clipTextNew, clipClass)
pasteClip.applescript
set the clipboard to clipTextFormatted
pasteClip.applescript
if autoPasteClip is true then paste()
pasteClip.applescript
tell application "System Events" to keystroke "v" using {command down}
pasteClip.applescript
on readFile(fileAlias)
pasteClip.applescript
if fileAlias = "" then
pasteClip.applescript
set theFile to choose file with prompt (localized string "chooseFile")
pasteClip.applescript
set theFile to fileAlias
pasteClip.applescript
open for access theFile
pasteClip.applescript
set fileText to (read theFile)
pasteClip.applescript
return fileText
pasteClip.applescript
display dialog errMsg & return & errNum
pasteClip.applescript
on convertClip(clipText, outputClass)
pasteClip.applescript
set temp_path to (path to temporary items as Unicode text) & "FMClip.dat"
pasteClip.applescript
set temp_ref to open for access file temp_path with write permission
pasteClip.applescript
set eof temp_ref to 0
pasteClip.applescript
write clipText to temp_ref as «class utf8»
pasteClip.applescript
close access temp_ref
pasteClip.applescript
if outputClass is "XMSC" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMSC»
pasteClip.applescript
else if outputClass is "XMSS" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMSS»
pasteClip.applescript
else if outputClass is "XMTB" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMTB»
pasteClip.applescript
else if outputClass is "XMFD" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMFD»
pasteClip.applescript
else if outputClass is "XMFN" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMFN»
pasteClip.applescript
else if outputClass is "XML2" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XML2»
pasteClip.applescript
else if outputClass is "XMLO" then
pasteClip.applescript
set clipTextFormatted to read file temp_path as «class XMLO»
pasteClip.applescript
return "Error: Snippet class not recognized"
pasteClip.applescript
return clipTextFormatted
pasteClip.applescript
end convertClip
pasteClip.applescript
key code 126
hundred_times_copy_paste_from_chrome_to_coteditor.scpt
keystroke "ac" using command down
hundred_times_copy_paste_from_chrome_to_coteditor.scpt
tell application "CotEditor"
hundred_times_copy_paste_from_chrome_to_coteditor.scpt
set _choisir to button returned of (display dialog "Choose a file to open when you regain an internet connection" with icon note buttons {"OK", "Nevermind"} default button "OK" giving up after 10)
when_connected.applescript
if _choisir is "OK" then
when_connected.applescript
set new_file to choose file with prompt "Choose file or application to open"
when_connected.applescript
display dialog "The script will remain active until you regain an internet connection"
when_connected.applescript
do shell script "ping -c 5 www.google.com"
when_connected.applescript
tell application "Finder" to open new_file
when_connected.applescript
set theNum to (get value of eachNumber)
AddCountryCode.scpt
if (theNum does not start with "+" and theNum does not start with "381" and theNum starts with "0") then
AddCountryCode.scpt
set value of eachNumber to "+381" & (get text 2 thru (length of theNum) of theNum)
AddCountryCode.scpt
use O : script "omnifocus"
Fixxxer.applescript
use OmniFocus : application "OmniFocus"
Fixxxer.applescript
property nagMePlease : false
Fixxxer.applescript
if nagMePlease then
Fixxxer.applescript
set question to display dialog "Do you want to remove all prefixes?"
Fixxxer.applescript
if button returned of question is "OK" then
Fixxxer.applescript
removePrefixes()
Fixxxer.applescript
on handle_string(argv)
Fixxxer.applescript
tell O to setPrefix(selectedItems(), argv)
Fixxxer.applescript
on removePrefixes()
Fixxxer.applescript
tell O to clearPrefixAll(selectedItems())
Fixxxer.applescript