{"id":30858538,"url":"https://github.com/dev-xiligroup/some-notes-about-applescript-in-sequoia","last_synced_at":"2025-09-07T14:13:17.702Z","repository":{"id":311719793,"uuid":"1044714914","full_name":"dev-xiligroup/Some-notes-about-Applescript-in-Sequoia","owner":"dev-xiligroup","description":"Some ideas and tips for AppleScript and the Shortcuts app.","archived":false,"fork":false,"pushed_at":"2025-09-06T17:59:56.000Z","size":9824,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T19:25:42.927Z","etag":null,"topics":["applescript","shell-scripts","shortcuts"],"latest_commit_sha":null,"homepage":"","language":"AppleScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-xiligroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-26T05:30:27.000Z","updated_at":"2025-09-06T17:59:59.000Z","dependencies_parsed_at":"2025-08-26T07:20:42.466Z","dependency_job_id":"487265d0-d655-4109-8439-7057301c10bb","html_url":"https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia","commit_stats":null,"previous_names":["dev-xiligroup/some-notes-about-applescript-in-sequoia"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-xiligroup%2FSome-notes-about-Applescript-in-Sequoia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-xiligroup%2FSome-notes-about-Applescript-in-Sequoia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-xiligroup%2FSome-notes-about-Applescript-in-Sequoia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-xiligroup%2FSome-notes-about-Applescript-in-Sequoia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-xiligroup","download_url":"https://codeload.github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-xiligroup%2FSome-notes-about-Applescript-in-Sequoia/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["applescript","shell-scripts","shortcuts"],"created_at":"2025-09-07T14:13:13.584Z","updated_at":"2025-09-07T14:13:17.690Z","avatar_url":"https://github.com/dev-xiligroup.png","language":"AppleScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Some notes about Applescript in Sequoia\n\nFollowing multiple developments on Mac Min M4 with MacOS Sequoia 15.6.1, here are some ideas and tips for AppleScript and the Shortcuts app.\n## System Events\nIf applications are not scriptable, you can use the System Events process, provided you are familiar with the interface elements. The example provided will focus on PDF printing, with choice of name and destination folder.\n\nSee the [folder](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/tree/main/SavePDFwithSystemEvents)\n\n## Reference to file\nAnother challenging topic is naming files and folders. It is also challenging to define their paths. Both Applescript and the Finder use the **colon** (:) as a separator in strings. The 'Posix File' object converts references of files using **slash** /‘.\n[this script 1](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/blob/main/testFolders.applescript)\n\nThis is very useful when AppleScripts are inserted into the flow of Shortcuts actions.\nA POSIX file object is displayed as a **slash**-delimited path preceded by a POSIX file specifier.\n\nIn most cases, it is strongly recommended to use this POSIX file object outside of the process Finder to define variables that are then used within the process.\n[this script 2](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/blob/main/Essai_POSIX.applescript)\n\nSee also this [pdf document](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/blob/main/PDF_docs/ShCu_ExampleWithInputVariables.pdf) ScreenShots of  Shortcuts. It explains the names of the folders and their paths.\n\n## Make a new (sub) folder\nWith Process Finder, to use \"Make new folder,\" it is necessary to test for the existence of the object beforehand, which is why the shell command is more efficient.\n[this script](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/blob/main/ShellBetter2makeFolder.applescript)\n\n## With ShortCuts and action “run Shell Script”\n\nWith “I ❤️ booklets” application (and his action inside Shortcuts), a booklet can be produced in your printer tray by creating a workflow.\nSee the [folder](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/tree/main/PrintBookletWorkflow)\n\n## ShortCuts and code explained in PDF documents\n\nThe PDF contains explanations about shortcuts including those about the code inside.This AppleScript code is copyable.\n\nSee the [folder with PDF](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/tree/main/PDF_docs)\n\n## About one shortcut (droplet) and making his preferences file (plist) like current app.\nSee the [folder with PDF](https://github.com/dev-xiligroup/Some-notes-about-Applescript-in-Sequoia/tree/main/Droplet%20and%20Preferences)\n\n## soon more tips...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-xiligroup%2Fsome-notes-about-applescript-in-sequoia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-xiligroup%2Fsome-notes-about-applescript-in-sequoia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-xiligroup%2Fsome-notes-about-applescript-in-sequoia/lists"}