@uipath/delegate-sdk 1.203.1 → 1.203.2
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 +722 -0
- package/dist/skills/business-analysis/as-is-capture.md +440 -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 +215 -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 +81 -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,264 @@
|
|
|
1
|
+
#!/usr/bin/osascript
|
|
2
|
+
(*
|
|
3
|
+
* Batch Create Excel Sheets
|
|
4
|
+
* Creates multiple sheets at once in the active workbook.
|
|
5
|
+
* Skips sheets that already exist (does not error).
|
|
6
|
+
*
|
|
7
|
+
* Usage: osascript create-sheets.applescript <sheetNames>
|
|
8
|
+
*
|
|
9
|
+
* Parameters:
|
|
10
|
+
* sheetNames - Comma-separated list of sheet names to create
|
|
11
|
+
*
|
|
12
|
+
* Examples:
|
|
13
|
+
* osascript create-sheets.applescript "Dashboard,Data,Charts"
|
|
14
|
+
* osascript create-sheets.applescript "Summary,Inputs,Model,Output"
|
|
15
|
+
*
|
|
16
|
+
* Output:
|
|
17
|
+
* {"success":true,"created":["Dashboard","Data","Charts"],"skipped":["Sheet1"],"total":3}
|
|
18
|
+
*
|
|
19
|
+
* Note: Excel must be open with an active workbook.
|
|
20
|
+
*)
|
|
21
|
+
|
|
22
|
+
on run argv
|
|
23
|
+
if (count of argv) < 1 then
|
|
24
|
+
return "Error: Please specify sheet names as a JSON array. Usage: osascript create-sheets.applescript '[\"Sheet1\",\"Sheet2\"]'"
|
|
25
|
+
end if
|
|
26
|
+
|
|
27
|
+
set sheetNamesStr to item 1 of argv as string
|
|
28
|
+
|
|
29
|
+
-- Parse names: prefer JSON array (handles commas in valid sheet names),
|
|
30
|
+
-- fall back to legacy comma-split for backwards compatibility.
|
|
31
|
+
-- Excel allows commas in sheet names ("Q1, 2024"), so comma-splitting
|
|
32
|
+
-- corrupted any name containing a comma.
|
|
33
|
+
set sheetNameList to {}
|
|
34
|
+
if sheetNamesStr starts with "[" then
|
|
35
|
+
try
|
|
36
|
+
-- Parse JSON via python and emit each name on its own line.
|
|
37
|
+
-- Lines are unambiguous (sheet names cannot contain newlines:
|
|
38
|
+
-- Excel rejects \n / \r in sheet names along with / \ ? * [ ] :).
|
|
39
|
+
set pyScript to "import json,sys" & linefeed & ¬
|
|
40
|
+
"names = json.loads(sys.argv[1])" & linefeed & ¬
|
|
41
|
+
"if not isinstance(names, list): raise SystemExit('Expected JSON array')" & linefeed & ¬
|
|
42
|
+
"for n in names: print(n)"
|
|
43
|
+
set parsedText to do shell script "python3 -c " & quoted form of pyScript & " " & quoted form of sheetNamesStr
|
|
44
|
+
set sheetNameList to paragraphs of parsedText
|
|
45
|
+
on error parseErr
|
|
46
|
+
return "Error: Failed to parse sheetNames JSON array: " & parseErr
|
|
47
|
+
end try
|
|
48
|
+
else
|
|
49
|
+
-- Legacy comma-separated input (commas in names will be split).
|
|
50
|
+
set AppleScript's text item delimiters to ","
|
|
51
|
+
set sheetNameList to text items of sheetNamesStr
|
|
52
|
+
set AppleScript's text item delimiters to ""
|
|
53
|
+
end if
|
|
54
|
+
|
|
55
|
+
-- Optional 2nd argv: workbookName. Targets a specific workbook so
|
|
56
|
+
-- create-sheets doesn't add sheets to whichever wb happens to be
|
|
57
|
+
-- active. Codex review round 12 / battery group F.
|
|
58
|
+
set workbookName to ""
|
|
59
|
+
if (count of argv) >= 2 then
|
|
60
|
+
set workbookName to item 2 of argv as string
|
|
61
|
+
end if
|
|
62
|
+
|
|
63
|
+
tell application "Microsoft Excel"
|
|
64
|
+
if not (exists active workbook) then
|
|
65
|
+
return "Error: No workbook is open in Excel."
|
|
66
|
+
end if
|
|
67
|
+
|
|
68
|
+
if workbookName is "" then
|
|
69
|
+
set wb to active workbook
|
|
70
|
+
else
|
|
71
|
+
try
|
|
72
|
+
set wb to workbook workbookName
|
|
73
|
+
on error
|
|
74
|
+
return "Error: Workbook \"" & workbookName & "\" not found."
|
|
75
|
+
end try
|
|
76
|
+
end if
|
|
77
|
+
|
|
78
|
+
-- Activate target wb so `make new worksheet at after last sheet of
|
|
79
|
+
-- wb` actually adds to it (Excel for Mac writes new objects to the
|
|
80
|
+
-- active workbook).
|
|
81
|
+
try
|
|
82
|
+
activate object wb
|
|
83
|
+
end try
|
|
84
|
+
|
|
85
|
+
set createdList to {}
|
|
86
|
+
set skippedList to {}
|
|
87
|
+
set errorList to {}
|
|
88
|
+
|
|
89
|
+
-- Record existing sheet names before creating new ones
|
|
90
|
+
-- so we only clean up default sheets that pre-existed (not user data sheets)
|
|
91
|
+
set preExistingSheets to name of every sheet of wb
|
|
92
|
+
|
|
93
|
+
repeat with rawName in sheetNameList
|
|
94
|
+
-- Trim whitespace from name
|
|
95
|
+
set sheetName to my trimText(rawName as string)
|
|
96
|
+
|
|
97
|
+
if sheetName is not "" then
|
|
98
|
+
-- Validate against Excel's sheet-name rules BEFORE creating
|
|
99
|
+
-- so callers get a specific reason instead of a silent skip.
|
|
100
|
+
-- Excel forbids: / \ ? * [ ] : and names longer than 31 chars.
|
|
101
|
+
set validationError to my validateSheetName(sheetName)
|
|
102
|
+
if validationError is not "" then
|
|
103
|
+
set end of errorList to "{\"name\":\"" & my escapeJSONString(sheetName) & "\",\"reason\":\"" & my escapeJSONString(validationError) & "\"}"
|
|
104
|
+
else
|
|
105
|
+
-- Check if sheet already exists
|
|
106
|
+
set sheetExists to false
|
|
107
|
+
try
|
|
108
|
+
set testSheet to worksheet sheetName of wb
|
|
109
|
+
set sheetExists to true
|
|
110
|
+
end try
|
|
111
|
+
|
|
112
|
+
if sheetExists then
|
|
113
|
+
set end of skippedList to sheetName
|
|
114
|
+
else
|
|
115
|
+
-- Create the sheet
|
|
116
|
+
try
|
|
117
|
+
set newSheet to make new worksheet at after last sheet of wb
|
|
118
|
+
set name of newSheet to sheetName
|
|
119
|
+
set end of createdList to sheetName
|
|
120
|
+
on error errMsg
|
|
121
|
+
set end of errorList to "{\"name\":\"" & my escapeJSONString(sheetName) & "\",\"reason\":\"" & my escapeJSONString(errMsg) & "\"}"
|
|
122
|
+
end try
|
|
123
|
+
end if
|
|
124
|
+
end if
|
|
125
|
+
end if
|
|
126
|
+
end repeat
|
|
127
|
+
|
|
128
|
+
-- Delete default empty sheets (Sheet1, Sheet2, etc.) that weren't requested
|
|
129
|
+
-- Only safe when we created at least one sheet (workbook needs ≥1 sheet)
|
|
130
|
+
-- IMPORTANT: Only delete sheets that (a) pre-existed before this operation,
|
|
131
|
+
-- (b) match the default naming pattern, (c) weren't requested, and (d) are empty.
|
|
132
|
+
-- This prevents accidentally deleting user data sheets.
|
|
133
|
+
set deletedList to {}
|
|
134
|
+
if (count of createdList) > 0 then
|
|
135
|
+
repeat with sName in preExistingSheets
|
|
136
|
+
set sn to sName as string
|
|
137
|
+
-- Match default sheet names: Sheet1, Sheet2, etc.
|
|
138
|
+
if sn starts with "Sheet" and length of sn ≤ 8 then
|
|
139
|
+
-- Check it's not in the requested list
|
|
140
|
+
set wasRequested to false
|
|
141
|
+
repeat with reqName in sheetNameList
|
|
142
|
+
if my trimText(reqName as string) = sn then
|
|
143
|
+
set wasRequested to true
|
|
144
|
+
exit repeat
|
|
145
|
+
end if
|
|
146
|
+
end repeat
|
|
147
|
+
if not wasRequested then
|
|
148
|
+
-- Only delete if the sheet is empty (used range is just A1 with no content)
|
|
149
|
+
try
|
|
150
|
+
set ws to worksheet sn of wb
|
|
151
|
+
set usedAddr to address of used range of ws
|
|
152
|
+
set cellVal to value of cell 1 of used range of ws
|
|
153
|
+
if usedAddr is "$A$1" and (cellVal is "" or cellVal is missing value) then
|
|
154
|
+
set display alerts to false
|
|
155
|
+
delete worksheet sn of wb
|
|
156
|
+
set display alerts to true
|
|
157
|
+
set end of deletedList to sn
|
|
158
|
+
end if
|
|
159
|
+
end try
|
|
160
|
+
end if
|
|
161
|
+
end if
|
|
162
|
+
end repeat
|
|
163
|
+
end if
|
|
164
|
+
|
|
165
|
+
-- Don't attempt to make the first created sheet "active". Excel for
|
|
166
|
+
-- Mac's `set active sheet to worksheet ... of active workbook` is a
|
|
167
|
+
-- documented silent no-op, so the call was misleading. Downstream
|
|
168
|
+
-- scripts that need a specific sheet should target the worksheet by
|
|
169
|
+
-- name directly, not rely on active-sheet state. Sheets created via
|
|
170
|
+
-- `make new worksheet at after last sheet of wb` already exist and
|
|
171
|
+
-- can be referenced by name from any subsequent call.
|
|
172
|
+
end tell
|
|
173
|
+
|
|
174
|
+
-- Build JSON response
|
|
175
|
+
set createdJSON to my listToJSONArray(createdList)
|
|
176
|
+
set skippedJSON to my listToJSONArray(skippedList)
|
|
177
|
+
set deletedJSON to my listToJSONArray(deletedList)
|
|
178
|
+
set totalCreated to (count of createdList)
|
|
179
|
+
set errorCount to (count of errorList)
|
|
180
|
+
|
|
181
|
+
-- success:false when no sheets were created AND validation/creation
|
|
182
|
+
-- errors were recorded , caller knows the request was rejected.
|
|
183
|
+
set successFlag to "true"
|
|
184
|
+
if totalCreated is 0 and errorCount > 0 then set successFlag to "false"
|
|
185
|
+
|
|
186
|
+
set errorsJSON to "["
|
|
187
|
+
repeat with i from 1 to errorCount
|
|
188
|
+
if i > 1 then set errorsJSON to errorsJSON & ","
|
|
189
|
+
set errorsJSON to errorsJSON & (item i of errorList)
|
|
190
|
+
end repeat
|
|
191
|
+
set errorsJSON to errorsJSON & "]"
|
|
192
|
+
|
|
193
|
+
return "{\"success\":" & successFlag & ",\"created\":" & createdJSON & ",\"skipped\":" & skippedJSON & ",\"deletedDefaults\":" & deletedJSON & ",\"total\":" & totalCreated & ",\"errors\":" & errorsJSON & "}"
|
|
194
|
+
end run
|
|
195
|
+
|
|
196
|
+
-- Helper: validate a sheet name against Excel's rules. Returns "" when valid,
|
|
197
|
+
-- or a human-readable reason. Excel forbids `/ \ ? * [ ] :` in sheet names
|
|
198
|
+
-- and limits length to 31 characters.
|
|
199
|
+
on validateSheetName(theName)
|
|
200
|
+
if length of theName > 31 then
|
|
201
|
+
return "Name exceeds 31-character limit (Excel sheet-name length cap); got " & (length of theName) & " characters."
|
|
202
|
+
end if
|
|
203
|
+
repeat with c in {"/", "\\", "?", "*", "[", "]", ":"}
|
|
204
|
+
if theName contains (c as string) then
|
|
205
|
+
return "Name contains forbidden character '" & (c as string) & "' (Excel sheet names cannot contain / \\ ? * [ ] :)."
|
|
206
|
+
end if
|
|
207
|
+
end repeat
|
|
208
|
+
return ""
|
|
209
|
+
end validateSheetName
|
|
210
|
+
|
|
211
|
+
-- Helper: trim whitespace from text
|
|
212
|
+
on trimText(theText)
|
|
213
|
+
set theText to theText as string
|
|
214
|
+
-- Trim leading spaces
|
|
215
|
+
repeat while theText begins with " "
|
|
216
|
+
if length of theText > 1 then
|
|
217
|
+
set theText to text 2 thru -1 of theText
|
|
218
|
+
else
|
|
219
|
+
return ""
|
|
220
|
+
end if
|
|
221
|
+
end repeat
|
|
222
|
+
-- Trim trailing spaces
|
|
223
|
+
repeat while theText ends with " "
|
|
224
|
+
if length of theText > 1 then
|
|
225
|
+
set theText to text 1 thru -2 of theText
|
|
226
|
+
else
|
|
227
|
+
return ""
|
|
228
|
+
end if
|
|
229
|
+
end repeat
|
|
230
|
+
return theText
|
|
231
|
+
end trimText
|
|
232
|
+
|
|
233
|
+
-- Helper: convert list to JSON array string
|
|
234
|
+
on listToJSONArray(theList)
|
|
235
|
+
if (count of theList) = 0 then return "[]"
|
|
236
|
+
|
|
237
|
+
set jsonStr to "["
|
|
238
|
+
repeat with i from 1 to count of theList
|
|
239
|
+
if i > 1 then set jsonStr to jsonStr & ","
|
|
240
|
+
set jsonStr to jsonStr & "\"" & my escapeJSONString(item i of theList) & "\""
|
|
241
|
+
end repeat
|
|
242
|
+
set jsonStr to jsonStr & "]"
|
|
243
|
+
return jsonStr
|
|
244
|
+
end listToJSONArray
|
|
245
|
+
|
|
246
|
+
-- Helper: escape special characters for JSON strings
|
|
247
|
+
on escapeJSONString(theText)
|
|
248
|
+
set theText to my replaceText(theText, "\\", "\\\\")
|
|
249
|
+
set theText to my replaceText(theText, "\"", "\\\"")
|
|
250
|
+
set theText to my replaceText(theText, return, "\\n")
|
|
251
|
+
set theText to my replaceText(theText, linefeed, "\\n")
|
|
252
|
+
set theText to my replaceText(theText, tab, "\\t")
|
|
253
|
+
return theText
|
|
254
|
+
end escapeJSONString
|
|
255
|
+
|
|
256
|
+
-- Helper: replace text
|
|
257
|
+
on replaceText(theText, searchStr, replaceStr)
|
|
258
|
+
set AppleScript's text item delimiters to searchStr
|
|
259
|
+
set theItems to text items of theText
|
|
260
|
+
set AppleScript's text item delimiters to replaceStr
|
|
261
|
+
set theText to theItems as string
|
|
262
|
+
set AppleScript's text item delimiters to ""
|
|
263
|
+
return theText
|
|
264
|
+
end replaceText
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
#!/usr/bin/osascript
|
|
2
|
+
(*
|
|
3
|
+
* Create New Excel Workbook
|
|
4
|
+
* Creates a new workbook and optionally saves it to a specified path.
|
|
5
|
+
*
|
|
6
|
+
* Usage: osascript create-workbook.applescript [filePath]
|
|
7
|
+
*
|
|
8
|
+
* Parameters:
|
|
9
|
+
* filePath - Optional: Full POSIX path to save the new workbook
|
|
10
|
+
*
|
|
11
|
+
* Examples:
|
|
12
|
+
* osascript create-workbook.applescript
|
|
13
|
+
* osascript create-workbook.applescript "/Users/me/Documents/report.xlsx"
|
|
14
|
+
*
|
|
15
|
+
* Output:
|
|
16
|
+
* {"success":true,"filePath":"/Users/me/Documents/report.xlsx"}
|
|
17
|
+
* {"success":true,"filePath":""} (if not saved)
|
|
18
|
+
*
|
|
19
|
+
* Note: Excel must be running or will be launched automatically.
|
|
20
|
+
*)
|
|
21
|
+
|
|
22
|
+
on run argv
|
|
23
|
+
set filePath to ""
|
|
24
|
+
|
|
25
|
+
if (count of argv) > 0 then
|
|
26
|
+
set filePath to item 1 of argv as string
|
|
27
|
+
end if
|
|
28
|
+
|
|
29
|
+
if filePath is not "" then
|
|
30
|
+
set outputFile to POSIX file filePath
|
|
31
|
+
try
|
|
32
|
+
outputFile as alias
|
|
33
|
+
return "Error: File already exists at path: " & filePath
|
|
34
|
+
on error
|
|
35
|
+
-- The destination does not exist, which is required for creation.
|
|
36
|
+
end try
|
|
37
|
+
end if
|
|
38
|
+
|
|
39
|
+
-- Convert POSIX path to HFS path OUTSIDE tell block (POSIX file doesn't work inside tell)
|
|
40
|
+
set hfsPath to ""
|
|
41
|
+
if filePath is not "" then
|
|
42
|
+
set hfsPath to POSIX file filePath as text
|
|
43
|
+
end if
|
|
44
|
+
|
|
45
|
+
tell application "Microsoft Excel"
|
|
46
|
+
try
|
|
47
|
+
-- Create the new workbook
|
|
48
|
+
make new workbook
|
|
49
|
+
|
|
50
|
+
if not (exists active workbook) then
|
|
51
|
+
return "Error: Failed to create workbook."
|
|
52
|
+
end if
|
|
53
|
+
|
|
54
|
+
set wb to active workbook
|
|
55
|
+
|
|
56
|
+
-- Save to path if provided
|
|
57
|
+
if hfsPath is not "" then
|
|
58
|
+
try
|
|
59
|
+
save workbook as wb filename hfsPath file format Excel XML file format
|
|
60
|
+
set filePath to full name of wb
|
|
61
|
+
on error errMsg
|
|
62
|
+
return "Error: Workbook created but failed to save: " & errMsg
|
|
63
|
+
end try
|
|
64
|
+
end if
|
|
65
|
+
|
|
66
|
+
return "{\"success\":true,\"filePath\":\"" & my escapeJSONString(filePath) & "\"}"
|
|
67
|
+
|
|
68
|
+
on error errMsg
|
|
69
|
+
return "Error: Failed to create workbook: " & errMsg
|
|
70
|
+
end try
|
|
71
|
+
end tell
|
|
72
|
+
end run
|
|
73
|
+
|
|
74
|
+
-- Helper function to escape special characters for JSON strings
|
|
75
|
+
on escapeJSONString(theText)
|
|
76
|
+
set theText to my replaceText(theText, "\\", "\\\\")
|
|
77
|
+
set theText to my replaceText(theText, "\"", "\\\"")
|
|
78
|
+
set theText to my replaceText(theText, return, "\\n")
|
|
79
|
+
set theText to my replaceText(theText, linefeed, "\\n")
|
|
80
|
+
set theText to my replaceText(theText, tab, "\\t")
|
|
81
|
+
return theText
|
|
82
|
+
end escapeJSONString
|
|
83
|
+
|
|
84
|
+
-- Helper function to replace text
|
|
85
|
+
on replaceText(theText, searchStr, replaceStr)
|
|
86
|
+
set AppleScript's text item delimiters to searchStr
|
|
87
|
+
set theItems to text items of theText
|
|
88
|
+
set AppleScript's text item delimiters to replaceStr
|
|
89
|
+
set theText to theItems as string
|
|
90
|
+
set AppleScript's text item delimiters to ""
|
|
91
|
+
return theText
|
|
92
|
+
end replaceText
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
#!/usr/bin/osascript
|
|
2
|
+
(*
|
|
3
|
+
* Delete Chart(s) from an Excel Worksheet
|
|
4
|
+
* Deletes one named chart, or every chart on the sheet.
|
|
5
|
+
*
|
|
6
|
+
* Usage: osascript delete-chart.applescript <sheetName> [chartName]
|
|
7
|
+
*
|
|
8
|
+
* Arguments:
|
|
9
|
+
* sheetName - Worksheet holding the chart(s) (e.g., "Dashboard")
|
|
10
|
+
* chartName - Optional: delete only this chart (e.g., "Chart 3").
|
|
11
|
+
* Pass "" (or omit) to delete EVERY chart on the sheet.
|
|
12
|
+
*
|
|
13
|
+
* Output (success): the number of charts deleted, then one name per line:
|
|
14
|
+
* 2
|
|
15
|
+
* Chart 1
|
|
16
|
+
* Chart 2
|
|
17
|
+
* Only charts VERIFIED gone are reported, so deletedChartNames reflects what
|
|
18
|
+
* was actually deleted rather than what was found — Excel no-ops the delete
|
|
19
|
+
* without raising when the sheet is protected. Chart names cannot contain
|
|
20
|
+
* newlines, so line-splitting is unambiguous.
|
|
21
|
+
*
|
|
22
|
+
* Examples:
|
|
23
|
+
* osascript delete-chart.applescript "Dashboard" -- all charts
|
|
24
|
+
* osascript delete-chart.applescript "Dashboard" "Chart 3" -- one chart
|
|
25
|
+
*
|
|
26
|
+
* WARNING: This operation is PERMANENT and cannot be undone!
|
|
27
|
+
*)
|
|
28
|
+
|
|
29
|
+
on run argv
|
|
30
|
+
if (count of argv) < 1 then
|
|
31
|
+
return "Error: Please specify the sheet name. Usage: osascript delete-chart.applescript <sheetName> [chartName]"
|
|
32
|
+
end if
|
|
33
|
+
|
|
34
|
+
set sheetName to item 1 of argv as string
|
|
35
|
+
-- Optional 2nd argv: a single chart to target. Empty means "all charts".
|
|
36
|
+
set chartName to ""
|
|
37
|
+
if (count of argv) >= 2 then
|
|
38
|
+
set chartName to item 2 of argv as string
|
|
39
|
+
end if
|
|
40
|
+
|
|
41
|
+
tell application "Microsoft Excel"
|
|
42
|
+
if not (exists active workbook) then
|
|
43
|
+
return "Error: No workbook is open in Excel."
|
|
44
|
+
end if
|
|
45
|
+
|
|
46
|
+
try
|
|
47
|
+
set ws to worksheet sheetName of active workbook
|
|
48
|
+
on error
|
|
49
|
+
return "Error: Worksheet \"" & sheetName & "\" not found."
|
|
50
|
+
end try
|
|
51
|
+
|
|
52
|
+
set deletedNames to {}
|
|
53
|
+
set foundCount to 0
|
|
54
|
+
|
|
55
|
+
try
|
|
56
|
+
if chartName is not "" then
|
|
57
|
+
set co to chart object chartName of ws
|
|
58
|
+
set coName to (name of co)
|
|
59
|
+
set foundCount to 1
|
|
60
|
+
delete co
|
|
61
|
+
-- Excel SILENTLY no-ops chart deletion on a protected sheet:
|
|
62
|
+
-- the delete returns without raising while the chart stays put
|
|
63
|
+
-- (verified against Excel for Mac 16.x), so `on error` catches
|
|
64
|
+
-- nothing. Only record a name once the chart is really gone.
|
|
65
|
+
if (exists chart object coName of ws) then
|
|
66
|
+
return "Error: Chart \"" & coName & "\" was not deleted. The sheet may be protected — unprotect it and retry."
|
|
67
|
+
end if
|
|
68
|
+
set end of deletedNames to coName
|
|
69
|
+
else
|
|
70
|
+
set foundCount to (count of chart objects of ws)
|
|
71
|
+
-- One chart at a time, highest index first so the remaining
|
|
72
|
+
-- indices stay valid as items disappear, and a name is recorded
|
|
73
|
+
-- only after that chart is verified gone. Mirrors the Windows
|
|
74
|
+
-- implementation (ExcelChartService.DeleteAllCharts), which
|
|
75
|
+
-- appends to deletedNames only after Delete() returns and
|
|
76
|
+
-- reverses at the end to restore the original order.
|
|
77
|
+
repeat with i from foundCount to 1 by -1
|
|
78
|
+
try
|
|
79
|
+
set co to chart object i of ws
|
|
80
|
+
set coName to (name of co)
|
|
81
|
+
delete co
|
|
82
|
+
if not (exists chart object coName of ws) then
|
|
83
|
+
set beginning of deletedNames to coName
|
|
84
|
+
end if
|
|
85
|
+
end try
|
|
86
|
+
end repeat
|
|
87
|
+
end if
|
|
88
|
+
on error errMsg
|
|
89
|
+
-- No "Failed to delete chart(s)" prefix here: the caller already
|
|
90
|
+
-- adds one, and repeating it produced doubled error text.
|
|
91
|
+
return "Error: " & errMsg
|
|
92
|
+
end try
|
|
93
|
+
|
|
94
|
+
-- Windows returns success with a shorter list when some charts resist
|
|
95
|
+
-- deletion. Deleting NOTHING while charts exist is different: the
|
|
96
|
+
-- caller would render "No charts found on sheet ..." for a sheet that
|
|
97
|
+
-- still has charts, so surface that as an error instead.
|
|
98
|
+
if foundCount > 0 and (count of deletedNames) = 0 then
|
|
99
|
+
return "Error: None of the " & (foundCount as text) & " chart(s) on \"" & sheetName & "\" could be deleted. The sheet may be protected — unprotect it and retry."
|
|
100
|
+
end if
|
|
101
|
+
|
|
102
|
+
set AppleScript's text item delimiters to linefeed
|
|
103
|
+
return ((count of deletedNames) as text) & linefeed & (deletedNames as text)
|
|
104
|
+
end tell
|
|
105
|
+
end run
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
#!/usr/bin/osascript
|
|
2
|
+
(*
|
|
3
|
+
* Delete Sheet from Excel Workbook
|
|
4
|
+
* Deletes a worksheet by name or index.
|
|
5
|
+
*
|
|
6
|
+
* Usage: osascript delete-sheet.applescript <sheetNameOrIndex>
|
|
7
|
+
*
|
|
8
|
+
* Arguments:
|
|
9
|
+
* sheetNameOrIndex - Sheet name (e.g., "Sheet2") or index number (e.g., 2)
|
|
10
|
+
*
|
|
11
|
+
* Examples:
|
|
12
|
+
* osascript delete-sheet.applescript "Sheet2" -- Delete by name
|
|
13
|
+
* osascript delete-sheet.applescript 2 -- Delete 2nd sheet
|
|
14
|
+
* osascript delete-sheet.applescript "Data" -- Delete sheet named "Data"
|
|
15
|
+
*
|
|
16
|
+
* WARNING: This operation is PERMANENT and cannot be undone!
|
|
17
|
+
* The workbook must have at least 2 sheets (cannot delete last sheet).
|
|
18
|
+
*)
|
|
19
|
+
|
|
20
|
+
on run argv
|
|
21
|
+
if (count of argv) < 1 then
|
|
22
|
+
return "Error: Please specify sheet name or index. Usage: osascript delete-sheet.applescript <sheetNameOrIndex>
|
|
23
|
+
Examples:
|
|
24
|
+
osascript delete-sheet.applescript \"Sheet2\" -- Delete by name
|
|
25
|
+
osascript delete-sheet.applescript 2 -- Delete 2nd sheet"
|
|
26
|
+
end if
|
|
27
|
+
|
|
28
|
+
set sheetRef to item 1 of argv as string
|
|
29
|
+
-- Optional 2nd argv: workbookName. Codex review round 12.
|
|
30
|
+
set workbookName to ""
|
|
31
|
+
if (count of argv) >= 2 then
|
|
32
|
+
set workbookName to item 2 of argv as string
|
|
33
|
+
end if
|
|
34
|
+
|
|
35
|
+
tell application "Microsoft Excel"
|
|
36
|
+
if not (exists active workbook) then
|
|
37
|
+
return "Error: No workbook is open in Excel."
|
|
38
|
+
end if
|
|
39
|
+
|
|
40
|
+
if workbookName is "" then
|
|
41
|
+
set wb to active workbook
|
|
42
|
+
else
|
|
43
|
+
try
|
|
44
|
+
set wb to workbook workbookName
|
|
45
|
+
on error
|
|
46
|
+
return "Error: Workbook \"" & workbookName & "\" not found."
|
|
47
|
+
end try
|
|
48
|
+
end if
|
|
49
|
+
|
|
50
|
+
try
|
|
51
|
+
activate object wb
|
|
52
|
+
end try
|
|
53
|
+
set sheetCount to count of sheets of wb
|
|
54
|
+
|
|
55
|
+
if sheetCount < 2 then
|
|
56
|
+
return "Error: Cannot delete the last remaining sheet. Workbook must have at least one sheet."
|
|
57
|
+
end if
|
|
58
|
+
|
|
59
|
+
-- Try to find the sheet by name or index
|
|
60
|
+
set targetSheet to missing value
|
|
61
|
+
set sheetName to ""
|
|
62
|
+
|
|
63
|
+
-- First check if it's a number (index)
|
|
64
|
+
try
|
|
65
|
+
set sheetIndex to sheetRef as integer
|
|
66
|
+
if sheetIndex > 0 and sheetIndex <= sheetCount then
|
|
67
|
+
set targetSheet to sheet sheetIndex of wb
|
|
68
|
+
set sheetName to name of targetSheet
|
|
69
|
+
end if
|
|
70
|
+
on error
|
|
71
|
+
-- Not a number, try as name
|
|
72
|
+
end try
|
|
73
|
+
|
|
74
|
+
-- If not found by index, try by name
|
|
75
|
+
if targetSheet is missing value then
|
|
76
|
+
try
|
|
77
|
+
set targetSheet to sheet sheetRef of wb
|
|
78
|
+
set sheetName to name of targetSheet
|
|
79
|
+
on error
|
|
80
|
+
return "Error: Sheet '" & sheetRef & "' not found. Available sheets: " & my getSheetNames(wb)
|
|
81
|
+
end try
|
|
82
|
+
end if
|
|
83
|
+
|
|
84
|
+
-- Check if trying to delete active sheet
|
|
85
|
+
set wasActive to false
|
|
86
|
+
if name of active sheet = sheetName then
|
|
87
|
+
set wasActive to true
|
|
88
|
+
end if
|
|
89
|
+
|
|
90
|
+
-- Delete the sheet (Excel may show confirmation dialog)
|
|
91
|
+
try
|
|
92
|
+
set display alerts to false
|
|
93
|
+
delete targetSheet
|
|
94
|
+
set display alerts to true
|
|
95
|
+
on error errMsg
|
|
96
|
+
set display alerts to true
|
|
97
|
+
return "Error deleting sheet: " & errMsg
|
|
98
|
+
end try
|
|
99
|
+
|
|
100
|
+
set newCount to count of sheets of wb
|
|
101
|
+
|
|
102
|
+
-- Report which sheet is now active if we deleted the active one
|
|
103
|
+
set resultMsg to "Sheet '" & sheetName & "' deleted successfully." & return
|
|
104
|
+
set resultMsg to resultMsg & "Workbook now has " & newCount & " sheet(s)."
|
|
105
|
+
|
|
106
|
+
if wasActive then
|
|
107
|
+
set resultMsg to resultMsg & return & "Active sheet is now: " & name of active sheet
|
|
108
|
+
end if
|
|
109
|
+
|
|
110
|
+
return resultMsg
|
|
111
|
+
end tell
|
|
112
|
+
end run
|
|
113
|
+
|
|
114
|
+
-- Helper to get sheet names
|
|
115
|
+
on getSheetNames(wb)
|
|
116
|
+
tell application "Microsoft Excel"
|
|
117
|
+
set sheetNames to {}
|
|
118
|
+
set sheetCount to count of sheets of wb
|
|
119
|
+
repeat with i from 1 to sheetCount
|
|
120
|
+
set end of sheetNames to name of sheet i of wb
|
|
121
|
+
end repeat
|
|
122
|
+
set AppleScript's text item delimiters to ", "
|
|
123
|
+
set nameList to sheetNames as string
|
|
124
|
+
set AppleScript's text item delimiters to ""
|
|
125
|
+
return nameList
|
|
126
|
+
end tell
|
|
127
|
+
end getSheetNames
|