AppleScript to change task dates
Hello folks,
I am trying to author a simple AppleScript to change the dates of either a single or selection of tasks. The following is what I use for OO3 but the same script will not work due to differences in the dictionary and I have not yet been able to figure out the parity set of commands. All ideas and advice are welcome - thanks. [CODE]tell application "OmniOutliner Professional" set taskDate to (current date) set taskList to selected rows of front document repeat with theTask in taskList set value of cell "Start Date" of theTask to taskDate end repeat --taskDate end tell[/CODE] |
OK - I got this to work for a single task but would I would like to have it work for a selection of tasks - is this possible?
Also, please let me know if you think the following can be cleaned up and made more efficient. Thanks. [CODE]tell application "OmniFocus" set dateToday to (current date) set theTask to the value of the first item of the selected tree of the content of document window 1 of document 1 set start date of theTask to dateToday end tell[/CODE] |
All times are GMT -8. The time now is 07:09 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.