{"id":19295399,"url":"https://github.com/jsit/omnifocus-3-applescript-guide","last_synced_at":"2025-02-24T00:40:42.388Z","repository":{"id":71934913,"uuid":"151629067","full_name":"jsit/omnifocus-3-applescript-guide","owner":"jsit","description":"OmniFocus 3 AppleScript Guide","archived":false,"fork":false,"pushed_at":"2020-02-25T06:25:02.000Z","size":1,"stargazers_count":91,"open_issues_count":1,"forks_count":8,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-01-05T21:23:45.695Z","etag":null,"topics":["applescript","omnifocus","omnifocus3"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-04T20:03:14.000Z","updated_at":"2024-12-04T15:01:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d2a7e10-f79a-40e0-8c4b-c95f40b22399","html_url":"https://github.com/jsit/omnifocus-3-applescript-guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fomnifocus-3-applescript-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fomnifocus-3-applescript-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fomnifocus-3-applescript-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fomnifocus-3-applescript-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsit","download_url":"https://codeload.github.com/jsit/omnifocus-3-applescript-guide/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400290,"owners_count":19795330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["applescript","omnifocus","omnifocus3"],"created_at":"2024-11-09T22:43:22.899Z","updated_at":"2025-02-24T00:40:42.358Z","avatar_url":"https://github.com/jsit.png","language":null,"readme":"# OmniFocus 3 AppleScript Guide\n\n\n## Index of classes, properties, commands, qualifiers\n\n### Classes\n- task[s]\n- project[s]\n- folder[s]\n- tag[s]\n\n\n### Properties\n\n#### Task properties\n- name (string)\n- note (string)\n- primary tag (tag) (creation only)\n- tags (list of tags) (modification only)\n- flagged (boolean)\n- completed (boolean)\n- creation date (date)\n- start date (date)\n- defer date (date)\n- due date (date)\n\n#### Project properties\n- name (string)\n- note (string)\n- singleton action holder (boolean)\n- sequential (boolean)\n- creation date (date)\n- start date (date)\n- defer date (date)\n- due date (date)\n\n#### Folder properties\n- name (string)\n\n#### Tag properties\n- name (string)\n\n\n### Commands\n\nBelow, \"task\" means the literal string \"task\". \"tasktype\" means a reference to\nan object of class \"task\".\n\n- `make new (task|tag|project|folder) with properties {property:value[, property:value...]}`\n- `move (tasktype|tagtype|projecttype|foldertype) to (end of (tags|projects|folders) of (tagtype|projecttype|foldertype))`\n- `remove tagtype from tags of tasktype`\n- `add tagtype to tags of tasktype`\n- `set (tasktype|projecttype) to the parent task of tasktype`\n\n\n### Qualifiers\n- `(task|tag|project|folder) whose name is string`\n- `(task|tag|project|folder) where its name is string`\n- `flattened (tasks|tags|projects|folders)`: retrieve matching items without\nhaving to locate them within a specific hierarchy\n\n\n## Examples\n\n```AppleScript\ntell front document of application \"OmniFocus\"\n\n  -- Create a new project and save to variable `theProject`\n  set theProject to make new project with properties {name:\"Project Name\", singleton action holder: true}\n\n  -- Create a new task and save to variable `theTask`\n  set theTask to make new inbox task with properties {name:\"Task Name\", note:\"Task Note\"}\n\n  -- Move `theTask` inside of `theProject`\n  move theTask to end of tasks of theProject\n\n  -- Create a new task directly inside `theProject`\n  tell theProject\n    set theOtherTask to make new task with properties {name:\"Other Task Name\", note:\"Other Task Note\"}\n  end tell\n\n  -- Create a new tag\n  set newTag to make new tag with properties {name:\"New Tag\"}\n\n  -- Add `newTag` to `theOthertask`\n  add newTag to tags of theOtherTask\n\n  -- Create a new task with `newTag` in Inbox\n  set theThirdTask to make new inbox task with properties {name:\"A Third Task\", primary tag:newTag}\n\nend tell\n```\n\n\n## References\n\nThe following scripts and guides were an enormous help and this guide wouldn't\nbe possible without them:\n\n- https://gist.github.com/matellis/69954d4212b1a36c13aad3de4e75187e#file-things3-to-of3-applescript-L350\n- https://gist.github.com/AnilRh/8a0b372ffa9c4a68d6eb\n- https://colterreed.com/create-omnifocus-project-templates-with-applescript/\n- https://github.com/anastasiuspernat/The-Hit-List-2-Omnifocus/blob/30e4671eb2d926ff3789e9c8bacb95c60a478e4d/%5BTHL%5D%20to%20%5BOmnifocus%5D.applescript\n- https://github.com/jacobsilver2/OmniFocusDailyProjectTemplate/blob/4de69359de5aa249988361473439581c8b57d77e/dailyOmniRoutine.applescript\n- https://github.com/ryuiwasaki/Omnifocus2-AppleScript/blob/2ccd777c33ad15867f6fdf5f72db8459802a44d5/Omnifocus2SyncEvernote.applescript\n- https://github.com/Rahlir/OmniFocusScripts/blob/3f3ef4b0502d7e32aece5ead423d0f195778619d/Scripts/omnifocuslib.applescript\n- https://gist.github.com/aderyabin/1465125\n- https://gist.github.com/cdzombak/11265615\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fomnifocus-3-applescript-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsit%2Fomnifocus-3-applescript-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fomnifocus-3-applescript-guide/lists"}