https://github.com/vanstrouble/safari-control-alfred-workflow
Alfred Workflow for controlling and navigating Safari windows.
https://github.com/vanstrouble/safari-control-alfred-workflow
alfred-workflow applescript javascript safari shell shell-script workflow
Last synced: 10 months ago
JSON representation
Alfred Workflow for controlling and navigating Safari windows.
- Host: GitHub
- URL: https://github.com/vanstrouble/safari-control-alfred-workflow
- Owner: vanstrouble
- License: apache-2.0
- Created: 2024-02-29T23:35:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-02T22:59:20.000Z (12 months ago)
- Last Synced: 2025-07-02T23:29:05.683Z (12 months ago)
- Topics: alfred-workflow, applescript, javascript, safari, shell, shell-script, workflow
- Language: Shell
- Homepage:
- Size: 1.35 MB
- Stars: 19
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
#
Safari Control | Alfred Workflow
Open new Safari windows anywhere, sneak into private browsing, switch profiles like you’re hiding something, and zip through tabs like your boss is walking in.
## Download
- Available on the Alfred Gallery. [Get it here](https://alfred.app/workflows/vanstrouble/safari-control/).
- You can also download it directly from GitHub [here](https://github.com/vanstrouble/new-safari-window-alfred-workflow/releases/latest).
## Usage
### New window (sw)

Opens a new Safari window in the current space.
- **Keyword:** `sw`
- ⌘↩ Open a new private window
#### Examples:
| Command | Description |
|-----------------|-----------------------------------------------------------------------------|
| `sw` | Opens a new Safari window in the current space. |
| `sw x3` | Opens 3 new Safari windows in the current space. |
| `sw URL` | Opens a new Safari window with the specified URL. |
| `sw + Command (⌘)` | Opens a new tab in the current Safari window instead of creating a window. |
### Open Safari window profiles (swp)

List and open Safari windows using up to 5 customizable profiles (e.g., work, personal, school).
- **Keyword:** `swp`
Use `sw p[number]` to instantly open a new Safari window with the selected profile.
#### Examples:
| Command | Description |
|-----------------|-----------------------------------------------------------------------------|
| `swp` | Lists available profiles (Profile 1, …, Profile 5). |
| `sw p1` | Opens a new Safari window using Profile 1. |
| `sw p2` | Opens a new Safari window using Profile 2. |
| `sw p3` | Opens a new Safari window using Profile 3. |
**Note:** Profiles without assigned names in the workflow configuration won't appear in the list, allowing for a cleaner interface with only the profiles you actually use.
### List Safari tabs (swt)

Browse all open Safari tabs and search by title or URL to instantly bring the one you need into focus.
- **Keyword:** `swt`
- ⌘↩ Copy the URL of the tab
- ⌃↩ Close the tab
### Copy current tab URL (swu)

Copies the URL of the currently focused Safari tab directly to your clipboard, allowing for quick sharing or referencing.
- **Keyword:** `swu`
### Open current tab in private mode (stp)

Extracts the current tab (the one you are currently viewing) and opens it in a new private browsing window.
- **Keyword:** `stp`
- ⌘↩ Close the tab in the normal browsing windows.
## Customization
Customize the workflow to fit your style: change the default keywords, assign hotkeys to trigger actions instantly, and rename the default profiles to match your Safari setup. All settings can be adjusted directly in Alfred during or after installation.
## Acknowledgments
- This workflow is inspired in [Caio Gondim's one](https://github.com/caiogondim/alfred-chrome-window-workflow?tab=readme-ov-file)