Lo siguiente AppleScript script tomará el Recordatorios en Recordatorios y hacer un nuevo Nota en Formato de la lista de control en Notas . Esto se puede ejecutar en Script Editor o guardado como un AppleScript aplicación .
-
Nota: Como este script utiliza Guiones de interfaz de usuario cuando se ejecuta desde Script Editor , debe añadirse a Preferencias del sistema > Seguridad & Privacidad > Accesibilidad con el fin de ejecute . Como AppleScript aplicación La aplicación tendría que ser añadida.
tell application "Reminders" to activate
delay 0.1
tell application "System Events" to keystroke "c" using {command down}
delay 0.1
set theNotesChecklist to ""
set theReminders to get the clipboard as string
repeat with thisParagraph in paragraphs of text of theReminders
try
set theNotesChecklist to theNotesChecklist & text 5 thru -1 of thisParagraph & return
delay 0.1
end try
end repeat
tell application "Notes" to activate
tell application "System Events"
keystroke "n" using {command down}
keystroke "l" using {shift down, command down}
delay 0.5
keystroke theNotesChecklist
delay 0.1
key code 51 -- # Delete - Deletes the last 'return' typed.
end tell
Lo anterior script asume que el Recordatorios en Recordatorios no tienen ninguna información asociada. En otras palabras, aparte de la Name
propiedad ningún otro asociado propiedades se han fijado. Si otros propiedades se han establecido, añada el if
declaración a la repeat
bucle como se muestra en el código abajo:
repeat with thisParagraph in paragraphs of text of theReminders
try
if thisParagraph starts with "[ ]" then
set theNotesChecklist to theNotesChecklist & text 5 thru -1 of thisParagraph & return
delay 0.1
end if
end try
end repeat
Nota: Con Guiones de interfaz de usuario el valor de la delay
comandos puede ser necesario cambiar en su sistema y o adicional delay
comandos añadidos según el caso.
0 votos
Estoy buscando una respuesta.
0 votos
@user3439894 Sí, esa solución me serviría sin duda.