But, some life events take place farther in the future than one year from the current date. This is acceptable, and I expect that most of my due dates will fall within this range. Preparing a list of the dates for a year takes roughly a second on my 2.8GHz Core II Duo. There are some problems with this approach, one of the more important for me is: preparing the list can be time-consuming, so I need to start on some date, and calculate for some defined duration. I expect that a future version of the script could set the string directly into the beginning of a DTP document’s title, preserving anything that’s already in the title.) I zero-pad the month and day and use tabs at the end of the string to provide a fake form of justification, so that things hopefully line up in the titles of documents returned by a Smart Group’s action. (I use space, hyphen, space in the string to aid readability. “, DOW” is a comma, a space, and the first three letters of the day of the week of the date represented in the string, and.“YYYY - MM - DD” is a string composed of the 4-digit year, " - " (space, hyphen, space), the 2-digit (zero-padded) month, " - " (space, hyphen, space), and the 2-digit (zero-padded) day of the month,.is a unique character that a Smart Group can use to detect a dated to-do item, followed by a space,.It puts up a list of dates, and if one is selected, copies a string to the clipboard, of the format: I worked all day to create the below AppleScript. And, I’m an AppleScript novice, and always bang my head bloody against the wall when trying to use it.īut, OK. But, AppleScript has no date picker control, and its input facilities are primitive and there’s no way to create forms, so I can’t build my own date picker. But, this is a pain, and the scheme fails if I make a typing error and don’t catch it. In a document’s title, I can insert a unique character and a properly-formatted “date” string that sorts properly (“YYYY-MM-DD”). But to do this, I must identify the to-do documents uniquely (which would be a snap if there were a “Due Date” attribute and support for it in Smart Groups, but I repeat myself…). So, in lieu of a Due Date attribute for documents, I am left to putting the due date in the subject of a document, and using a Smart Group to filter these documents out of the collection. I could, I suppose, add “ToDo” in the text of a document, but having to change two attributes makes this scheme fail if I forget to change one.) (I think I read somewhere that one could reset the Date Created, but this will not work for my purpose, and besides, is not enough to uniquely identify a to-do item. have these to-do documents sort properly (in ascending and descending date order) in a list, andĪll without having to manually paw through the to-do documents themselves.Īs far as I can tell, DTP does not have any date field that can be used for assigning a Due Date to a document.relate them to other documents in a database,.I do not yet own DTP, but I’m very interested in it because of its ability to reveal relationships between documents.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |