Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Specifically I'd like to attach a folder action that would pass to the Notification center a timed alert that would go off after 60 days... possible?

share|improve this question
What sort of action are you trying to make happen? – Tony Tellez Oct 10 '12 at 0:23
I want to set a 60 day reminder automatically. So, 60 days after I save or move something to the folder (with the folder action attached), a reminder notification would pop up. – Josh Oct 10 '12 at 0:30

Enable at:

sudo launchctl load -w /System/Library/LaunchDaemons/

Add a Run Shell Script action that uses terminal-notifier to display a notification:

at 2 months <<< 'terminal-notifier -message "some message" -title "title"'

Replace terminal-notifier with /Applications/ if you've installed it by downloading the application bundle.

now+5 <<< 'say a' would run a command in five seconds. You can list scheduled commands with atq and remove them with atrm. See man at for more information.

share|improve this answer
Thanks for your reply but that's a bit advanced for me… Could you possibly break it down a little for me? – Josh Oct 11 '12 at 14:15
I edited the answer. You could also use launchd instead of folder actions. – user495470 Oct 11 '12 at 15:39
I got a little help and figured out how to modify an existing applescript I had already attached. I just needed to change a few terms. So the updated script now is: cont. – Josh Oct 12 '12 at 17:36
Oh way to save the formatting... – Josh Oct 12 '12 at 17:39

OK so as it turns out I found the answer to this. I just needed to edit my existing attached applescript. And here is is with the proper formatting in place:

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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.