Específicamente me gustaría adjuntar una carpeta acción que podría pasar para el centro de Notificaciones un tiempo de alerta que se apaga después de 60 días... posible?
Respuestas
¿Demasiados anuncios?Habilitar at
:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
Añadir un Ejecutar el Shell Script de acción que utiliza la terminal-notificador para mostrar una notificación:
at 2 months <<< 'terminal-notifier -message "some message" -title "title"'
Reemplace terminal-notifier
con /Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier
si la he instalado por la descarga del paquete de la aplicación.
now+5 <<< 'say a'
ejecutar un comando en cinco segundos. Usted puede obtener una lista de comandos programados con atq
y eliminarlos con atrm
. Ver man at
para obtener más información.
OK, así que resulta que he encontrado la respuesta a este. Sólo necesitaba editar mi existentes adjunto de applescript. Y aquí es con el formato correcto en el lugar:
property myList : "Invoices"
on adding folder items to this_folder after receiving these_items
repeat with this_item in these_items
set fName to name of (info for this_item)
if fName does not start with "." then -- avoid new todo for .dsstore files or something similar
set startTime to (current date) + 60 * days
tell application "Reminders"
make new reminder at beginning of list myList with properties {name:fName, due date:startTime, remind me date:startTime}
end tell
end if
end repeat
end adding folder items to