Adobe After Effects ExtendScript Runner For VS Code
A Visual Studio Code extension that allows you to run Adobe After Effects ExtendScript code directly from VS Code without leaving your editor.
Just a quick vibe code project
- π One-Click Execution: Run scripts with
Cmd+R(macOS) orCtrl+R(Windows) - π Auto-Detection: Automatically detects installed After Effects versions
- π― Version Selection: Choose specific AE versions via Command Palette
- πΎ Smart File Handling: Works with saved files, unsaved files, and temporary scripts
- π§Ή Auto-Cleanup: Temporary files are automatically cleaned up after execution
- π Cross-Platform: Supports both macOS and Windows
- Open VS Code
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows) to open Command Palette - Type "Install Extension from Location" and select this extension folder
- The extension will be installed and activated automatically
- Copy this extension folder to your VS Code extensions directory:
- macOS:
~/.vscode/extensions/ - Windows:
%USERPROFILE%\.vscode\extensions\
- macOS:
- Restart VS Code
- The extension will be activated automatically
- Open any
.jsxor.jsfile containing ExtendScript code - Press
Cmd+R(macOS) orCtrl+R(Windows) - Your script will be sent to After Effects automatically!
// Create a new composition
var comp = app.project.items.addComp("My Comp", 1920, 1080, 1, 10, 30);
// Add a solid layer
var solidLayer = comp.layers.addSolid([1, 0, 0], "Red Solid", 1920, 1080, 1);
// Show a message
alert("Script executed successfully!");Access these commands via Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows):
- Shortcut:
Cmd+R/Ctrl+R - Executes the current file or selection in After Effects
- Opens a picker to select which After Effects version to target
- Shows all detected installations
- Includes auto-detect option (recommended)
Configure the extension through VS Code settings (Cmd+, / Ctrl+,):
- Type: Boolean
- Default:
true - Description: Automatically save files before execution
- Type: String
- Default:
${workspaceFolder}/.vscode/ae-temp-script.jsx - Description: Path for temporary files when document is unsaved
- Type: String
- Default:
""(empty) - Description: Always execute this specific file instead of current document
- Type: String
- Default:
"auto" - Description: Bundle identifier for After Effects version targeting
- Options:
"auto"- Auto-detect (recommended)"com.adobe.AfterEffects.application"- After Effects 2025+"com.adobe.AfterEffects"- After Effects 2024"com.adobe.aftereffects"- Legacy versions
- Type: String
- Default:
"C:/Program Files/Adobe/Adobe After Effects 2025/Support Files/AfterFX.exe" - Description: Path to AfterFX.exe executable
{
"aeScriptRunner.saveBeforeRun": true,
"aeScriptRunner.macAfterEffectsBundle": "auto",
"aeScriptRunner.tempFile": "${workspaceFolder}/.vscode/ae-temp-script.jsx"
}Uses JavaScript for Automation (JXA) via osascript to communicate with After Effects:
- Activates After Effects if not already active
- Executes the script file using
doScriptFile() - Works reliably on Intel and Apple Silicon Macs
Uses the After Effects command-line interface:
- Calls
AfterFX.exe -r scriptPathto execute scripts - Requires After Effects to be installed in standard location or configured path
- After Effects 2025+:
com.adobe.AfterEffects.application - After Effects 2024:
com.adobe.AfterEffects - Legacy versions:
com.adobe.aftereffects
- After Effects 2022, 2023, 2024, 2025
- Configurable executable path for custom installations
The extension intelligently handles different file states:
- Saved Files: Uses the file directly
- Unsaved Changes: Attempts to save silently, falls back to temporary file
- Untitled Documents: Always creates temporary file
- Configured File: Uses
executeFilesetting if specified
Temporary files are automatically cleaned up after execution.
- Check Installation: Ensure After Effects is installed in
/Applications/ - Try Version Picker: Run
AE: Choose After Effects Versioncommand - Manual Configuration: Set
macAfterEffectsBundlein settings - Check Console: Open Developer Tools β Console for detailed error info
- Verify Path: Check
winAfterEffectsExesetting points to correct executable - Run as Administrator: Some systems require elevated permissions
- Check AE Version: Ensure compatible After Effects version
- Extension handles save prompts automatically
- For persistent issues, disable
saveBeforeRunand work with saved files only
# Install dependencies
npm install
# Package extension
npm run packageae-script-runner/
βββ extension.js # Main extension logic
βββ package.json # Extension manifest
βββ README.md # This file
- Initial release
- Auto-detection of After Effects versions
- Cross-platform support (macOS/Windows)
- Command palette integration
- Smart file handling with auto-cleanup
- Configurable settings
This extension is provided as-is for personal and commercial use.
Found a bug or have a feature request? Open a PR!
Enjoy scripting with After Effects directly from VS Code! π¬β¨