Repository: svg/svgo-osx-folder-action
Branch: master
Commit: b53acb7f1b06
Files: 3
Total size: 1.3 KB
Directory structure:
gitextract_4qlzifos/
├── README.md
├── install.sh
└── svgo.applescript
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
## OS X Folder Action for SVGO, v0.0.1
1. install [SVGO](https://github.com/svg/svgo)
2. `curl -sS https://raw.githubusercontent.com/svg/svgo-osx-folder-action/master/install.sh | sh`
3. attach Folder Action to some folder:


4. drag-n-drop `.svg`-files to this folder
5. hurray, your files are optimized!

================================================
FILE: install.sh
================================================
#!/bin/sh
SCRIPTS_PATH="$HOME/Library/Scripts/Folder Action Scripts"
mkdir -p "$SCRIPTS_PATH"
curl -sSO https://raw.githubusercontent.com/svg/svgo-osx-folder-action/master/svgo.applescript
osacompile -o "$SCRIPTS_PATH/svgo.scpt" svgo.applescript
rm svgo.applescript
================================================
FILE: svgo.applescript
================================================
on adding folder items to this_folder after receiving these_items
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
set the file_path to the POSIX path of this_item
try
do shell script "/bin/bash -l -c 'svgo \"" & file_path & "\"'"
on error errStr number errorNumber
display dialog "Error: " & errStr buttons {"OK"} with icon stop
return number
end try
end repeat
end adding folder items to
gitextract_4qlzifos/ ├── README.md ├── install.sh └── svgo.applescript
Condensed preview — 3 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2K chars).
[
{
"path": "README.md",
"chars": 536,
"preview": "## OS X Folder Action for SVGO, v0.0.1\n\n1. install [SVGO](https://github.com/svg/svgo)\n2. `curl -sS https://raw.githubus"
},
{
"path": "install.sh",
"chars": 268,
"preview": "#!/bin/sh\n\nSCRIPTS_PATH=\"$HOME/Library/Scripts/Folder Action Scripts\"\n\nmkdir -p \"$SCRIPTS_PATH\"\ncurl -sSO https://raw.gi"
},
{
"path": "svgo.applescript",
"chars": 524,
"preview": "on adding folder items to this_folder after receiving these_items\n\n repeat with i from 1 to number of items in these_"
}
]
About this extraction
This page contains the full source code of the svg/svgo-osx-folder-action GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 3 files (1.3 KB), approximately 464 tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.