@uipath/delegate-sdk 1.203.1 → 1.203.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -3
- package/dist/index.mjs +2 -2
- package/dist/skills/business-analysis/SKILL.md +729 -0
- package/dist/skills/business-analysis/as-is-capture.md +444 -0
- package/dist/skills/business-analysis/assets/progress.yaml +19 -0
- package/dist/skills/business-analysis/assets/task-list.md +34 -0
- package/dist/skills/business-analysis/automation-hub-publishing.md +47 -0
- package/dist/skills/business-analysis/bpmn-to-be-design.md +274 -0
- package/dist/skills/business-analysis/case-to-be-design.md +223 -0
- package/dist/skills/business-analysis/diagram-authoring.md +224 -0
- package/dist/skills/business-analysis/industry-gaps.md +134 -0
- package/dist/skills/business-analysis/interview-spine.md +297 -0
- package/dist/skills/business-analysis/locales/de.json +54 -0
- package/dist/skills/business-analysis/locales/en.json +54 -0
- package/dist/skills/business-analysis/locales/es-MX.json +54 -0
- package/dist/skills/business-analysis/locales/es.json +54 -0
- package/dist/skills/business-analysis/locales/fr.json +54 -0
- package/dist/skills/business-analysis/locales/ja.json +54 -0
- package/dist/skills/business-analysis/locales/ko.json +54 -0
- package/dist/skills/business-analysis/locales/pt-BR.json +54 -0
- package/dist/skills/business-analysis/locales/pt.json +54 -0
- package/dist/skills/business-analysis/locales/ro.json +54 -0
- package/dist/skills/business-analysis/locales/tr.json +54 -0
- package/dist/skills/business-analysis/locales/zh-CN.json +54 -0
- package/dist/skills/business-analysis/locales/zh-TW.json +54 -0
- package/dist/skills/business-analysis/pdd-generation.md +204 -0
- package/dist/skills/business-analysis/pdd-template.md +562 -0
- package/dist/skills/business-analysis/progress-presentation.json +13 -0
- package/dist/skills/business-analysis/recording-first.md +19 -0
- package/dist/skills/business-analysis/recording-processing.md +152 -0
- package/dist/skills/business-analysis/references/automation-hub-open-api.md +57 -0
- package/dist/skills/business-analysis/references/case-definition-spec.md +90 -0
- package/dist/skills/business-analysis/references/case-design-patterns/loan-origination-spec.md +86 -0
- package/dist/skills/business-analysis/references/component-type-mapping.md +52 -0
- package/dist/skills/business-analysis/references/uipath-products/case-management-schema.md +62 -0
- package/dist/skills/business-analysis/references/uipath-products/maestro-case-framework.md +65 -0
- package/dist/skills/business-analysis/references/uipath-products/maestro-case-management.md +49 -0
- package/dist/skills/business-analysis/research-offer.md +104 -0
- package/dist/skills/business-analysis/research-pass.md +149 -0
- package/dist/skills/business-analysis/scripts/assemble-pdd.ps1 +294 -0
- package/dist/skills/business-analysis/scripts/assemble-pdd.sh +453 -0
- package/dist/skills/business-analysis/scripts/check-phase-ready.ps1 +72 -0
- package/dist/skills/business-analysis/scripts/check-phase-ready.sh +98 -0
- package/dist/skills/business-analysis/scripts/lint-diagram.ps1 +524 -0
- package/dist/skills/business-analysis/scripts/lint-diagram.sh +519 -0
- package/dist/skills/business-analysis/scripts/stamp-pages.ps1 +363 -0
- package/dist/skills/business-analysis/scripts/stamp-pages.sh +360 -0
- package/dist/skills/business-analysis/to-be-design.md +199 -0
- package/dist/skills/confluence/SKILL.md +386 -0
- package/dist/skills/doc-coauthoring/SKILL.md +295 -0
- package/dist/skills/excel-architect/SKILL.macos.md +161 -0
- package/dist/skills/excel-architect/SKILL.md +180 -0
- package/dist/skills/excel-architect/SKILL.windows.md +61 -0
- package/dist/skills/excel-architect/archetypes/01-financial-model-advanced.md +332 -0
- package/dist/skills/excel-architect/archetypes/01-financial-model.md +248 -0
- package/dist/skills/excel-architect/archetypes/02-data-analysis.md +171 -0
- package/dist/skills/excel-architect/archetypes/03-tracking-dashboard.md +160 -0
- package/dist/skills/excel-architect/archetypes/04-project-planning.md +193 -0
- package/dist/skills/excel-architect/archetypes/05-simple-table.md +111 -0
- package/dist/skills/excel-architect/building.md +279 -0
- package/dist/skills/excel-architect/create.md +64 -0
- package/dist/skills/excel-architect/data-and-formulas.md +186 -0
- package/dist/skills/excel-architect/generator.md +272 -0
- package/dist/skills/excel-architect/macos/scripts/add-data-validation.applescript +242 -0
- package/dist/skills/excel-architect/macos/scripts/append-rows.applescript +310 -0
- package/dist/skills/excel-architect/macos/scripts/apply-conditional-format.applescript +565 -0
- package/dist/skills/excel-architect/macos/scripts/autofit-columns.applescript +79 -0
- package/dist/skills/excel-architect/macos/scripts/benchmark.sh +135 -0
- package/dist/skills/excel-architect/macos/scripts/check-compile.sh +30 -0
- package/dist/skills/excel-architect/macos/scripts/clear-range.applescript +152 -0
- package/dist/skills/excel-architect/macos/scripts/copy-paste.applescript +179 -0
- package/dist/skills/excel-architect/macos/scripts/create-chart.applescript +531 -0
- package/dist/skills/excel-architect/macos/scripts/create-pivot.applescript +443 -0
- package/dist/skills/excel-architect/macos/scripts/create-sheets.applescript +264 -0
- package/dist/skills/excel-architect/macos/scripts/create-workbook.applescript +92 -0
- package/dist/skills/excel-architect/macos/scripts/delete-chart.applescript +105 -0
- package/dist/skills/excel-architect/macos/scripts/delete-sheet.applescript +127 -0
- package/dist/skills/excel-architect/macos/scripts/filter-data.applescript +213 -0
- package/dist/skills/excel-architect/macos/scripts/find-replace.applescript +238 -0
- package/dist/skills/excel-architect/macos/scripts/format-range.applescript +531 -0
- package/dist/skills/excel-architect/macos/scripts/freeze-panes.applescript +133 -0
- package/dist/skills/excel-architect/macos/scripts/get-current-file.applescript +24 -0
- package/dist/skills/excel-architect/macos/scripts/get-sheet-dimensions.applescript +115 -0
- package/dist/skills/excel-architect/macos/scripts/health-check.applescript +704 -0
- package/dist/skills/excel-architect/macos/scripts/list-open-workbooks.applescript +80 -0
- package/dist/skills/excel-architect/macos/scripts/maximize-window.applescript +47 -0
- package/dist/skills/excel-architect/macos/scripts/merge-cells.applescript +227 -0
- package/dist/skills/excel-architect/macos/scripts/open-workbook.applescript +139 -0
- package/dist/skills/excel-architect/macos/scripts/read-range.applescript +267 -0
- package/dist/skills/excel-architect/macos/scripts/rename-sheet.applescript +231 -0
- package/dist/skills/excel-architect/macos/scripts/select-sheet.applescript +133 -0
- package/dist/skills/excel-architect/macos/scripts/set-tab-color.applescript +109 -0
- package/dist/skills/excel-architect/macos/scripts/sort-data.applescript +136 -0
- package/dist/skills/excel-architect/macos/scripts/undo.applescript +59 -0
- package/dist/skills/excel-architect/macos/scripts/workbook-lifecycle.applescript +149 -0
- package/dist/skills/excel-architect/macos/scripts/write-formula.applescript +225 -0
- package/dist/skills/excel-architect/macos/scripts/write-range.applescript +351 -0
- package/dist/skills/excel-architect/reference/api/advanced.md +381 -0
- package/dist/skills/excel-architect/reference/api/basic.md +747 -0
- package/dist/skills/excel-architect/reference/guides.md +348 -0
- package/dist/skills/excel-architect/reference/repair.md +174 -0
- package/dist/skills/excel-architect/reference/troubleshooting.md +46 -0
- package/dist/skills/excel-architect/scripting.md +266 -0
- package/dist/skills/excel-architect/styling-and-features.md +433 -0
- package/dist/skills/excel-architect/windows/api/composites.md +337 -0
- package/dist/skills/excel-architect/windows/api/scripting.md +139 -0
- package/dist/skills/excel-architect/windows/examples/level-1-workflows.md +485 -0
- package/dist/skills/excel-architect/windows/examples/level-2-advanced.md +690 -0
- package/dist/skills/excel-architect/windows/examples/level-3-scripting.md +337 -0
- package/dist/skills/github/SKILL.md +446 -0
- package/dist/skills/github/recipes/add-comment.md +85 -0
- package/dist/skills/github/recipes/check-pr-status.md +122 -0
- package/dist/skills/github/recipes/compare-branches.md +79 -0
- package/dist/skills/github/recipes/create-issue.md +103 -0
- package/dist/skills/github/recipes/create-pr.md +97 -0
- package/dist/skills/github/recipes/get-file-contents.md +76 -0
- package/dist/skills/github/recipes/get-last-commit.md +128 -0
- package/dist/skills/github/recipes/list-my-open-prs.md +105 -0
- package/dist/skills/github/recipes/list-recent-commits.md +84 -0
- package/dist/skills/github/recipes/search-issues.md +115 -0
- package/dist/skills/google-workspace/SKILL.md +217 -0
- package/dist/skills/google-workspace/services/calendar.md +311 -0
- package/dist/skills/google-workspace/services/docs.md +426 -0
- package/dist/skills/google-workspace/services/drive.md +504 -0
- package/dist/skills/google-workspace/services/gmail.md +466 -0
- package/dist/skills/google-workspace/services/sheets.md +370 -0
- package/dist/skills/internal-comms/SKILL.md +35 -0
- package/dist/skills/internal-comms/examples/3p-updates.md +47 -0
- package/dist/skills/internal-comms/examples/company-newsletter.md +65 -0
- package/dist/skills/internal-comms/examples/faq-answers.md +30 -0
- package/dist/skills/internal-comms/examples/general-comms.md +15 -0
- package/dist/skills/jira/SKILL.md +397 -0
- package/dist/skills/jira/recipes/add-comment.md +123 -0
- package/dist/skills/jira/recipes/assign-issue.md +157 -0
- package/dist/skills/jira/recipes/create-issue.md +274 -0
- package/dist/skills/jira/recipes/get-issue-details.md +154 -0
- package/dist/skills/jira/recipes/list-projects.md +151 -0
- package/dist/skills/jira/recipes/my-issues.md +180 -0
- package/dist/skills/jira/recipes/search-issues.md +215 -0
- package/dist/skills/jira/recipes/transition-issue.md +154 -0
- package/dist/skills/jira/recipes/troubleshooting.md +387 -0
- package/dist/skills/knowledge-base/SKILL.md +289 -0
- package/dist/skills/media-tools/SKILL.md +204 -0
- package/dist/skills/media-tools/references/encode-runbook.md +24 -0
- package/dist/skills/media-tools/references/resolve-binaries.md +88 -0
- package/dist/skills/media-tools/scripts/macos/ff-launch.sh +22 -0
- package/dist/skills/media-tools/scripts/macos/ff-poll.sh +10 -0
- package/dist/skills/media-tools/scripts/windows/ff-launch.ps1 +34 -0
- package/dist/skills/media-tools/scripts/windows/ff-poll.ps1 +20 -0
- package/dist/skills/office-download/SKILL.md +161 -0
- package/dist/skills/outlook-365/SKILL.macos.md +331 -0
- package/dist/skills/outlook-365/SKILL.md +171 -0
- package/dist/skills/outlook-365/SKILL.windows.md +124 -0
- package/dist/skills/outlook-365/api/bulk-email-operations.md +178 -0
- package/dist/skills/outlook-365/api/check-availability.md +87 -0
- package/dist/skills/outlook-365/api/create-inbox-rule.md +182 -0
- package/dist/skills/outlook-365/api/download-attachments.md +149 -0
- package/dist/skills/outlook-365/api/find-and-email-contact.md +185 -0
- package/dist/skills/outlook-365/api/manage-calendar-events.md +189 -0
- package/dist/skills/outlook-365/api/organize-with-folders.md +178 -0
- package/dist/skills/outlook-365/api/reply-to-conversation.md +68 -0
- package/dist/skills/outlook-365/api/schedule-meeting.md +73 -0
- package/dist/skills/outlook-365/api/search-and-read-email.md +93 -0
- package/dist/skills/outlook-365/api/send-email-with-attachments.md +94 -0
- package/dist/skills/outlook-365/api/send-email.md +396 -0
- package/dist/skills/outlook-365/api/set-out-of-office.md +196 -0
- package/dist/skills/outlook-365/macos/scripts/bulk-operations.applescript +429 -0
- package/dist/skills/outlook-365/macos/scripts/calendar.applescript +642 -0
- package/dist/skills/outlook-365/macos/scripts/contacts.applescript +635 -0
- package/dist/skills/outlook-365/macos/scripts/helpers.applescript +227 -0
- package/dist/skills/outlook-365/macos/scripts/read-emails.applescript +299 -0
- package/dist/skills/outlook-365/macos/scripts/search-emails.applescript +339 -0
- package/dist/skills/outlook-365/macos/scripts/send-email.applescript +245 -0
- package/dist/skills/outlook-365/uia/BASIC_OPERATIONS.md +278 -0
- package/dist/skills/outlook-365/uia/CALENDAR_OPERATIONS.md +386 -0
- package/dist/skills/outlook-365/uia/COMPOSE_EMAIL.md +426 -0
- package/dist/skills/outlook-365/uia/README.md +75 -0
- package/dist/skills/outlook-365/windows/com/bulk-operations.ps1 +241 -0
- package/dist/skills/outlook-365/windows/com/calendar.ps1 +227 -0
- package/dist/skills/outlook-365/windows/com/contacts.ps1 +270 -0
- package/dist/skills/outlook-365/windows/com/helpers.ps1 +158 -0
- package/dist/skills/outlook-365/windows/com/read-emails.ps1 +115 -0
- package/dist/skills/outlook-365/windows/com/search-emails.ps1 +141 -0
- package/dist/skills/outlook-365/windows/com/send-email.ps1 +121 -0
- package/dist/skills/pdf-architect/SKILL.md +640 -0
- package/dist/skills/powerpoint-architect/SKILL.macos.md +271 -0
- package/dist/skills/powerpoint-architect/SKILL.md +853 -0
- package/dist/skills/powerpoint-architect/SKILL.windows.md +458 -0
- package/dist/skills/powerpoint-architect/custom_themes.md +141 -0
- package/dist/skills/powerpoint-architect/editing-guide.md +424 -0
- package/dist/skills/powerpoint-architect/generator-reference.md +668 -0
- package/dist/skills/powerpoint-architect/images-guide.md +207 -0
- package/dist/skills/powerpoint-architect/issue-fix-mapping.md +768 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-html-to-slide.applescript +389 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-slide.applescript +255 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-speaker-notes.applescript +132 -0
- package/dist/skills/powerpoint-architect/macos/scripts/add-text.applescript +245 -0
- package/dist/skills/powerpoint-architect/macos/scripts/apply-slide-layout.applescript +80 -0
- package/dist/skills/powerpoint-architect/macos/scripts/apply-theme.applescript +122 -0
- package/dist/skills/powerpoint-architect/macos/scripts/autofit-placeholders.applescript +62 -0
- package/dist/skills/powerpoint-architect/macos/scripts/close-presentation.applescript +24 -0
- package/dist/skills/powerpoint-architect/macos/scripts/copy-slides.applescript +303 -0
- package/dist/skills/powerpoint-architect/macos/scripts/create-chart-with-data.applescript +305 -0
- package/dist/skills/powerpoint-architect/macos/scripts/create-with-theme.applescript +56 -0
- package/dist/skills/powerpoint-architect/macos/scripts/delete-slides.applescript +137 -0
- package/dist/skills/powerpoint-architect/macos/scripts/export-presentation.applescript +100 -0
- package/dist/skills/powerpoint-architect/macos/scripts/extract-slide-data.applescript +138 -0
- package/dist/skills/powerpoint-architect/macos/scripts/format-shape.applescript +192 -0
- package/dist/skills/powerpoint-architect/macos/scripts/format-slide-content.applescript +336 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-current-slide-number.applescript +38 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-file-path.applescript +94 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-layout-elements.applescript +141 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-layouts.applescript +58 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-opened-files.applescript +50 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-presentation-info.applescript +150 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-recent-files.applescript +68 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-slide-count.applescript +37 -0
- package/dist/skills/powerpoint-architect/macos/scripts/get-slide-info.applescript +105 -0
- package/dist/skills/powerpoint-architect/macos/scripts/health-check.applescript +690 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-shape.applescript +188 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-table.applescript +112 -0
- package/dist/skills/powerpoint-architect/macos/scripts/insert-text-box.applescript +225 -0
- package/dist/skills/powerpoint-architect/macos/scripts/manage-image.applescript +486 -0
- package/dist/skills/powerpoint-architect/macos/scripts/maximize-window.applescript +48 -0
- package/dist/skills/powerpoint-architect/macos/scripts/navigate-to-slide.applescript +84 -0
- package/dist/skills/powerpoint-architect/macos/scripts/open-presentation.applescript +38 -0
- package/dist/skills/powerpoint-architect/macos/scripts/reorder-slides.applescript +106 -0
- package/dist/skills/powerpoint-architect/macos/scripts/replace-text.applescript +193 -0
- package/dist/skills/powerpoint-architect/macos/scripts/save-presentation.applescript +54 -0
- package/dist/skills/powerpoint-architect/macos/scripts/set-animation.applescript +203 -0
- package/dist/skills/powerpoint-architect/macos/scripts/set-transition.applescript +130 -0
- package/dist/skills/powerpoint-architect/visual-styling-guide.md +206 -0
- package/dist/skills/powerpoint-architect/windows/api/advanced.md +317 -0
- package/dist/skills/powerpoint-architect/windows/api/basic.md +392 -0
- package/dist/skills/powerpoint-architect/windows/examples/10-slide-presentation.md +140 -0
- package/dist/skills/powerpoint-architect/windows/examples/custom-theme-workflow.md +219 -0
- package/dist/skills/powerpoint-architect/windows/examples/level-1-workflows.md +531 -0
- package/dist/skills/powerpoint-architect/windows/examples/level-2-scripting.md +239 -0
- package/dist/skills/powerpoint-architect/windows/scripts/create-with-theme.ps1 +81 -0
- package/dist/skills/project-task-list/SKILL.md +174 -0
- package/dist/skills/slack-operation/SKILL.md +97 -0
- package/dist/skills/slack-operation/api/advanced-api/GUIDE.md +277 -0
- package/dist/skills/slack-operation/api/search-and-read/EXAMPLE.md +75 -0
- package/dist/skills/slack-operation/api/search-and-read/GUIDE.md +108 -0
- package/dist/skills/slack-operation/api/send-message/EXAMPLE.md +112 -0
- package/dist/skills/slack-operation/api/send-message/GUIDE.md +63 -0
- package/dist/skills/slack-operation/api/share-files/EXAMPLE.md +94 -0
- package/dist/skills/slack-operation/api/share-files/GUIDE.md +63 -0
- package/dist/skills/slack-operation/ui/desktop-automation/GUIDE.md +55 -0
- package/dist/skills/system-diagnostics/SKILL.md +263 -0
- package/dist/skills/teams-operation/SKILL.md +79 -0
- package/dist/skills/teams-operation/api/advanced-api/GUIDE.md +234 -0
- package/dist/skills/teams-operation/api/meetings/EXAMPLE.md +63 -0
- package/dist/skills/teams-operation/api/meetings/GUIDE.md +52 -0
- package/dist/skills/teams-operation/api/search-and-read/EXAMPLE.md +72 -0
- package/dist/skills/teams-operation/api/search-and-read/GUIDE.md +54 -0
- package/dist/skills/teams-operation/api/send-message/EXAMPLE.md +92 -0
- package/dist/skills/teams-operation/api/send-message/GUIDE.md +60 -0
- package/dist/skills/teams-operation/ui/desktop-automation/GUIDE.md +66 -0
- package/dist/skills/transcribe-media/SKILL.md +142 -0
- package/dist/skills/uipath-integrations/SKILL.md +370 -0
- package/dist/skills/uipath-integrations/reference/connectors.md +331 -0
- package/dist/skills/uipath-integrations/reference/endpoints.md +220 -0
- package/dist/skills/uipath-integrations/reference/errors.md +211 -0
- package/dist/skills/uipath-integrations/reference/metadata.md +317 -0
- package/dist/skills/uipath-integrations/reference/operations.md +297 -0
- package/dist/skills/uipath-orchestrator/SKILL.md +312 -0
- package/dist/skills/uipath-orchestrator/recipes/assets.md +282 -0
- package/dist/skills/uipath-orchestrator/recipes/audit-logs.md +215 -0
- package/dist/skills/uipath-orchestrator/recipes/buckets.md +205 -0
- package/dist/skills/uipath-orchestrator/recipes/jobs.md +286 -0
- package/dist/skills/uipath-orchestrator/recipes/list-folders.md +207 -0
- package/dist/skills/uipath-orchestrator/recipes/queue-items.md +292 -0
- package/dist/skills/uipath-orchestrator/recipes/queues.md +232 -0
- package/dist/skills/uipath-orchestrator/recipes/releases.md +212 -0
- package/dist/skills/uipath-orchestrator/recipes/robots-sessions.md +274 -0
- package/dist/skills/uipath-orchestrator/recipes/schedules.md +280 -0
- package/dist/skills/uipath-orchestrator/reference/endpoints.md +85 -0
- package/dist/skills/uipath-orchestrator/reference/schemas.md +153 -0
- package/dist/skills/uipath-taskautomation/SKILL.md +310 -0
- package/dist/skills/uipath-taskautomation/assets/CodedWorkflow.template.cs +98 -0
- package/dist/skills/uipath-taskautomation/assets/ExampleWorkflow.cs +146 -0
- package/dist/skills/uipath-taskautomation/references/action-activity-map.json +32 -0
- package/dist/skills/uipath-taskautomation/references/action-activity-map.md +44 -0
- package/dist/skills/uipath-taskautomation/references/app-profiles.md +63 -0
- package/dist/skills/uipath-taskautomation/references/automation-spec.md +88 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/before-after-hooks-template.md +115 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/codedworkflow-template.md +186 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/helper-utility-template.md +22 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/json-template.md +91 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/assets/testcase-template.md +92 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/cli-reference.md +249 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/codedworkflow-reference.md +275 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/coding-guidelines.md +229 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/inspect-package-guide.md +81 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/integration-service-guide.md +507 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/operations-guide.md +410 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/coded/third-party-packages-guide.md +67 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/data-manipulation-guide.md +110 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/environment-setup.md +194 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/error-handling-guide.md +195 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/powershell-interop-guide.md +57 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure-guide.md +114 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/project-structure.md +126 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/uia-elements-interaction-guide.md +109 -0
- package/dist/skills/uipath-taskautomation/references/coded-reference/validation-guide.md +147 -0
- package/dist/skills/uipath-taskautomation/references/coded-workflow-authoring.md +219 -0
- package/dist/skills/uipath-taskautomation/references/profiling-output.md +80 -0
- package/dist/skills/uipath-taskautomation/references/reliability-guide.md +83 -0
- package/dist/skills/uipath-taskautomation/references/task-automation-cheatsheet.md +272 -0
- package/dist/skills/uipath-taskautomation/references/template-preflight.md +17 -0
- package/dist/skills/uipath-workflow-documenter/SKILL.md +430 -0
- package/dist/skills/uipath-workflow-documenter/layouts/pdd-template.md +265 -0
- package/dist/skills/uipath-workflow-documenter/routines/from-orchestrator.md +11 -0
- package/dist/skills/uipath-workflow-documenter/routines/from-workflow.md +11 -0
- package/dist/skills/word-architect/SKILL.macos.md +147 -0
- package/dist/skills/word-architect/SKILL.md +502 -0
- package/dist/skills/word-architect/SKILL.windows.md +55 -0
- package/dist/skills/word-architect/api/advanced.md +522 -0
- package/dist/skills/word-architect/api/basic.md +378 -0
- package/dist/skills/word-architect/api/expert.md +302 -0
- package/dist/skills/word-architect/generation.md +308 -0
- package/dist/skills/word-architect/layouts/01-professional.md +168 -0
- package/dist/skills/word-architect/layouts/02-educational-kids.md +354 -0
- package/dist/skills/word-architect/layouts/03-academic.md +83 -0
- package/dist/skills/word-architect/layouts/04-creative.md +242 -0
- package/dist/skills/word-architect/layouts/05-operational.md +94 -0
- package/dist/skills/word-architect/macos/scripts/apply-heading-style.applescript +215 -0
- package/dist/skills/word-architect/macos/scripts/apply-style.applescript +272 -0
- package/dist/skills/word-architect/macos/scripts/autofit-tables.applescript +53 -0
- package/dist/skills/word-architect/macos/scripts/close-document.applescript +287 -0
- package/dist/skills/word-architect/macos/scripts/create-chart-with-data.applescript +379 -0
- package/dist/skills/word-architect/macos/scripts/create-chart.applescript +191 -0
- package/dist/skills/word-architect/macos/scripts/delete-selection.applescript +223 -0
- package/dist/skills/word-architect/macos/scripts/export-document.applescript +167 -0
- package/dist/skills/word-architect/macos/scripts/extract-table.applescript +168 -0
- package/dist/skills/word-architect/macos/scripts/find-by-style.applescript +173 -0
- package/dist/skills/word-architect/macos/scripts/find-text.applescript +199 -0
- package/dist/skills/word-architect/macos/scripts/format-table.applescript +234 -0
- package/dist/skills/word-architect/macos/scripts/format-text.applescript +431 -0
- package/dist/skills/word-architect/macos/scripts/get-document-properties.applescript +95 -0
- package/dist/skills/word-architect/macos/scripts/get-document-structure.applescript +371 -0
- package/dist/skills/word-architect/macos/scripts/get-header-footer-text.applescript +106 -0
- package/dist/skills/word-architect/macos/scripts/get-images.applescript +166 -0
- package/dist/skills/word-architect/macos/scripts/get-opened-files.applescript +103 -0
- package/dist/skills/word-architect/macos/scripts/get-paragraph-bounds.applescript +133 -0
- package/dist/skills/word-architect/macos/scripts/get-paragraph-format.applescript +134 -0
- package/dist/skills/word-architect/macos/scripts/get-recent-files.applescript +82 -0
- package/dist/skills/word-architect/macos/scripts/get-styled-text.applescript +256 -0
- package/dist/skills/word-architect/macos/scripts/get-tables.applescript +126 -0
- package/dist/skills/word-architect/macos/scripts/get-text-formatting.applescript +224 -0
- package/dist/skills/word-architect/macos/scripts/get-text.applescript +383 -0
- package/dist/skills/word-architect/macos/scripts/get-theme-colors.applescript +123 -0
- package/dist/skills/word-architect/macos/scripts/health-check.applescript +606 -0
- package/dist/skills/word-architect/macos/scripts/insert-cover-page.applescript +77 -0
- package/dist/skills/word-architect/macos/scripts/insert-header-footer.applescript +87 -0
- package/dist/skills/word-architect/macos/scripts/insert-horizontal-line.applescript +112 -0
- package/dist/skills/word-architect/macos/scripts/insert-html.applescript +440 -0
- package/dist/skills/word-architect/macos/scripts/insert-hyperlink.applescript +191 -0
- package/dist/skills/word-architect/macos/scripts/insert-image.applescript +320 -0
- package/dist/skills/word-architect/macos/scripts/insert-list.applescript +317 -0
- package/dist/skills/word-architect/macos/scripts/insert-pagebreak.applescript +181 -0
- package/dist/skills/word-architect/macos/scripts/insert-smartart.applescript +104 -0
- package/dist/skills/word-architect/macos/scripts/insert-table.applescript +238 -0
- package/dist/skills/word-architect/macos/scripts/insert-text.applescript +677 -0
- package/dist/skills/word-architect/macos/scripts/insert-textbox.applescript +261 -0
- package/dist/skills/word-architect/macos/scripts/maximize-window.applescript +67 -0
- package/dist/skills/word-architect/macos/scripts/normalize-formatting.applescript +56 -0
- package/dist/skills/word-architect/macos/scripts/open-document.applescript +222 -0
- package/dist/skills/word-architect/macos/scripts/replace-text.applescript +390 -0
- package/dist/skills/word-architect/macos/scripts/save-document.applescript +230 -0
- package/dist/skills/word-architect/macos/scripts/select-range.applescript +142 -0
- package/dist/skills/word-architect/macos/scripts/set-document-properties.applescript +195 -0
- package/dist/skills/word-architect/macos/scripts/set-page-layout.applescript +273 -0
- package/dist/skills/word-architect/macos/scripts/set-theme-colors.applescript +264 -0
- package/dist/skills/word-architect/macos/scripts/undo-redo.applescript +61 -0
- package/dist/skills/word-architect/macos/scripts/update-toc.applescript +112 -0
- package/dist/skills/word-architect/reference/formatting.md +119 -0
- package/dist/skills/word-architect/reference/html-layouts/01-executive-summary-box.md +36 -0
- package/dist/skills/word-architect/reference/html-layouts/02-kpi-summary-table.md +68 -0
- package/dist/skills/word-architect/reference/html-layouts/03-comparison-table.md +63 -0
- package/dist/skills/word-architect/reference/html-layouts/04-pros-cons-table.md +86 -0
- package/dist/skills/word-architect/reference/html-layouts/05-timeline-table.md +114 -0
- package/dist/skills/word-architect/reference/html-layouts/06-raci-matrix.md +95 -0
- package/dist/skills/word-architect/reference/html-layouts/07-data-table-alternating.md +84 -0
- package/dist/skills/word-architect/reference/html-layouts/08-callout-box.md +102 -0
- package/dist/skills/word-architect/reference/html-layouts/09-vertical-milestone.md +100 -0
- package/dist/skills/word-architect/reference/quality-assurance.md +102 -0
- package/dist/skills/word-architect/reference/tables.md +62 -0
- package/dist/skills/word-architect/reference/tracked-changes.md +34 -0
- package/dist/skills/word-architect/reference/uia-fallback.md +231 -0
- package/dist/skills/word-architect/reference/visual-elements.md +82 -0
- package/dist/skills/word-architect/windows/scripts/apply-heading-style.ps1 +190 -0
- package/dist/skills/word-architect/windows/scripts/autofit-tables.ps1 +64 -0
- package/dist/skills/word-architect/windows/scripts/create-chart-with-data.ps1 +133 -0
- package/dist/skills/word-architect/windows/scripts/create-chart.ps1 +73 -0
- package/dist/skills/word-architect/windows/scripts/export-document.ps1 +86 -0
- package/dist/skills/word-architect/windows/scripts/get-current-file.ps1 +27 -0
- package/dist/skills/word-architect/windows/scripts/insert-cover-page.ps1 +79 -0
- package/dist/skills/word-architect/windows/scripts/insert-horizontal-line.ps1 +74 -0
- package/dist/skills/word-architect/windows/scripts/insert-image.ps1 +98 -0
- package/dist/skills/word-architect/windows/scripts/insert-smartart.ps1 +118 -0
- package/dist/skills/word-architect/windows/scripts/insert-text-box.ps1 +90 -0
- package/dist/skills/word-architect/windows/scripts/normalize-formatting.ps1 +63 -0
- package/package.json +5 -4
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
-- Calendar Operations via Outlook AppleScript
|
|
2
|
+
-- Requires: Classic Outlook for Mac (Microsoft Outlook.app) running
|
|
3
|
+
-- Usage: osascript calendar.applescript "action" [params...]
|
|
4
|
+
-- Actions:
|
|
5
|
+
-- "List" - List events in date range
|
|
6
|
+
-- "Create" - Create an appointment
|
|
7
|
+
-- "CreateMeeting" - Create meeting with attendees
|
|
8
|
+
-- "Delete" - Delete event by subject search
|
|
9
|
+
-- "Update" - Update event properties
|
|
10
|
+
--
|
|
11
|
+
-- Parameters by action:
|
|
12
|
+
-- List: action startDate endDate
|
|
13
|
+
-- Create: action subject start end location body allDay reminderMinutes durationMinutes showAs
|
|
14
|
+
-- CreateMeeting: action subject start end location body attendees(semicolon-sep) durationMinutes
|
|
15
|
+
-- Delete: action searchSubject
|
|
16
|
+
-- Update: action searchSubject newSubject newStart newLocation newBody
|
|
17
|
+
|
|
18
|
+
on run argv
|
|
19
|
+
set action to "List"
|
|
20
|
+
if (count of argv) > 0 then set action to item 1 of argv
|
|
21
|
+
|
|
22
|
+
-- Validate Outlook is running
|
|
23
|
+
tell application "System Events"
|
|
24
|
+
if not ((name of processes) contains "Microsoft Outlook") then
|
|
25
|
+
return "{\"success\": false, \"error\": \"Microsoft Outlook is not running\"}"
|
|
26
|
+
end if
|
|
27
|
+
end tell
|
|
28
|
+
|
|
29
|
+
if action is "List" then
|
|
30
|
+
return my listEvents(argv)
|
|
31
|
+
else if action is "Create" then
|
|
32
|
+
return my createEvent(argv)
|
|
33
|
+
else if action is "CreateMeeting" then
|
|
34
|
+
return my createMeeting(argv)
|
|
35
|
+
else if action is "Delete" then
|
|
36
|
+
return my deleteEvent(argv)
|
|
37
|
+
else if action is "Update" then
|
|
38
|
+
return my updateEvent(argv)
|
|
39
|
+
else
|
|
40
|
+
return "{\"success\": false, \"error\": \"Unknown action: " & action & ". Use: List, Create, CreateMeeting, Delete, Update\"}"
|
|
41
|
+
end if
|
|
42
|
+
end run
|
|
43
|
+
|
|
44
|
+
-- List calendar events in a date range
|
|
45
|
+
on listEvents(argv)
|
|
46
|
+
-- Parse dates (default: today to +7 days)
|
|
47
|
+
set startDateStr to ""
|
|
48
|
+
set endDateStr to ""
|
|
49
|
+
if (count of argv) > 1 then set startDateStr to item 2 of argv
|
|
50
|
+
if (count of argv) > 2 then set endDateStr to item 3 of argv
|
|
51
|
+
|
|
52
|
+
-- Set default date range
|
|
53
|
+
set startDate to current date
|
|
54
|
+
set time of startDate to 0
|
|
55
|
+
set endDate to startDate + (7 * days)
|
|
56
|
+
|
|
57
|
+
if startDateStr is not "" then
|
|
58
|
+
try
|
|
59
|
+
set startDate to my parseDate(startDateStr)
|
|
60
|
+
end try
|
|
61
|
+
end if
|
|
62
|
+
if endDateStr is not "" then
|
|
63
|
+
try
|
|
64
|
+
set endDate to my parseDate(endDateStr)
|
|
65
|
+
-- Set end date to end of day
|
|
66
|
+
set time of endDate to 86399
|
|
67
|
+
end try
|
|
68
|
+
end if
|
|
69
|
+
|
|
70
|
+
try
|
|
71
|
+
tell application "Microsoft Outlook"
|
|
72
|
+
-- Get the default calendar
|
|
73
|
+
-- Try multiple ways to get the calendar
|
|
74
|
+
set defaultCalendar to missing value
|
|
75
|
+
try
|
|
76
|
+
set defaultCalendar to default calendar
|
|
77
|
+
end try
|
|
78
|
+
if defaultCalendar is missing value then
|
|
79
|
+
try
|
|
80
|
+
set defaultCalendar to calendar "Calendar"
|
|
81
|
+
end try
|
|
82
|
+
end if
|
|
83
|
+
if defaultCalendar is missing value then
|
|
84
|
+
try
|
|
85
|
+
set defaultCalendar to first calendar
|
|
86
|
+
end try
|
|
87
|
+
end if
|
|
88
|
+
if defaultCalendar is missing value then
|
|
89
|
+
return "{\"success\": false, \"error\": \"No calendar found. Create a calendar in Outlook first.\"}"
|
|
90
|
+
end if
|
|
91
|
+
|
|
92
|
+
-- Get events in the date range
|
|
93
|
+
set calEvents to every calendar event of defaultCalendar whose start time >= startDate and start time <= endDate
|
|
94
|
+
|
|
95
|
+
set eventsJson to "["
|
|
96
|
+
set eventCount to 0
|
|
97
|
+
|
|
98
|
+
repeat with evt in calEvents
|
|
99
|
+
if eventCount > 0 then set eventsJson to eventsJson & ", "
|
|
100
|
+
|
|
101
|
+
set evtSubject to subject of evt
|
|
102
|
+
set evtStart to my formatDate(start time of evt)
|
|
103
|
+
set evtEnd to my formatDate(end time of evt)
|
|
104
|
+
set evtLocation to ""
|
|
105
|
+
try
|
|
106
|
+
set rawLoc to location of evt
|
|
107
|
+
if rawLoc is not missing value then set evtLocation to rawLoc as text
|
|
108
|
+
end try
|
|
109
|
+
set evtOrganizer to ""
|
|
110
|
+
try
|
|
111
|
+
set rawOrg to organizer of evt
|
|
112
|
+
if rawOrg is not missing value then set evtOrganizer to rawOrg as text
|
|
113
|
+
end try
|
|
114
|
+
set evtAllDay to false
|
|
115
|
+
try
|
|
116
|
+
set evtAllDay to (all day flag of evt)
|
|
117
|
+
end try
|
|
118
|
+
set evtRecurring to false
|
|
119
|
+
try
|
|
120
|
+
set evtRecurring to (is recurring of evt)
|
|
121
|
+
end try
|
|
122
|
+
set evtIsMeeting to false
|
|
123
|
+
try
|
|
124
|
+
set attendeeCount to count of attendees of evt
|
|
125
|
+
if attendeeCount > 0 then set evtIsMeeting to true
|
|
126
|
+
end try
|
|
127
|
+
set evtBusyStatus to "Busy"
|
|
128
|
+
try
|
|
129
|
+
set rawBusy to free busy status of evt
|
|
130
|
+
if rawBusy is free then
|
|
131
|
+
set evtBusyStatus to "Free"
|
|
132
|
+
else if rawBusy is tentative then
|
|
133
|
+
set evtBusyStatus to "Tentative"
|
|
134
|
+
else if rawBusy is busy then
|
|
135
|
+
set evtBusyStatus to "Busy"
|
|
136
|
+
else if rawBusy is out of office then
|
|
137
|
+
set evtBusyStatus to "OOO"
|
|
138
|
+
end if
|
|
139
|
+
end try
|
|
140
|
+
|
|
141
|
+
set eventObj to "{\"subject\": " & my jsonString(evtSubject)
|
|
142
|
+
set eventObj to eventObj & ", \"start\": \"" & evtStart & "\""
|
|
143
|
+
set eventObj to eventObj & ", \"end\": \"" & evtEnd & "\""
|
|
144
|
+
set eventObj to eventObj & ", \"location\": " & my jsonString(evtLocation)
|
|
145
|
+
set eventObj to eventObj & ", \"organizer\": " & my jsonString(evtOrganizer)
|
|
146
|
+
set eventObj to eventObj & ", \"isAllDay\": " & evtAllDay
|
|
147
|
+
set eventObj to eventObj & ", \"isMeeting\": " & evtIsMeeting
|
|
148
|
+
set eventObj to eventObj & ", \"busyStatus\": " & my jsonString(evtBusyStatus)
|
|
149
|
+
set eventObj to eventObj & ", \"isRecurring\": " & evtRecurring
|
|
150
|
+
set eventObj to eventObj & "}"
|
|
151
|
+
set eventsJson to eventsJson & eventObj
|
|
152
|
+
set eventCount to eventCount + 1
|
|
153
|
+
end repeat
|
|
154
|
+
|
|
155
|
+
set eventsJson to eventsJson & "]"
|
|
156
|
+
|
|
157
|
+
set response to "{\"success\": true"
|
|
158
|
+
set response to response & ", \"dateRange\": {\"start\": \"" & my formatDate(startDate) & "\", \"end\": \"" & my formatDate(endDate) & "\"}"
|
|
159
|
+
set response to response & ", \"eventCount\": " & eventCount
|
|
160
|
+
set response to response & ", \"events\": " & eventsJson
|
|
161
|
+
set response to response & "}"
|
|
162
|
+
return response
|
|
163
|
+
end tell
|
|
164
|
+
on error errMsg
|
|
165
|
+
return "{\"success\": false, \"error\": " & my jsonString(errMsg) & "}"
|
|
166
|
+
end try
|
|
167
|
+
end listEvents
|
|
168
|
+
|
|
169
|
+
-- Create a calendar event (appointment)
|
|
170
|
+
on createEvent(argv)
|
|
171
|
+
if (count of argv) < 4 then
|
|
172
|
+
return "{\"success\": false, \"error\": \"Required: action, subject, start, end\"}"
|
|
173
|
+
end if
|
|
174
|
+
|
|
175
|
+
set evtSubject to item 2 of argv
|
|
176
|
+
set evtStartStr to item 3 of argv
|
|
177
|
+
set evtEndStr to item 4 of argv
|
|
178
|
+
set evtLocation to ""
|
|
179
|
+
set evtBody to ""
|
|
180
|
+
set evtAllDay to false
|
|
181
|
+
set evtReminder to 15
|
|
182
|
+
set evtDurationMin to 60
|
|
183
|
+
set evtShowAs to "Busy"
|
|
184
|
+
|
|
185
|
+
if (count of argv) > 4 then set evtLocation to item 5 of argv
|
|
186
|
+
if (count of argv) > 5 then set evtBody to item 6 of argv
|
|
187
|
+
if (count of argv) > 6 then
|
|
188
|
+
if item 7 of argv is "true" then set evtAllDay to true
|
|
189
|
+
end if
|
|
190
|
+
if (count of argv) > 7 then
|
|
191
|
+
try
|
|
192
|
+
set evtReminder to (item 8 of argv) as integer
|
|
193
|
+
end try
|
|
194
|
+
end if
|
|
195
|
+
if (count of argv) > 8 then
|
|
196
|
+
try
|
|
197
|
+
set evtDurationMin to (item 9 of argv) as integer
|
|
198
|
+
end try
|
|
199
|
+
end if
|
|
200
|
+
if (count of argv) > 9 then set evtShowAs to item 10 of argv
|
|
201
|
+
|
|
202
|
+
try
|
|
203
|
+
set evtStart to my parseDateTime(evtStartStr)
|
|
204
|
+
on error
|
|
205
|
+
return "{\"success\": false, \"error\": \"Invalid start date format. Use YYYY-MM-DD HH:MM\"}"
|
|
206
|
+
end try
|
|
207
|
+
|
|
208
|
+
-- If end time is empty or same as start, use DurationMinutes
|
|
209
|
+
set evtEnd to missing value
|
|
210
|
+
if evtEndStr is not "" then
|
|
211
|
+
try
|
|
212
|
+
set evtEnd to my parseDateTime(evtEndStr)
|
|
213
|
+
end try
|
|
214
|
+
end if
|
|
215
|
+
if evtEnd is missing value then
|
|
216
|
+
set evtEnd to evtStart + (evtDurationMin * 60)
|
|
217
|
+
end if
|
|
218
|
+
|
|
219
|
+
try
|
|
220
|
+
tell application "Microsoft Outlook"
|
|
221
|
+
-- Try multiple ways to get the calendar
|
|
222
|
+
set defaultCalendar to missing value
|
|
223
|
+
try
|
|
224
|
+
set defaultCalendar to default calendar
|
|
225
|
+
end try
|
|
226
|
+
if defaultCalendar is missing value then
|
|
227
|
+
try
|
|
228
|
+
set defaultCalendar to calendar "Calendar"
|
|
229
|
+
end try
|
|
230
|
+
end if
|
|
231
|
+
if defaultCalendar is missing value then
|
|
232
|
+
try
|
|
233
|
+
set defaultCalendar to first calendar
|
|
234
|
+
end try
|
|
235
|
+
end if
|
|
236
|
+
if defaultCalendar is missing value then
|
|
237
|
+
return "{\"success\": false, \"error\": \"No calendar found. Create a calendar in Outlook first.\"}"
|
|
238
|
+
end if
|
|
239
|
+
|
|
240
|
+
if evtAllDay then
|
|
241
|
+
set newEvent to make new calendar event at defaultCalendar with properties {subject:evtSubject, start time:evtStart, end time:evtEnd, all day flag:true}
|
|
242
|
+
else
|
|
243
|
+
set newEvent to make new calendar event at defaultCalendar with properties {subject:evtSubject, start time:evtStart, end time:evtEnd}
|
|
244
|
+
end if
|
|
245
|
+
|
|
246
|
+
if evtLocation is not "" then set location of newEvent to evtLocation
|
|
247
|
+
if evtBody is not "" then set content of newEvent to evtBody
|
|
248
|
+
|
|
249
|
+
-- Set reminder
|
|
250
|
+
set has reminder of newEvent to true
|
|
251
|
+
set reminder time of newEvent to evtReminder
|
|
252
|
+
|
|
253
|
+
-- Set busy status (ShowAs)
|
|
254
|
+
try
|
|
255
|
+
if evtShowAs is "Free" then
|
|
256
|
+
set free busy status of newEvent to free
|
|
257
|
+
else if evtShowAs is "Tentative" then
|
|
258
|
+
set free busy status of newEvent to tentative
|
|
259
|
+
else if evtShowAs is "OutOfOffice" then
|
|
260
|
+
set free busy status of newEvent to out of office
|
|
261
|
+
else
|
|
262
|
+
set free busy status of newEvent to busy
|
|
263
|
+
end if
|
|
264
|
+
end try
|
|
265
|
+
|
|
266
|
+
set response to "{\"success\": true, \"action\": \"created\""
|
|
267
|
+
set response to response & ", \"appointment\": {\"subject\": " & my jsonString(evtSubject)
|
|
268
|
+
set response to response & ", \"start\": \"" & my formatDate(evtStart) & "\""
|
|
269
|
+
set response to response & ", \"end\": \"" & my formatDate(evtEnd) & "\""
|
|
270
|
+
set response to response & ", \"location\": " & my jsonString(evtLocation) & "}}"
|
|
271
|
+
return response
|
|
272
|
+
end tell
|
|
273
|
+
on error errMsg
|
|
274
|
+
return "{\"success\": false, \"error\": " & my jsonString(errMsg) & "}"
|
|
275
|
+
end try
|
|
276
|
+
end createEvent
|
|
277
|
+
|
|
278
|
+
-- Create a meeting with attendees
|
|
279
|
+
on createMeeting(argv)
|
|
280
|
+
if (count of argv) < 4 then
|
|
281
|
+
return "{\"success\": false, \"error\": \"Required: action, subject, start, end\"}"
|
|
282
|
+
end if
|
|
283
|
+
|
|
284
|
+
set mtgSubject to item 2 of argv
|
|
285
|
+
set mtgStartStr to item 3 of argv
|
|
286
|
+
set mtgEndStr to item 4 of argv
|
|
287
|
+
set mtgLocation to ""
|
|
288
|
+
set mtgBody to ""
|
|
289
|
+
set mtgAttendees to ""
|
|
290
|
+
set mtgDurationMin to 60
|
|
291
|
+
|
|
292
|
+
if (count of argv) > 4 then set mtgLocation to item 5 of argv
|
|
293
|
+
if (count of argv) > 5 then set mtgBody to item 6 of argv
|
|
294
|
+
if (count of argv) > 6 then set mtgAttendees to item 7 of argv
|
|
295
|
+
if (count of argv) > 7 then
|
|
296
|
+
try
|
|
297
|
+
set mtgDurationMin to (item 8 of argv) as integer
|
|
298
|
+
end try
|
|
299
|
+
end if
|
|
300
|
+
|
|
301
|
+
if mtgAttendees is "" then
|
|
302
|
+
return "{\"success\": false, \"error\": \"Attendees are required for a meeting (semicolon-separated emails)\"}"
|
|
303
|
+
end if
|
|
304
|
+
|
|
305
|
+
try
|
|
306
|
+
set mtgStart to my parseDateTime(mtgStartStr)
|
|
307
|
+
on error
|
|
308
|
+
return "{\"success\": false, \"error\": \"Invalid start date format. Use YYYY-MM-DD HH:MM\"}"
|
|
309
|
+
end try
|
|
310
|
+
|
|
311
|
+
-- If end time is empty, use DurationMinutes
|
|
312
|
+
set mtgEnd to missing value
|
|
313
|
+
if mtgEndStr is not "" then
|
|
314
|
+
try
|
|
315
|
+
set mtgEnd to my parseDateTime(mtgEndStr)
|
|
316
|
+
end try
|
|
317
|
+
end if
|
|
318
|
+
if mtgEnd is missing value then
|
|
319
|
+
set mtgEnd to mtgStart + (mtgDurationMin * 60)
|
|
320
|
+
end if
|
|
321
|
+
|
|
322
|
+
try
|
|
323
|
+
tell application "Microsoft Outlook"
|
|
324
|
+
-- Try multiple ways to get the calendar
|
|
325
|
+
set defaultCalendar to missing value
|
|
326
|
+
try
|
|
327
|
+
set defaultCalendar to default calendar
|
|
328
|
+
end try
|
|
329
|
+
if defaultCalendar is missing value then
|
|
330
|
+
try
|
|
331
|
+
set defaultCalendar to calendar "Calendar"
|
|
332
|
+
end try
|
|
333
|
+
end if
|
|
334
|
+
if defaultCalendar is missing value then
|
|
335
|
+
try
|
|
336
|
+
set defaultCalendar to first calendar
|
|
337
|
+
end try
|
|
338
|
+
end if
|
|
339
|
+
if defaultCalendar is missing value then
|
|
340
|
+
return "{\"success\": false, \"error\": \"No calendar found. Create a calendar in Outlook first.\"}"
|
|
341
|
+
end if
|
|
342
|
+
|
|
343
|
+
set newMeeting to make new calendar event at defaultCalendar with properties {subject:mtgSubject, start time:mtgStart, end time:mtgEnd}
|
|
344
|
+
|
|
345
|
+
if mtgLocation is not "" then set location of newMeeting to mtgLocation
|
|
346
|
+
if mtgBody is not "" then set content of newMeeting to mtgBody
|
|
347
|
+
|
|
348
|
+
-- Add attendees
|
|
349
|
+
set AppleScript's text item delimiters to ";"
|
|
350
|
+
set attendeeList to text items of mtgAttendees
|
|
351
|
+
set AppleScript's text item delimiters to ""
|
|
352
|
+
|
|
353
|
+
set attendeeCount to 0
|
|
354
|
+
repeat with attendeeAddr in attendeeList
|
|
355
|
+
set trimmedAddr to my trimText(attendeeAddr)
|
|
356
|
+
if trimmedAddr is not "" then
|
|
357
|
+
make new required attendee of newMeeting with properties {email address:{address:trimmedAddr}}
|
|
358
|
+
set attendeeCount to attendeeCount + 1
|
|
359
|
+
end if
|
|
360
|
+
end repeat
|
|
361
|
+
|
|
362
|
+
-- Open the meeting window to allow sending invitations
|
|
363
|
+
open newMeeting
|
|
364
|
+
|
|
365
|
+
set response to "{\"success\": true, \"action\": \"meeting_created\""
|
|
366
|
+
set response to response & ", \"meeting\": {\"subject\": " & my jsonString(mtgSubject)
|
|
367
|
+
set response to response & ", \"start\": \"" & my formatDate(mtgStart) & "\""
|
|
368
|
+
set response to response & ", \"attendeeCount\": " & attendeeCount & "}}"
|
|
369
|
+
return response
|
|
370
|
+
end tell
|
|
371
|
+
on error errMsg
|
|
372
|
+
return "{\"success\": false, \"error\": " & my jsonString(errMsg) & "}"
|
|
373
|
+
end try
|
|
374
|
+
end createMeeting
|
|
375
|
+
|
|
376
|
+
-- Delete a calendar event by subject search
|
|
377
|
+
on deleteEvent(argv)
|
|
378
|
+
if (count of argv) < 2 then
|
|
379
|
+
return "{\"success\": false, \"error\": \"Required: action, searchSubject\"}"
|
|
380
|
+
end if
|
|
381
|
+
|
|
382
|
+
set searchSubject to item 2 of argv
|
|
383
|
+
set now to current date
|
|
384
|
+
|
|
385
|
+
try
|
|
386
|
+
tell application "Microsoft Outlook"
|
|
387
|
+
-- Try multiple ways to get the calendar
|
|
388
|
+
set defaultCalendar to missing value
|
|
389
|
+
try
|
|
390
|
+
set defaultCalendar to default calendar
|
|
391
|
+
end try
|
|
392
|
+
if defaultCalendar is missing value then
|
|
393
|
+
try
|
|
394
|
+
set defaultCalendar to calendar "Calendar"
|
|
395
|
+
end try
|
|
396
|
+
end if
|
|
397
|
+
if defaultCalendar is missing value then
|
|
398
|
+
try
|
|
399
|
+
set defaultCalendar to first calendar
|
|
400
|
+
end try
|
|
401
|
+
end if
|
|
402
|
+
if defaultCalendar is missing value then
|
|
403
|
+
return "{\"success\": false, \"error\": \"No calendar found. Create a calendar in Outlook first.\"}"
|
|
404
|
+
end if
|
|
405
|
+
set matchingEvents to (every calendar event of defaultCalendar whose subject contains searchSubject and start time >= now)
|
|
406
|
+
|
|
407
|
+
if (count of matchingEvents) = 0 then
|
|
408
|
+
return "{\"success\": false, \"error\": \"No future event found matching: " & searchSubject & "\"}"
|
|
409
|
+
end if
|
|
410
|
+
|
|
411
|
+
-- Delete the first matching future event
|
|
412
|
+
set targetEvent to item 1 of matchingEvents
|
|
413
|
+
set evtInfo to "{\"subject\": " & my jsonString(subject of targetEvent) & ", \"start\": \"" & my formatDate(start time of targetEvent) & "\"}"
|
|
414
|
+
delete targetEvent
|
|
415
|
+
|
|
416
|
+
return "{\"success\": true, \"action\": \"deleted\", \"event\": " & evtInfo & "}"
|
|
417
|
+
end tell
|
|
418
|
+
on error errMsg
|
|
419
|
+
return "{\"success\": false, \"error\": " & my jsonString(errMsg) & "}"
|
|
420
|
+
end try
|
|
421
|
+
end deleteEvent
|
|
422
|
+
|
|
423
|
+
-- Update a calendar event
|
|
424
|
+
on updateEvent(argv)
|
|
425
|
+
if (count of argv) < 2 then
|
|
426
|
+
return "{\"success\": false, \"error\": \"Required: action, searchSubject [newSubject] [newStart] [newLocation] [newBody]\"}"
|
|
427
|
+
end if
|
|
428
|
+
|
|
429
|
+
set searchSubject to item 2 of argv
|
|
430
|
+
set newSubject to ""
|
|
431
|
+
set newStart to ""
|
|
432
|
+
set newLocation to ""
|
|
433
|
+
set newBody to ""
|
|
434
|
+
|
|
435
|
+
if (count of argv) > 2 then set newSubject to item 3 of argv
|
|
436
|
+
if (count of argv) > 3 then set newStart to item 4 of argv
|
|
437
|
+
if (count of argv) > 4 then set newLocation to item 5 of argv
|
|
438
|
+
if (count of argv) > 5 then set newBody to item 6 of argv
|
|
439
|
+
|
|
440
|
+
set now to current date
|
|
441
|
+
|
|
442
|
+
try
|
|
443
|
+
tell application "Microsoft Outlook"
|
|
444
|
+
-- Try multiple ways to get the calendar
|
|
445
|
+
set defaultCalendar to missing value
|
|
446
|
+
try
|
|
447
|
+
set defaultCalendar to default calendar
|
|
448
|
+
end try
|
|
449
|
+
if defaultCalendar is missing value then
|
|
450
|
+
try
|
|
451
|
+
set defaultCalendar to calendar "Calendar"
|
|
452
|
+
end try
|
|
453
|
+
end if
|
|
454
|
+
if defaultCalendar is missing value then
|
|
455
|
+
try
|
|
456
|
+
set defaultCalendar to first calendar
|
|
457
|
+
end try
|
|
458
|
+
end if
|
|
459
|
+
if defaultCalendar is missing value then
|
|
460
|
+
return "{\"success\": false, \"error\": \"No calendar found. Create a calendar in Outlook first.\"}"
|
|
461
|
+
end if
|
|
462
|
+
set matchingEvents to (every calendar event of defaultCalendar whose subject contains searchSubject and start time >= now)
|
|
463
|
+
|
|
464
|
+
if (count of matchingEvents) = 0 then
|
|
465
|
+
return "{\"success\": false, \"error\": \"No future event found matching: " & searchSubject & "\"}"
|
|
466
|
+
end if
|
|
467
|
+
|
|
468
|
+
set targetEvent to item 1 of matchingEvents
|
|
469
|
+
set changesJson to "["
|
|
470
|
+
set changeCount to 0
|
|
471
|
+
|
|
472
|
+
if newSubject is not "" then
|
|
473
|
+
set subject of targetEvent to newSubject
|
|
474
|
+
if changeCount > 0 then set changesJson to changesJson & ", "
|
|
475
|
+
set changesJson to changesJson & "\"subject\""
|
|
476
|
+
set changeCount to changeCount + 1
|
|
477
|
+
end if
|
|
478
|
+
|
|
479
|
+
if newStart is not "" then
|
|
480
|
+
try
|
|
481
|
+
set parsedStart to my parseDateTime(newStart)
|
|
482
|
+
-- Preserve duration
|
|
483
|
+
set evtDuration to (end time of targetEvent) - (start time of targetEvent)
|
|
484
|
+
set start time of targetEvent to parsedStart
|
|
485
|
+
set end time of targetEvent to parsedStart + evtDuration
|
|
486
|
+
if changeCount > 0 then set changesJson to changesJson & ", "
|
|
487
|
+
set changesJson to changesJson & "\"time\""
|
|
488
|
+
set changeCount to changeCount + 1
|
|
489
|
+
end try
|
|
490
|
+
end if
|
|
491
|
+
|
|
492
|
+
if newLocation is not "" then
|
|
493
|
+
set location of targetEvent to newLocation
|
|
494
|
+
if changeCount > 0 then set changesJson to changesJson & ", "
|
|
495
|
+
set changesJson to changesJson & "\"location\""
|
|
496
|
+
set changeCount to changeCount + 1
|
|
497
|
+
end if
|
|
498
|
+
|
|
499
|
+
if newBody is not "" then
|
|
500
|
+
set content of targetEvent to newBody
|
|
501
|
+
if changeCount > 0 then set changesJson to changesJson & ", "
|
|
502
|
+
set changesJson to changesJson & "\"body\""
|
|
503
|
+
set changeCount to changeCount + 1
|
|
504
|
+
end if
|
|
505
|
+
|
|
506
|
+
set changesJson to changesJson & "]"
|
|
507
|
+
|
|
508
|
+
set response to "{\"success\": true, \"action\": \"updated\""
|
|
509
|
+
set response to response & ", \"changes\": " & changesJson
|
|
510
|
+
set response to response & ", \"event\": {\"subject\": " & my jsonString(subject of targetEvent)
|
|
511
|
+
set response to response & ", \"start\": \"" & my formatDate(start time of targetEvent) & "\"}}"
|
|
512
|
+
return response
|
|
513
|
+
end tell
|
|
514
|
+
on error errMsg
|
|
515
|
+
return "{\"success\": false, \"error\": " & my jsonString(errMsg) & "}"
|
|
516
|
+
end try
|
|
517
|
+
end updateEvent
|
|
518
|
+
|
|
519
|
+
-- Helper: Parse "YYYY-MM-DD" string to date (start of day)
|
|
520
|
+
on parseDate(dateStr)
|
|
521
|
+
set AppleScript's text item delimiters to "-"
|
|
522
|
+
set parts to text items of dateStr
|
|
523
|
+
set AppleScript's text item delimiters to ""
|
|
524
|
+
set theDate to current date
|
|
525
|
+
set year of theDate to (item 1 of parts) as integer
|
|
526
|
+
set month of theDate to (item 2 of parts) as integer
|
|
527
|
+
set day of theDate to (item 3 of parts) as integer
|
|
528
|
+
set hours of theDate to 0
|
|
529
|
+
set minutes of theDate to 0
|
|
530
|
+
set seconds of theDate to 0
|
|
531
|
+
return theDate
|
|
532
|
+
end parseDate
|
|
533
|
+
|
|
534
|
+
-- Helper: Parse "YYYY-MM-DD HH:MM" string to date
|
|
535
|
+
on parseDateTime(dateTimeStr)
|
|
536
|
+
set AppleScript's text item delimiters to " "
|
|
537
|
+
set dtParts to text items of dateTimeStr
|
|
538
|
+
set AppleScript's text item delimiters to ""
|
|
539
|
+
|
|
540
|
+
-- Parse date part
|
|
541
|
+
set AppleScript's text item delimiters to "-"
|
|
542
|
+
set dateParts to text items of (item 1 of dtParts)
|
|
543
|
+
set AppleScript's text item delimiters to ""
|
|
544
|
+
|
|
545
|
+
set theDate to current date
|
|
546
|
+
set year of theDate to (item 1 of dateParts) as integer
|
|
547
|
+
set month of theDate to (item 2 of dateParts) as integer
|
|
548
|
+
set day of theDate to (item 3 of dateParts) as integer
|
|
549
|
+
|
|
550
|
+
-- Parse time part
|
|
551
|
+
if (count of dtParts) > 1 then
|
|
552
|
+
set AppleScript's text item delimiters to ":"
|
|
553
|
+
set timeParts to text items of (item 2 of dtParts)
|
|
554
|
+
set AppleScript's text item delimiters to ""
|
|
555
|
+
set hours of theDate to (item 1 of timeParts) as integer
|
|
556
|
+
set minutes of theDate to (item 2 of timeParts) as integer
|
|
557
|
+
else
|
|
558
|
+
set hours of theDate to 0
|
|
559
|
+
set minutes of theDate to 0
|
|
560
|
+
end if
|
|
561
|
+
set seconds of theDate to 0
|
|
562
|
+
|
|
563
|
+
return theDate
|
|
564
|
+
end parseDateTime
|
|
565
|
+
|
|
566
|
+
-- Helper: Trim text
|
|
567
|
+
on trimText(theText)
|
|
568
|
+
set theText to theText as text
|
|
569
|
+
repeat while theText starts with " "
|
|
570
|
+
if length of theText is 1 then return ""
|
|
571
|
+
set theText to text 2 thru -1 of theText
|
|
572
|
+
end repeat
|
|
573
|
+
repeat while theText ends with " "
|
|
574
|
+
if length of theText is 1 then return ""
|
|
575
|
+
set theText to text 1 thru -2 of theText
|
|
576
|
+
end repeat
|
|
577
|
+
return theText
|
|
578
|
+
end trimText
|
|
579
|
+
|
|
580
|
+
-- Helper: JSON string escape
|
|
581
|
+
on jsonString(theText)
|
|
582
|
+
set theText to theText as text
|
|
583
|
+
set escapedText to my replaceText(theText, "\\", "\\\\")
|
|
584
|
+
set escapedText to my replaceText(escapedText, "\"", "\\\"")
|
|
585
|
+
set escapedText to my replaceText(escapedText, return, "\\n")
|
|
586
|
+
set escapedText to my replaceText(escapedText, linefeed, "\\n")
|
|
587
|
+
set escapedText to my replaceText(escapedText, tab, "\\t")
|
|
588
|
+
return "\"" & escapedText & "\""
|
|
589
|
+
end jsonString
|
|
590
|
+
|
|
591
|
+
-- Helper: Replace text
|
|
592
|
+
on replaceText(theText, searchStr, replaceStr)
|
|
593
|
+
set AppleScript's text item delimiters to searchStr
|
|
594
|
+
set theItems to text items of theText
|
|
595
|
+
set AppleScript's text item delimiters to replaceStr
|
|
596
|
+
set theText to theItems as text
|
|
597
|
+
set AppleScript's text item delimiters to ""
|
|
598
|
+
return theText
|
|
599
|
+
end replaceText
|
|
600
|
+
|
|
601
|
+
-- Helper: Format date as ISO string
|
|
602
|
+
on formatDate(theDate)
|
|
603
|
+
set y to year of theDate as text
|
|
604
|
+
set m to my padZero(month of theDate as integer)
|
|
605
|
+
set d to my padZero(day of theDate)
|
|
606
|
+
set h to my padZero(hours of theDate)
|
|
607
|
+
set mn to my padZero(minutes of theDate)
|
|
608
|
+
set s to my padZero(seconds of theDate)
|
|
609
|
+
return y & "-" & m & "-" & d & "T" & h & ":" & mn & ":" & s
|
|
610
|
+
end formatDate
|
|
611
|
+
|
|
612
|
+
-- Helper: Pad zero
|
|
613
|
+
on padZero(n)
|
|
614
|
+
if n < 10 then return "0" & (n as text)
|
|
615
|
+
return n as text
|
|
616
|
+
end padZero
|
|
617
|
+
|
|
618
|
+
-- QUICK EXAMPLES:
|
|
619
|
+
|
|
620
|
+
-- List today's events:
|
|
621
|
+
-- osascript calendar.applescript "List"
|
|
622
|
+
|
|
623
|
+
-- List events for a specific week:
|
|
624
|
+
-- osascript calendar.applescript "List" "2026-02-17" "2026-02-23"
|
|
625
|
+
|
|
626
|
+
-- Create appointment:
|
|
627
|
+
-- osascript calendar.applescript "Create" "Team Sync" "2026-02-21 10:00" "2026-02-21 11:00" "Conference Room" "Weekly sync"
|
|
628
|
+
|
|
629
|
+
-- Create all-day event:
|
|
630
|
+
-- osascript calendar.applescript "Create" "Company Holiday" "2026-03-01 00:00" "2026-03-01 23:59" "" "" "true"
|
|
631
|
+
|
|
632
|
+
-- Create meeting with attendees:
|
|
633
|
+
-- osascript calendar.applescript "CreateMeeting" "Project Review" "2026-02-21 14:00" "2026-02-21 15:00" "Room 1" "Review milestones" "alice@example.com;bob@example.com"
|
|
634
|
+
|
|
635
|
+
-- Delete event:
|
|
636
|
+
-- osascript calendar.applescript "Delete" "Team Sync"
|
|
637
|
+
|
|
638
|
+
-- Update event time:
|
|
639
|
+
-- osascript calendar.applescript "Update" "Team Sync" "" "2026-02-21 11:00"
|
|
640
|
+
|
|
641
|
+
-- Update event subject and location:
|
|
642
|
+
-- osascript calendar.applescript "Update" "Team Sync" "Team Standup" "" "Room 2"
|