Luis over at Happy Apps is heavy in to the FlexTime habit, and asked me if I would consider adding a feature such that routines would automatically start as soon as they are opened. Why? Because he uses his FlexTime “break reminder” routine every day, and has FlexTime set to open up as part of his “Login Items” list. But he still has to remember to click the “Run” button before he gets started with his work.
I think some kind of “auto-start” idea is good, but I suggested a workaround that should work in the mean-time. By using FlexTime’s scripting mechanism to both open and start a routine, anybody can build a “routine starter” applet and keep it handy for this type of use.
Open Script Editor, and paste in the following script:
tell application "FlexTime" open "/Users/daniel/Documents/Break Reminder.flextime" as POSIX file set running of document 1 to true end tell
You’ll have to edit the path to match the routine you want to run, of course. Now select “Save As” from the File menu in Script Editor, and select “Application Bundle” from the File Format popup menu:
Save the script application wherever you like. For instance, you could just pop it into your applications folder.
Now open up Login Items from the “Accounts” pane in System Preferences. Drag the resulting script application right into the list:
Now whenever you login in to your computer, the selected routine will start automatically. If you want to start several routines at once, just edit the script to add more “open” and “set running of document 1” lines.
This same technique can be used to add “Routine Starters” to the sidebar in the Finder, or the Dock. Just drag the resulting script application in and it will always be available to you.