@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,690 @@
|
|
|
1
|
+
#!/usr/bin/osascript
|
|
2
|
+
-- Health Check for PowerPoint Presentation
|
|
3
|
+
-- Comprehensive quality checks matching Windows PptHealthChecker implementation.
|
|
4
|
+
--
|
|
5
|
+
-- Checks performed:
|
|
6
|
+
-- Text: empty placeholders, small fonts (<14pt), word count (>50), bullet count (>7),
|
|
7
|
+
-- double bullets, empty lines between bullets
|
|
8
|
+
-- Images: outside slide boundaries, large images (>600pt), orientation mismatch
|
|
9
|
+
-- Layout: empty slides, excessive whitespace (<30% fill), overlapping shapes
|
|
10
|
+
-- Formatting: font consistency (>3 fonts), font hierarchy (body >= title size)
|
|
11
|
+
-- Content: (empty tables check skipped - AppleScript cannot introspect table cells)
|
|
12
|
+
--
|
|
13
|
+
-- Usage: osascript health-check.applescript [slideNumbers]
|
|
14
|
+
-- slideNumbers - Optional: comma-separated slide numbers (e.g. "1,3,5"). If omitted, all slides.
|
|
15
|
+
--
|
|
16
|
+
-- Output: Structured tab-delimited text for TypeScript parsing.
|
|
17
|
+
-- HEALTH_CHECK_START
|
|
18
|
+
-- DIMS<tab>slideWidth<tab>slideHeight
|
|
19
|
+
-- SLIDE<tab>slideNumber
|
|
20
|
+
-- ISSUE<tab>severity<tab>category<tab>message<tab>shapeName<tab>recommendation[<tab>posData...]
|
|
21
|
+
-- OVERLAP<tab>severity<tab>category<tab>message<tab>shape1<tab>recommendation<tab>pos1...<tab>shape2<tab>pos2...
|
|
22
|
+
-- HEALTH_CHECK_END
|
|
23
|
+
--
|
|
24
|
+
-- Note: PowerPoint must be open with an active presentation.
|
|
25
|
+
|
|
26
|
+
on run argv
|
|
27
|
+
-- Thresholds (matching Windows PptHealthChecker)
|
|
28
|
+
set maxWordsPerSlide to 50
|
|
29
|
+
set maxFontsPerSlide to 3
|
|
30
|
+
set maxBulletsPerShape to 7
|
|
31
|
+
set minContentFillRatio to 0.3
|
|
32
|
+
set largeImageThreshold to 600
|
|
33
|
+
set overlapAreaThreshold to 0.2
|
|
34
|
+
set minReadableFontSize to 14
|
|
35
|
+
set boundaryTolerance to 5
|
|
36
|
+
|
|
37
|
+
-- Parse optional slide numbers argument
|
|
38
|
+
set checkSlideNums to {}
|
|
39
|
+
if (count of argv) ≥ 1 then
|
|
40
|
+
set slideNumsStr to item 1 of argv as string
|
|
41
|
+
if slideNumsStr is not "" then
|
|
42
|
+
set rawNums to my splitString(slideNumsStr, ",")
|
|
43
|
+
repeat with n in rawNums
|
|
44
|
+
try
|
|
45
|
+
set end of checkSlideNums to (n as integer)
|
|
46
|
+
end try
|
|
47
|
+
end repeat
|
|
48
|
+
end if
|
|
49
|
+
end if
|
|
50
|
+
|
|
51
|
+
tell application "Microsoft PowerPoint"
|
|
52
|
+
if not (exists active presentation) then
|
|
53
|
+
return "HEALTH_CHECK_ERROR" & tab & "No presentation is open in PowerPoint"
|
|
54
|
+
end if
|
|
55
|
+
|
|
56
|
+
set pres to active presentation
|
|
57
|
+
set totalSlides to count of slides of pres
|
|
58
|
+
|
|
59
|
+
-- Get slide dimensions
|
|
60
|
+
set slideW to 960
|
|
61
|
+
try
|
|
62
|
+
set slideW to slide width of page setup of pres
|
|
63
|
+
end try
|
|
64
|
+
-- Calculate height (slide height property not available in AppleScript)
|
|
65
|
+
set slideH to 540
|
|
66
|
+
try
|
|
67
|
+
set sizeType to slide size of page setup of pres
|
|
68
|
+
if sizeType is slide size on screen then
|
|
69
|
+
-- 4:3 aspect ratio
|
|
70
|
+
set slideH to round (slideW * 3 / 4) rounding down
|
|
71
|
+
else
|
|
72
|
+
-- Assume 16:9
|
|
73
|
+
set slideH to round (slideW * 9 / 16) rounding down
|
|
74
|
+
end if
|
|
75
|
+
end try
|
|
76
|
+
|
|
77
|
+
-- Determine which slides to check
|
|
78
|
+
set slidesToCheck to {}
|
|
79
|
+
if (count of checkSlideNums) > 0 then
|
|
80
|
+
set slidesToCheck to checkSlideNums
|
|
81
|
+
else
|
|
82
|
+
repeat with i from 1 to totalSlides
|
|
83
|
+
set end of slidesToCheck to i
|
|
84
|
+
end repeat
|
|
85
|
+
end if
|
|
86
|
+
|
|
87
|
+
set outputLines to {"HEALTH_CHECK_START"}
|
|
88
|
+
set end of outputLines to "DIMS" & tab & (slideW as integer as string) & tab & (slideH as integer as string) & tab & (totalSlides as string)
|
|
89
|
+
|
|
90
|
+
-- Process each slide
|
|
91
|
+
repeat with slideIdx in slidesToCheck
|
|
92
|
+
set slideIdx to slideIdx as integer
|
|
93
|
+
if slideIdx ≥ 1 and slideIdx ≤ totalSlides then
|
|
94
|
+
set currentSlide to slide slideIdx of pres
|
|
95
|
+
set end of outputLines to "SLIDE" & tab & (slideIdx as string)
|
|
96
|
+
|
|
97
|
+
set shapeCount to count of shapes of currentSlide
|
|
98
|
+
|
|
99
|
+
if shapeCount is 0 then
|
|
100
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "layout" & tab & "Slide is completely blank (no shapes)" & tab & "" & tab & "Add content or delete blank slide"
|
|
101
|
+
else
|
|
102
|
+
-- ==============================
|
|
103
|
+
-- COLLECT SHAPE DATA
|
|
104
|
+
-- ==============================
|
|
105
|
+
set shapeNames to {}
|
|
106
|
+
set shapeLefts to {}
|
|
107
|
+
set shapeYPositions to {}
|
|
108
|
+
set shapeWidths to {}
|
|
109
|
+
set shapeHeights to {}
|
|
110
|
+
set shapeTexts to {}
|
|
111
|
+
set shapeFontSizes to {}
|
|
112
|
+
set shapeFontNames to {}
|
|
113
|
+
set shapeIsImage to {}
|
|
114
|
+
set shapeIsTable to {}
|
|
115
|
+
set shapeIsTitle to {}
|
|
116
|
+
set shapeIsSubtitle to {}
|
|
117
|
+
set shapeIsContent to {}
|
|
118
|
+
set shapeIsEmpty to {}
|
|
119
|
+
set totalContentArea to 0
|
|
120
|
+
set hasRealContent to false
|
|
121
|
+
set allFontNames to {}
|
|
122
|
+
set titleFontSize to 0
|
|
123
|
+
set maxBodyFontSize to 0
|
|
124
|
+
set maxBodyShapeName to ""
|
|
125
|
+
|
|
126
|
+
repeat with j from 1 to shapeCount
|
|
127
|
+
set aShape to shape j of currentSlide
|
|
128
|
+
|
|
129
|
+
-- Get shape name
|
|
130
|
+
set sName to ""
|
|
131
|
+
try
|
|
132
|
+
set sName to name of aShape
|
|
133
|
+
end try
|
|
134
|
+
|
|
135
|
+
-- Get position and size
|
|
136
|
+
set sLeft to 0
|
|
137
|
+
set sYPos to 0
|
|
138
|
+
set sWidth to 0
|
|
139
|
+
set sHeight to 0
|
|
140
|
+
try
|
|
141
|
+
set sLeft to left position of aShape
|
|
142
|
+
set sYPos to (get top of aShape)
|
|
143
|
+
set sWidth to width of aShape
|
|
144
|
+
set sHeight to height of aShape
|
|
145
|
+
end try
|
|
146
|
+
|
|
147
|
+
set end of shapeNames to sName
|
|
148
|
+
set end of shapeLefts to sLeft
|
|
149
|
+
set end of shapeYPositions to sYPos
|
|
150
|
+
set end of shapeWidths to sWidth
|
|
151
|
+
set end of shapeHeights to sHeight
|
|
152
|
+
|
|
153
|
+
-- Detect shape type: picture
|
|
154
|
+
set isPic to false
|
|
155
|
+
if sName contains "picture" or sName contains "image" or sName contains "photo" then
|
|
156
|
+
set isPic to true
|
|
157
|
+
end if
|
|
158
|
+
set end of shapeIsImage to isPic
|
|
159
|
+
|
|
160
|
+
-- Detect shape type: table
|
|
161
|
+
set isTab to false
|
|
162
|
+
try
|
|
163
|
+
if has table of aShape then set isTab to true
|
|
164
|
+
end try
|
|
165
|
+
set end of shapeIsTable to isTab
|
|
166
|
+
|
|
167
|
+
-- Detect shape type: chart (by name, no AppleScript API for charts)
|
|
168
|
+
set isChart to false
|
|
169
|
+
if sName starts with "Chart" then set isChart to true
|
|
170
|
+
|
|
171
|
+
-- Detect title/subtitle/content
|
|
172
|
+
set isTit to false
|
|
173
|
+
set isSub to false
|
|
174
|
+
set isCont to false
|
|
175
|
+
if sName contains "title" and sName does not contain "subtitle" then
|
|
176
|
+
set isTit to true
|
|
177
|
+
end if
|
|
178
|
+
if sName contains "subtitle" then
|
|
179
|
+
set isSub to true
|
|
180
|
+
end if
|
|
181
|
+
if sName contains "content" or sName contains "placeholder" or sName contains "text placeholder" then
|
|
182
|
+
set isCont to true
|
|
183
|
+
end if
|
|
184
|
+
set end of shapeIsTitle to isTit
|
|
185
|
+
set end of shapeIsSubtitle to isSub
|
|
186
|
+
set end of shapeIsContent to isCont
|
|
187
|
+
|
|
188
|
+
-- Get text content and font info
|
|
189
|
+
set isEmpty to true
|
|
190
|
+
set sText to ""
|
|
191
|
+
set sFontSize to 0
|
|
192
|
+
set sFontName to ""
|
|
193
|
+
|
|
194
|
+
try
|
|
195
|
+
if has text frame of aShape then
|
|
196
|
+
set tf to text frame of aShape
|
|
197
|
+
set sText to content of text range of tf
|
|
198
|
+
|
|
199
|
+
try
|
|
200
|
+
set sFontSize to size of font of text range of tf
|
|
201
|
+
end try
|
|
202
|
+
try
|
|
203
|
+
set sFontName to name of font of text range of tf
|
|
204
|
+
end try
|
|
205
|
+
|
|
206
|
+
if length of sText > 0 then
|
|
207
|
+
if sText does not contain "Click to add" and sText does not contain "Click to edit" then
|
|
208
|
+
set isEmpty to false
|
|
209
|
+
set hasRealContent to true
|
|
210
|
+
end if
|
|
211
|
+
end if
|
|
212
|
+
end if
|
|
213
|
+
end try
|
|
214
|
+
|
|
215
|
+
if isPic or isTab or isChart then
|
|
216
|
+
set isEmpty to false
|
|
217
|
+
set hasRealContent to true
|
|
218
|
+
end if
|
|
219
|
+
|
|
220
|
+
set end of shapeIsEmpty to isEmpty
|
|
221
|
+
set end of shapeTexts to sText
|
|
222
|
+
set end of shapeFontSizes to sFontSize
|
|
223
|
+
set end of shapeFontNames to sFontName
|
|
224
|
+
|
|
225
|
+
-- Track content area (non-empty shapes only)
|
|
226
|
+
if not isEmpty then
|
|
227
|
+
set totalContentArea to totalContentArea + (sWidth * sHeight)
|
|
228
|
+
end if
|
|
229
|
+
|
|
230
|
+
-- Track unique font names
|
|
231
|
+
if sFontName is not "" and not isEmpty then
|
|
232
|
+
if sFontName is not in allFontNames then
|
|
233
|
+
set end of allFontNames to sFontName
|
|
234
|
+
end if
|
|
235
|
+
end if
|
|
236
|
+
|
|
237
|
+
-- Track title vs body font sizes for hierarchy check
|
|
238
|
+
if isTit and sFontSize > 0 then
|
|
239
|
+
set titleFontSize to sFontSize
|
|
240
|
+
else if not isTit and sFontSize > 0 and not isEmpty then
|
|
241
|
+
if sFontSize > maxBodyFontSize then
|
|
242
|
+
set maxBodyFontSize to sFontSize
|
|
243
|
+
set maxBodyShapeName to sName
|
|
244
|
+
end if
|
|
245
|
+
end if
|
|
246
|
+
end repeat
|
|
247
|
+
|
|
248
|
+
-- ==============================
|
|
249
|
+
-- TEXT QUALITY CHECKS
|
|
250
|
+
-- ==============================
|
|
251
|
+
repeat with j from 1 to shapeCount
|
|
252
|
+
set sName to item j of shapeNames
|
|
253
|
+
set sText to item j of shapeTexts
|
|
254
|
+
set sFontSize to item j of shapeFontSizes
|
|
255
|
+
set isEmpty to item j of shapeIsEmpty
|
|
256
|
+
set isTit to item j of shapeIsTitle
|
|
257
|
+
set isSub to item j of shapeIsSubtitle
|
|
258
|
+
set isCont to item j of shapeIsContent
|
|
259
|
+
|
|
260
|
+
if length of sText > 0 then
|
|
261
|
+
-- Empty placeholder check
|
|
262
|
+
if sText contains "Click to add" or sText contains "Click to edit" then
|
|
263
|
+
if isSub then
|
|
264
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "text" & tab & "Subtitle placeholder is empty" & tab & sName & tab & "Add subtitle text or remove the subtitle placeholder"
|
|
265
|
+
else if not isTit then
|
|
266
|
+
if isCont or sName contains "placeholder" or sName contains "content" then
|
|
267
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "text" & tab & "Content placeholder is empty - content was not added" & tab & sName & tab & "Add content to this placeholder"
|
|
268
|
+
end if
|
|
269
|
+
end if
|
|
270
|
+
end if
|
|
271
|
+
|
|
272
|
+
-- Font size check (skip decorative text shapes named "Text N")
|
|
273
|
+
if not isEmpty and sFontSize > 0 and sFontSize < 200 and sFontSize < minReadableFontSize then
|
|
274
|
+
set isDecorative to false
|
|
275
|
+
if sName starts with "Text " then
|
|
276
|
+
try
|
|
277
|
+
set numPart to text 6 thru -1 of sName
|
|
278
|
+
set numPart to numPart as integer
|
|
279
|
+
set isDecorative to true
|
|
280
|
+
end try
|
|
281
|
+
end if
|
|
282
|
+
if not isDecorative then
|
|
283
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "text" & tab & "Font size is very small (" & ((sFontSize as integer) as string) & "pt) - may be hard to read" & tab & sName & tab & "Increase font size to at least 14pt for body text, 20pt+ for titles"
|
|
284
|
+
end if
|
|
285
|
+
end if
|
|
286
|
+
|
|
287
|
+
-- Word count check
|
|
288
|
+
if not isEmpty and not isTit then
|
|
289
|
+
set wordCount to my countWords(sText)
|
|
290
|
+
if wordCount > maxWordsPerSlide then
|
|
291
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "text" & tab & "Shape has " & (wordCount as string) & " words - may be too much content" & tab & sName & tab & "Consider breaking content into multiple slides (aim for <" & (maxWordsPerSlide as string) & " words)"
|
|
292
|
+
end if
|
|
293
|
+
end if
|
|
294
|
+
|
|
295
|
+
-- Double bullet check
|
|
296
|
+
-- Only flag when shape ACTUALLY has auto-bullet formatting visible.
|
|
297
|
+
-- Do NOT assume content placeholders have auto-bullets based on name alone —
|
|
298
|
+
-- scripts like add-html-to-slide insert "• " as text characters intentionally.
|
|
299
|
+
if not isEmpty then
|
|
300
|
+
set hasAutoBullets to false
|
|
301
|
+
-- Detect bullet formatting directly via AppleScript (only reliable method)
|
|
302
|
+
try
|
|
303
|
+
set bfShape to shape j of currentSlide
|
|
304
|
+
set bfParaFmt to paragraph format of paragraph 1 of text range of text frame of bfShape
|
|
305
|
+
set bfBulletFmt to bullet format of bfParaFmt
|
|
306
|
+
set bfVisible to visible of bfBulletFmt
|
|
307
|
+
if bfVisible then set hasAutoBullets to true
|
|
308
|
+
end try
|
|
309
|
+
if hasAutoBullets then
|
|
310
|
+
set doubleBulletCount to my countDoubleBullets(sText)
|
|
311
|
+
if doubleBulletCount > 0 then
|
|
312
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "formatting" & tab & "Double bullets detected (" & (doubleBulletCount as string) & " lines) - text has bullet characters but shape may already have bullet formatting" & tab & sName & tab & "Remove leading '- ' or '* ' from text - the shape already applies bullets automatically"
|
|
313
|
+
end if
|
|
314
|
+
end if
|
|
315
|
+
end if
|
|
316
|
+
|
|
317
|
+
-- Empty lines between bullets
|
|
318
|
+
if not isEmpty and sText contains (return & return) then
|
|
319
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "formatting" & tab & "Empty lines detected between bullet points" & tab & sName & tab & "Remove blank lines between bullet points for cleaner appearance"
|
|
320
|
+
end if
|
|
321
|
+
|
|
322
|
+
-- Too many bullets
|
|
323
|
+
if not isEmpty and not isTit then
|
|
324
|
+
set bulletCount to my countLines(sText)
|
|
325
|
+
if bulletCount > maxBulletsPerShape then
|
|
326
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "formatting" & tab & "Too many bullet points (" & (bulletCount as string) & ") - maximum recommended is " & (maxBulletsPerShape as string) & tab & sName & tab & "Split content across multiple slides or consolidate points"
|
|
327
|
+
end if
|
|
328
|
+
end if
|
|
329
|
+
end if
|
|
330
|
+
end repeat
|
|
331
|
+
|
|
332
|
+
-- ==============================
|
|
333
|
+
-- IMAGE QUALITY CHECKS
|
|
334
|
+
-- ==============================
|
|
335
|
+
repeat with j from 1 to shapeCount
|
|
336
|
+
set isPic to item j of shapeIsImage
|
|
337
|
+
if isPic then
|
|
338
|
+
set sName to item j of shapeNames
|
|
339
|
+
set sLeft to item j of shapeLefts
|
|
340
|
+
set sYPos to item j of shapeYPositions
|
|
341
|
+
set sWidth to item j of shapeWidths
|
|
342
|
+
set sHeight to item j of shapeHeights
|
|
343
|
+
|
|
344
|
+
-- Boundary check
|
|
345
|
+
set sRight to sLeft + sWidth
|
|
346
|
+
set sBottom to sYPos + sHeight
|
|
347
|
+
set negTolerance to -1 * boundaryTolerance
|
|
348
|
+
|
|
349
|
+
if sLeft < negTolerance or sYPos < negTolerance or sRight > (slideW + boundaryTolerance) or sBottom > (slideH + boundaryTolerance) then
|
|
350
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "images" & tab & "Image extends outside slide boundaries" & tab & sName & tab & "Resize or reposition image to fit within slide" & tab & ((sLeft as integer) as string) & tab & ((sYPos as integer) as string) & tab & ((sWidth as integer) as string) & tab & ((sHeight as integer) as string) & tab & ((slideW as integer) as string) & tab & ((slideH as integer) as string)
|
|
351
|
+
end if
|
|
352
|
+
|
|
353
|
+
-- Large image check
|
|
354
|
+
if sWidth > largeImageThreshold or sHeight > largeImageThreshold then
|
|
355
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "images" & tab & "Large image - verify it is not pixelated or blurry" & tab & sName & tab & "Check image quality and use higher resolution if pixelated"
|
|
356
|
+
end if
|
|
357
|
+
|
|
358
|
+
-- Orientation mismatch check
|
|
359
|
+
set imageArea to sWidth * sHeight
|
|
360
|
+
set slideArea to slideW * slideH
|
|
361
|
+
if slideArea > 0 then
|
|
362
|
+
set fillRatio to imageArea / slideArea
|
|
363
|
+
if fillRatio < 0.08 then
|
|
364
|
+
set isPortrait to (sHeight > sWidth * 1.2)
|
|
365
|
+
set isLandscape to (sWidth > sHeight * 1.2)
|
|
366
|
+
if isPortrait and sWidth < 150 then
|
|
367
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "images" & tab & "Portrait image appears shrunk to fit (" & ((sWidth as integer) as string) & "x" & ((sHeight as integer) as string) & "pt)" & tab & sName & tab & "Consider using a landscape image or resize the placeholder"
|
|
368
|
+
else if isLandscape and sHeight < 150 then
|
|
369
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "images" & tab & "Landscape image appears shrunk to fit (" & ((sWidth as integer) as string) & "x" & ((sHeight as integer) as string) & "pt)" & tab & sName & tab & "Consider using a portrait image or resize the placeholder"
|
|
370
|
+
end if
|
|
371
|
+
end if
|
|
372
|
+
end if
|
|
373
|
+
end if
|
|
374
|
+
end repeat
|
|
375
|
+
|
|
376
|
+
-- ==============================
|
|
377
|
+
-- LAYOUT CHECKS
|
|
378
|
+
-- ==============================
|
|
379
|
+
|
|
380
|
+
-- Empty slide (only empty placeholders, no real content)
|
|
381
|
+
if not hasRealContent then
|
|
382
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "layout" & tab & "Slide only contains empty placeholder shapes (no actual content added)" & tab & "" & tab & "Add content to placeholders or delete slide"
|
|
383
|
+
else
|
|
384
|
+
-- Whitespace ratio check
|
|
385
|
+
set slideArea to slideW * slideH
|
|
386
|
+
if slideArea > 0 then
|
|
387
|
+
set contentRatio to totalContentArea / slideArea
|
|
388
|
+
if contentRatio < minContentFillRatio then
|
|
389
|
+
set pct to round (contentRatio * 100) rounding down
|
|
390
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "layout" & tab & "Excessive white space - content only fills " & (pct as string) & "% of slide (recommended: at least 30%)" & tab & "" & tab & "Resize shapes to fill more space, increase font sizes, or add more content"
|
|
391
|
+
end if
|
|
392
|
+
end if
|
|
393
|
+
|
|
394
|
+
-- Overlap detection (compare all non-empty shape pairs)
|
|
395
|
+
repeat with j from 1 to shapeCount
|
|
396
|
+
if not (item j of shapeIsEmpty) then
|
|
397
|
+
repeat with k from (j + 1) to shapeCount
|
|
398
|
+
if not (item k of shapeIsEmpty) then
|
|
399
|
+
set l1 to item j of shapeLefts
|
|
400
|
+
set t1 to item j of shapeYPositions
|
|
401
|
+
set w1 to item j of shapeWidths
|
|
402
|
+
set h1 to item j of shapeHeights
|
|
403
|
+
set r1 to l1 + w1
|
|
404
|
+
set b1 to t1 + h1
|
|
405
|
+
|
|
406
|
+
set l2 to item k of shapeLefts
|
|
407
|
+
set t2 to item k of shapeYPositions
|
|
408
|
+
set w2 to item k of shapeWidths
|
|
409
|
+
set h2 to item k of shapeHeights
|
|
410
|
+
set r2 to l2 + w2
|
|
411
|
+
set b2 to t2 + h2
|
|
412
|
+
|
|
413
|
+
-- Check bounding box overlap
|
|
414
|
+
if l1 < r2 and r1 > l2 and t1 < b2 and b1 > t2 then
|
|
415
|
+
set oW to (my minVal(r1, r2)) - (my maxVal(l1, l2))
|
|
416
|
+
set oH to (my minVal(b1, b2)) - (my maxVal(t1, t2))
|
|
417
|
+
set overlapArea to oW * oH
|
|
418
|
+
|
|
419
|
+
set area1 to w1 * h1
|
|
420
|
+
set area2 to w2 * h2
|
|
421
|
+
set smallerArea to my minVal(area1, area2)
|
|
422
|
+
|
|
423
|
+
-- Determine if image-text overlap (stricter threshold)
|
|
424
|
+
set n1 to item j of shapeNames
|
|
425
|
+
set n2 to item k of shapeNames
|
|
426
|
+
set isPicJ to item j of shapeIsImage
|
|
427
|
+
set isPicK to item k of shapeIsImage
|
|
428
|
+
set isTitJ to item j of shapeIsTitle
|
|
429
|
+
set isTitK to item k of shapeIsTitle
|
|
430
|
+
set isContJ to (item j of shapeIsContent) or (item j of shapeIsSubtitle)
|
|
431
|
+
set isContK to (item k of shapeIsContent) or (item k of shapeIsSubtitle)
|
|
432
|
+
|
|
433
|
+
set isImageTextOverlap to false
|
|
434
|
+
set isImageTitleOverlap to false
|
|
435
|
+
if (isPicJ and (isTitK or isContK)) or (isPicK and (isTitJ or isContJ)) then
|
|
436
|
+
set isImageTextOverlap to true
|
|
437
|
+
if (isPicJ and isTitK) or (isPicK and isTitJ) then
|
|
438
|
+
set isImageTitleOverlap to true
|
|
439
|
+
end if
|
|
440
|
+
end if
|
|
441
|
+
|
|
442
|
+
-- Z-ORDER CHECK (matching Windows PptHealthChecker):
|
|
443
|
+
-- If text shape has higher z-order (higher index = added later = on top),
|
|
444
|
+
-- the text is visible over the image — no overlap problem.
|
|
445
|
+
if isImageTextOverlap then
|
|
446
|
+
set textIdx to j
|
|
447
|
+
set imageIdx to k
|
|
448
|
+
if isPicJ then
|
|
449
|
+
set textIdx to k
|
|
450
|
+
set imageIdx to j
|
|
451
|
+
end if
|
|
452
|
+
-- Higher shape index = higher z-order = rendered on top
|
|
453
|
+
if textIdx > imageIdx then
|
|
454
|
+
-- Text is on top of image, so text is visible — skip this overlap
|
|
455
|
+
set isImageTextOverlap to false
|
|
456
|
+
set isImageTitleOverlap to false
|
|
457
|
+
end if
|
|
458
|
+
end if
|
|
459
|
+
|
|
460
|
+
-- POSITIONAL CHECK for image-text overlaps:
|
|
461
|
+
-- For imageRight/imageLeft layouts, title and content placeholders
|
|
462
|
+
-- may span the full slide width but text is left/right-aligned
|
|
463
|
+
-- and doesn't extend into the portion where the image sits.
|
|
464
|
+
-- Only flag if the image actually covers the text area.
|
|
465
|
+
if isImageTextOverlap then
|
|
466
|
+
-- Determine which shape is the text and which is the image
|
|
467
|
+
set textShapeL to l1
|
|
468
|
+
set textShapeW to w1
|
|
469
|
+
set imgL to l2
|
|
470
|
+
set imgR to l2 + w2
|
|
471
|
+
if isPicJ then
|
|
472
|
+
set textShapeL to l2
|
|
473
|
+
set textShapeW to w2
|
|
474
|
+
set imgL to l1
|
|
475
|
+
set imgR to l1 + w1
|
|
476
|
+
end if
|
|
477
|
+
|
|
478
|
+
-- Calculate where the overlap starts relative to the text shape
|
|
479
|
+
set overlapStartInText to imgL - textShapeL
|
|
480
|
+
-- imageRight: image starts past 40% of text shape width
|
|
481
|
+
if overlapStartInText > (textShapeW * 0.4) then
|
|
482
|
+
set isImageTextOverlap to false
|
|
483
|
+
set isImageTitleOverlap to false
|
|
484
|
+
end if
|
|
485
|
+
-- imageLeft: image ends before 60% of text shape width
|
|
486
|
+
if isImageTextOverlap then
|
|
487
|
+
set overlapEndInText to imgR - textShapeL
|
|
488
|
+
if overlapEndInText < (textShapeW * 0.6) then
|
|
489
|
+
set isImageTextOverlap to false
|
|
490
|
+
set isImageTitleOverlap to false
|
|
491
|
+
end if
|
|
492
|
+
end if
|
|
493
|
+
end if
|
|
494
|
+
|
|
495
|
+
set effectiveThreshold to overlapAreaThreshold
|
|
496
|
+
if isImageTextOverlap then set effectiveThreshold to 0
|
|
497
|
+
|
|
498
|
+
if smallerArea > 0 and (overlapArea / smallerArea) > effectiveThreshold then
|
|
499
|
+
set msg to "Shapes overlap significantly: " & n1 & " and " & n2
|
|
500
|
+
if isImageTitleOverlap then
|
|
501
|
+
set msg to "Image overlaps with title - must be fixed: " & n1 & " and " & n2
|
|
502
|
+
else if isImageTextOverlap then
|
|
503
|
+
set msg to "Image overlaps with content - must be fixed: " & n1 & " and " & n2
|
|
504
|
+
end if
|
|
505
|
+
|
|
506
|
+
set rec to "Reposition shapes to avoid overlap"
|
|
507
|
+
if isImageTextOverlap then
|
|
508
|
+
set rec to "Use format-shape to reduce the image width and height (keep aspect ratio) so it fits next to the text without overlapping. Keep the image on the same side of the slide - do not move the text shapes."
|
|
509
|
+
end if
|
|
510
|
+
|
|
511
|
+
set end of outputLines to "OVERLAP" & tab & "warning" & tab & "layout" & tab & msg & tab & n1 & tab & rec & tab & ((l1 as integer) as string) & tab & ((t1 as integer) as string) & tab & ((w1 as integer) as string) & tab & ((h1 as integer) as string) & tab & ((slideW as integer) as string) & tab & ((slideH as integer) as string) & tab & n2 & tab & ((l2 as integer) as string) & tab & ((t2 as integer) as string) & tab & ((w2 as integer) as string) & tab & ((h2 as integer) as string)
|
|
512
|
+
end if
|
|
513
|
+
end if
|
|
514
|
+
end if
|
|
515
|
+
end repeat
|
|
516
|
+
end if
|
|
517
|
+
end repeat
|
|
518
|
+
end if
|
|
519
|
+
|
|
520
|
+
-- ==============================
|
|
521
|
+
-- FORMATTING CHECKS
|
|
522
|
+
-- ==============================
|
|
523
|
+
|
|
524
|
+
-- Font consistency
|
|
525
|
+
if (count of allFontNames) > maxFontsPerSlide then
|
|
526
|
+
set end of outputLines to "ISSUE" & tab & "info" & tab & "formatting" & tab & "Slide uses " & ((count of allFontNames) as string) & " different fonts - may look inconsistent" & tab & "" & tab & "Limit to 2-3 fonts maximum for consistency"
|
|
527
|
+
end if
|
|
528
|
+
|
|
529
|
+
-- Font hierarchy (body text >= title size is wrong)
|
|
530
|
+
if titleFontSize > 0 and maxBodyFontSize > 0 and maxBodyFontSize ≥ titleFontSize then
|
|
531
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "formatting" & tab & "Font hierarchy issue: body text (" & ((maxBodyFontSize as integer) as string) & "pt) is same size or larger than title (" & ((titleFontSize as integer) as string) & "pt)" & tab & maxBodyShapeName & tab & "Title should be larger than body text - increase title size or decrease body size"
|
|
532
|
+
end if
|
|
533
|
+
|
|
534
|
+
-- Font size consistency across sibling content shapes (e.g., two-column/comparison slides)
|
|
535
|
+
-- If multiple non-title, non-empty content shapes have different body font sizes, flag it.
|
|
536
|
+
-- We sample the font size at the midpoint of each shape's text to get the body font size
|
|
537
|
+
-- (avoids headers which may be larger).
|
|
538
|
+
set contentFontSizes to {}
|
|
539
|
+
set contentShapeNames to {}
|
|
540
|
+
repeat with j from 1 to shapeCount
|
|
541
|
+
set isEmptyJ to item j of shapeIsEmpty
|
|
542
|
+
set isTitJ to item j of shapeIsTitle
|
|
543
|
+
set isSubJ to item j of shapeIsSubtitle
|
|
544
|
+
set nmJ to item j of shapeNames
|
|
545
|
+
-- Only compare body content shapes (not title, subtitle, slide number, or empty)
|
|
546
|
+
if not isEmptyJ and not isTitJ and not isSubJ then
|
|
547
|
+
if nmJ does not contain "Slide Number" then
|
|
548
|
+
-- Get body font size by sampling the midpoint character
|
|
549
|
+
try
|
|
550
|
+
set bShape to shape j of currentSlide
|
|
551
|
+
set bTR to text range of text frame of bShape
|
|
552
|
+
set charCount to count of characters of bTR
|
|
553
|
+
if charCount > 4 then
|
|
554
|
+
-- Sample at 60% through the text (past any header, into body)
|
|
555
|
+
set midChar to round (charCount * 0.6)
|
|
556
|
+
if midChar < 1 then set midChar to 1
|
|
557
|
+
set bodyFontSize to font size of font of character midChar of bTR
|
|
558
|
+
if bodyFontSize > 0 and bodyFontSize < 200 then
|
|
559
|
+
set end of contentFontSizes to bodyFontSize
|
|
560
|
+
set end of contentShapeNames to nmJ
|
|
561
|
+
end if
|
|
562
|
+
end if
|
|
563
|
+
end try
|
|
564
|
+
end if
|
|
565
|
+
end if
|
|
566
|
+
end repeat
|
|
567
|
+
if (count of contentFontSizes) ≥ 2 then
|
|
568
|
+
set minContentSize to item 1 of contentFontSizes
|
|
569
|
+
set maxContentSize to item 1 of contentFontSizes
|
|
570
|
+
set minContentName to item 1 of contentShapeNames
|
|
571
|
+
set maxContentName to item 1 of contentShapeNames
|
|
572
|
+
repeat with idx from 2 to (count of contentFontSizes)
|
|
573
|
+
set fs to item idx of contentFontSizes
|
|
574
|
+
if fs < minContentSize then
|
|
575
|
+
set minContentSize to fs
|
|
576
|
+
set minContentName to item idx of contentShapeNames
|
|
577
|
+
end if
|
|
578
|
+
if fs > maxContentSize then
|
|
579
|
+
set maxContentSize to fs
|
|
580
|
+
set maxContentName to item idx of contentShapeNames
|
|
581
|
+
end if
|
|
582
|
+
end repeat
|
|
583
|
+
if maxContentSize - minContentSize ≥ 3 then
|
|
584
|
+
set end of outputLines to "ISSUE" & tab & "warning" & tab & "formatting" & tab & "Inconsistent font sizes across content shapes: " & minContentName & " (" & ((minContentSize as integer) as string) & "pt) vs " & maxContentName & " (" & ((maxContentSize as integer) as string) & "pt)" & tab & "" & tab & "Use the same font size across all content shapes on the slide for visual consistency"
|
|
585
|
+
end if
|
|
586
|
+
end if
|
|
587
|
+
|
|
588
|
+
-- ==============================
|
|
589
|
+
-- CONTENT VALIDATION
|
|
590
|
+
-- ==============================
|
|
591
|
+
-- Note: Empty table check is skipped on macOS because PowerPoint's
|
|
592
|
+
-- AppleScript bridge does not support table cell introspection.
|
|
593
|
+
-- has_table returns true but table rows/columns/cells are inaccessible
|
|
594
|
+
-- (returns missing value), so we cannot distinguish empty from populated.
|
|
595
|
+
-- The Windows PptHealthChecker handles this check via C# Interop.
|
|
596
|
+
end if
|
|
597
|
+
end if
|
|
598
|
+
end repeat
|
|
599
|
+
|
|
600
|
+
set end of outputLines to "HEALTH_CHECK_END"
|
|
601
|
+
|
|
602
|
+
-- Join output with linefeeds
|
|
603
|
+
set text item delimiters to linefeed
|
|
604
|
+
set outputText to outputLines as string
|
|
605
|
+
set text item delimiters to ""
|
|
606
|
+
|
|
607
|
+
return outputText
|
|
608
|
+
end tell
|
|
609
|
+
end run
|
|
610
|
+
|
|
611
|
+
-- ==============================
|
|
612
|
+
-- HELPER FUNCTIONS
|
|
613
|
+
-- ==============================
|
|
614
|
+
|
|
615
|
+
on countWords(theString)
|
|
616
|
+
set wordCount to 0
|
|
617
|
+
set inWord to false
|
|
618
|
+
repeat with i from 1 to length of theString
|
|
619
|
+
set ch to character i of theString
|
|
620
|
+
if ch is " " or ch is return or ch is tab or ch is linefeed then
|
|
621
|
+
set inWord to false
|
|
622
|
+
else if not inWord then
|
|
623
|
+
set inWord to true
|
|
624
|
+
set wordCount to wordCount + 1
|
|
625
|
+
end if
|
|
626
|
+
end repeat
|
|
627
|
+
return wordCount
|
|
628
|
+
end countWords
|
|
629
|
+
|
|
630
|
+
on countLines(theString)
|
|
631
|
+
set lineCount to 0
|
|
632
|
+
set prevWasNewline to true
|
|
633
|
+
repeat with i from 1 to length of theString
|
|
634
|
+
set ch to character i of theString
|
|
635
|
+
if ch is return or ch is linefeed then
|
|
636
|
+
set prevWasNewline to true
|
|
637
|
+
else if prevWasNewline then
|
|
638
|
+
set lineCount to lineCount + 1
|
|
639
|
+
set prevWasNewline to false
|
|
640
|
+
end if
|
|
641
|
+
end repeat
|
|
642
|
+
return lineCount
|
|
643
|
+
end countLines
|
|
644
|
+
|
|
645
|
+
on countDoubleBullets(theString)
|
|
646
|
+
set bulletPatterns to {"- ", "• ", "* ", "– ", "— ", "· "}
|
|
647
|
+
set doubleBulletCount to 0
|
|
648
|
+
set theLines to my splitString(theString, return)
|
|
649
|
+
repeat with aLine in theLines
|
|
650
|
+
set trimmed to my trimStart(aLine as string)
|
|
651
|
+
repeat with pat in bulletPatterns
|
|
652
|
+
if trimmed starts with (pat as string) then
|
|
653
|
+
set doubleBulletCount to doubleBulletCount + 1
|
|
654
|
+
exit repeat
|
|
655
|
+
end if
|
|
656
|
+
end repeat
|
|
657
|
+
end repeat
|
|
658
|
+
return doubleBulletCount
|
|
659
|
+
end countDoubleBullets
|
|
660
|
+
|
|
661
|
+
on splitString(theString, theDelimiter)
|
|
662
|
+
set oldDelimiters to AppleScript's text item delimiters
|
|
663
|
+
set AppleScript's text item delimiters to theDelimiter
|
|
664
|
+
set theItems to text items of theString
|
|
665
|
+
set AppleScript's text item delimiters to oldDelimiters
|
|
666
|
+
return theItems
|
|
667
|
+
end splitString
|
|
668
|
+
|
|
669
|
+
on trimStart(theString)
|
|
670
|
+
set i to 1
|
|
671
|
+
repeat while i ≤ length of theString
|
|
672
|
+
set ch to character i of theString
|
|
673
|
+
if ch is not " " and ch is not tab then
|
|
674
|
+
exit repeat
|
|
675
|
+
end if
|
|
676
|
+
set i to i + 1
|
|
677
|
+
end repeat
|
|
678
|
+
if i > length of theString then return ""
|
|
679
|
+
return text i thru -1 of theString
|
|
680
|
+
end trimStart
|
|
681
|
+
|
|
682
|
+
on minVal(a, b)
|
|
683
|
+
if a < b then return a
|
|
684
|
+
return b
|
|
685
|
+
end minVal
|
|
686
|
+
|
|
687
|
+
on maxVal(a, b)
|
|
688
|
+
if a > b then return a
|
|
689
|
+
return b
|
|
690
|
+
end maxVal
|