Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
Add `Combine Lists` action

Add `Get Music Playlists` action

Add `Filter List` action

Add `Truncate List` action

Add `Get Emojis` action

1.2.0

Add `Send Feedback` action

Add `Is Audio Playing` action

Add `Is Bluetooth On` action

Add `Is Dark Mode` action

Add `Write or Edit Text` action

Improve the welcome screen

Add `Get User Details` action

Add `Is Connected to VPN` action

Add `Edit URL` action

1.3.0

Get `Get Title of URL` action

Add `Get Battery State` action

Add `Is Low Power Mode` action

Use larger font size in the text editor

Add `Remove Non-Printable Characters` action

Add `Format Currency` action

Add `Hide Shortcuts App` action

Add `Get Running Apps` action

Add `Spell Out Number` action

1.4.0

Add `Get Audio Playback Destination` action

Add `Is Silent Mode On` action

Fixes #8

Add `Haptic Feedback` action

Fixes #6

Add `Get File Icon` action

1.5.0

Support non-HTTPS URLs in the "Get Title of URL" action

1.5.1

Add `Transform Lists` action (#17)

Add `Truncate Text` action

Add `Round Number to Multiple` action

Fixes #11

Add `Create Color Image` action

1.6.0

Validate URL scheme in `Create URL` action

Because Foundation throws an exception if it's invalid, which we cannot handle.

Add `Is Online` action

Minor tweaks

Add `Geo URI` action

Fixes #21

Add `Symbol Image` action

1.7.0

Fix `SymbolImage` action for larger sizes

Add `Is Reachable` action

Add `Parse CSV` action

1.8.0

Fix “Parse CSV” action description

1.8.1

Add `Scan QR Code from Image` action (#25)

Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>

Various tweaks

Add `Pretty Print Dictionaries` action

Add `Parse JSON5` action

Add `Merge Dictionaries` action

Add `Scan Documents` action

Add `Format Duration` action

Add `Transcribe Audio` action

Add `Get Unsplash Image` action

1.9.0

Fix an issue with the “Transcribe Audio” action

Add `Choose from List (Extended)` action

Add `Generate CSV` action

1.10.0

Add `Is Screen Locked` action

Minor tweaks

Add `Is Wi-Fi On` action

Fixes #33

Add `Get Related Words` action

1.11.0

Minor tweaks

Add `Get Query Item Value from URL` action

Fixes #36

Add `Get Query Items from URL` action

Add `Get Query Items from URL as Dictionary` action

Add `Get Device Orientation` action

Add `Is Device Orientation` action

Add `Format Number — Compact` action

1.12.0

`Transform Text`: Support transliterating text into other scripts (#42)

Minor tweaks

1.13.0

Minor tweaks

Fix reading QR codes from images with transparent background

Fixes #47

1.13.1

Minor tweaks

Rewrite the app and require macOS 13 and iOS 16

Fixes #57

Add `Format Person Name` action

Add `Blur Images` action

Add `Play Alert Sound` action

Add `Flash Screen` action

Add `Calculate with Soulver` action

`Transform Text`: Add `Slugify` transformation

Add `Authenticate` action

Add `Convert Coordinates to Location` action

Add `Get Index of List Item` action

Add `Reverse Lines` action

Add `Ask for Text with Timeout` action

Add `Is Cellular Data On` action

Add `Hex Encode` action

Refactor

Add `Overwrite File` action

Add `Generate Random Data` action

Fix macOS compatibility

2.0.0

Add back `Calculate with Soulver` action

Bug fixes

2.0.1

Add `Get Map Image of Location` action

Add `Get High-Resolution Timestamp` action

Use extension again

2.1.0

Add `Get Random Number from Seed` action

Fixes #80

Various tweaks

2.1.1

Minor tweaks

2.1.2

`Is Dark Mode On`: Fix iOS 16.2 compatibility

`Ask for Text with Timeout`: Add type parameter

Fixes #84

Add printer actions

Fixes #48

2.2.0

Minor tweaks

2.2.1

Tweaks

Fixes #104

Add `Is Host Reachable` action

Fixes #58

Add `Open URLs with App` action

Add `Global Variable` actions

Fixes #96

2.3.0

Tweaks

2.3.1

Tweaks

Fixes #122

Add `Truncate Number` action

2.4.0

Add `Set Uniform Type Identifier` action

Add `Get Average Color of Image` action

Add `Get Actions Version` action

Tweaks

Add `Ask ChatGPT` action

2.5.0

`Ask ChatGPT`: Improve error handling

2.5.1

Tweaks

2.5.2

Tweaks

Add `Get Dominant Colors of Image` action

`Ask ChatGPT`: Add more parameters

Add `Wait Milliseconds` action

2.6.0

Tweaks

Fixes #136

Add `Get Device Details (Extended)` action

Tweaks

Add `Invert Images` action

Add `Get Boolean from Input` action

Add `Is Day` action

2.7.0

Add `Get Modifier State` action

Improve contributing guide

Add `Boolean` action

Meta tweaks

Fix problem with some actions that require temporary directory

Fixes #140

Meta tweaks

2.8.0

Tweaks

2.8.1

Add `Is Cellular Low Data Mode` action

Fix the `Haptic Feedback` action

Remove `Ask ChatGPT` action

See https://sindresorhus.com/ai-actions for replacement.

Add `Is Device Locked` action

Tweaks

2.9.0

Add `Create Menu Item` action (#144)

Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>

Code style tweaks

Clean up #144

Tweaks

Add `Combine Videos` action

Tweaks

Fixes #162

Add `Is Accessibility Feature On` action

Fixes #163

Tweaks

Add `Color` action

Add `Get Average Color` action

Add `Get Image Location` action

Add `Set Image Location` action

Add `Is Shaking Device` action

Tweaks

Fixes #174

2.10.0

Add `Is Call Active` action

Tweaks

Add `Authenticate (New)` action

Add `Get Compass Heading` action

Require macOS 14 and iOS 17

Add `Is Device Moving` action

Add `Get Device Motion Data` action

Add `Get Bluetooth Devices` action

Tweaks

3.0.0

Add `Get Elevation` action

Add `Find Music Playlist` action

Fixes #212

Tweaks

Fixes #206
Fixes #214

3.1.0

Tweaks

Add `Encrypt File` action

Fixes #220

Add `Encrypt Text` action

Fixes #220

Add `Is Camera On` action

Add `Is Conforming to Uniform Type Identifier` action

Add `Join Wi-Fi` action

Fixes #223

Add `Named Clipboard` action

Add `Get Sentences from Text` action

Add `Get Paragraphs from Text` action

Tweaks

Fixes #229

Add `Is Microphone On` action

Tweaks

3.2.0

Add `Is Time` action

Tweaks

Fixes #244
Fixes #248

3.3.0

Init
  • Loading branch information
sindresorhus committed Sep 14, 2024
0 parents commit f7dbb09
Show file tree
Hide file tree
Showing 8 changed files with 347 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/action_proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Action proposal
description: Have an idea for a new action?
title: 'Action proposal: '
labels:
- new action
- evaluating
body:
- type: markdown
attributes:
value: |
Before opening a new issue:
- Make sure the Shortcuts app does not already provide it
- Look for existing [open or closed rule proposals](https://github.com/sindresorhus/Actions/issues?q=is%3Aissue+label%3A%22new+action%22)
- Send a feature request to Apple too, either through Feedback Assistant or [here](https://www.apple.com/feedback/macos.html)
- type: textarea
validations:
required: true
attributes:
label: Description
description: Describe the action and what problems it solves.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Bug report
description: Encountered an issue?
labels:
- bug
body:
- type: textarea
validations:
required: true
attributes:
label: Description
description: Describe the bug and how to reproduce it.
- type: input
validations:
required: true
attributes:
label: macOS/iOS version
- type: input
attributes:
label: Shortcut URL
description: Optionally provide a URL to a public shortcut that reproduces the bug.
50 changes: 50 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contributing guidelines

## Suggesting a new action

[Submit an idea here.](https://github.com/sindresorhus/Actions/issues/new/choose)

## Submitting a new action

*Submitting an action requires advanced Swift knowledge. I don't have time for low-quality pull requests.*

### Prerequisite

- [Open an issue](https://github.com/sindresorhus/Actions/issues/new/choose) for discussion first.
- The action name must start with a verb.
- One action addition per pull request, unless they are connected.
- Please help review the other open pull requests and action proposals.

#### Resources

- [Dive into App Intents - WWDC2022](https://developer.apple.com/videos/play/wwdc2022/10032/)
- [Shortcuts - Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/technologies/siri/shortcuts-and-suggestions)

### Creating the action

- Open the Xcode project.
- Decide whether the action should reside in the intents extension or the app. Prefer the intents extension. Generally, only actions requiring significant memory or ones that open the main app should be in the app target.
- Create a new file in the `Actions` folder (in the correct target) named after the intent you are creating.
+ The file should be alphabetically sorted in Xcode.
- Keep the naming, description, and code style consistent with existing actions.
- Implement the logic. Try to create reusable extensions whenever it makes sense.
- Run the “Actions” target, which will open the app and then open the Shortcuts app. You can then test out your work.
- Add the action to `readme.md` and `app-store-description.txt`.

#### Code style

- Use tab-indentation.
- Use `/**\nDescription.\n*/` comment style over `\\\ Description.`.
- Prefer `let` whenever possible.
- Make types and variables `private` whenever possible.
- Make sure linting passes.
- Keep all the code related to the action in a single file. Reusable extensions can be put in `Utilities.swift`.

### General

- Make sure you test on both macOS and iOS before submitting a pull request.

### Pull request

- The pull request should be titled ``Add `Get Foo` action`` where `Get Foo` is the name of the action.
- Include a `Fixes #12` notation in the pull request description referencing the related issue.
Binary file added Stuff/AppIcon-readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Stuff/screenshot1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
244 changes: 244 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
<div align="center">
<br>
<a href="https://sindresorhus.com/actions">
<img src="Stuff/AppIcon-readme.png" width="200" height="200">
</a>
<h1>Actions</h1>
<p>
<b>Additional actions for the Shortcuts app</b>
</p>
<br>
<br>
<br>
</div>

The app provides lots of powerful extra actions for the Shortcuts app on macOS, iOS, and visionOS. These actions make it significantly easier to create shortcuts.

[**Submit action idea**](https://github.com/sindresorhus/Actions/issues/new/choose)

---

## Where is the source code?

The app is no longer open-source. Despite initial hopes for community collaboration, the project received minimal contributions while facing challenges with App Store clones. The effort required to maintain it as open-source outweighed the benefits.

Rest assured, the app remains free, actively developed, and committed to providing powerful Shortcuts actions through regular updates. I will continue using GitHub issues for action requests and bug reports.

---

*Want to run shortcuts directly from the iOS Lock Screen? Check out my [Quick Launch](https://sindresorhus.com/quick-launch) app.*

*And trigger shortcuts on your Mac from your iOS device with my [Hyperduck](https://sindresorhus.com/hyperduck#shortcuts) app.*

*And for high-quality transcription, see my [Aiko](https://sindresorhus.com/aiko) app.*

---

## Download

[![](https://sindresorhus.com/assets/download-on-app-store-badge.svg)](https://apps.apple.com/app/id1586435171)

*Requires minimum macOS 14, iOS 17, or visionOS 1*

**Older versions (macOS)**

- [2.10.0](https://github.com/sindresorhus/Actions/releases/download/v2.10.0/Actions.2.10.0.zip) for macOS 13+
- [1.13.1](https://github.com/sindresorhus/Actions/releases/download/v1.13.1/Actions.1.13.1.-.macOS.12.zip) for macOS 12+

## Included actions

- Add to List
- Apply Capture Date
- Ask for Text with Timeout
- Authenticate
- Blur Images
- Boolean
- Calculate with Soulver
- Choose from List (Extended)
- Clamp Number
- Color
- Combine Lists
- Combine Videos
- Convert Coordinates to Location
- Convert Date to Unix Time
- Convert Location to Geo URI
- Convert Unix Time to Date
- Create Color Image
- Create Menu Item
- Create URL
- Edit URL
- Encrypt File
- Encrypt Text
- Filter List
- Find Music Playlist <sup>(iOS-only)</sup>
- Flash Screen <sup>(macOS-only)</sup>
- Format Currency
- Format Date Difference
- Format Duration
- Format Number — Compact
- Format Person Name
- Generate CSV
- Generate Haptic Feedback <sup>(iOS-only)</sup>
- Generate Random Data
- Generate Random Text
- Generate UUID
- Get Audio Playback Destination <sup>(iOS-only)</sup>
- Get Average Color
- Get Average Color of Image
- Get Battery State
- Get Bluetooth Device
- Get Bluetooth Devices
- Get Boolean from Input
- Get Compass Heading <sup>(iOS-only)</sup>
- Get Default Printer <sup>(macOS-only)</sup>
- Get Device Details (Extended)
- Get Device Motion Data <sup>(iOS-only)</sup>
- Get Device Orientation
- Get Dominant Colors of Image
- Get Elevation <sup>(iOS-only)</sup>
- Get Emojis
- Get File Icon <sup>(macOS-only)</sup>
- Get File Path
- Get High-Resolution Timestamp
- Get Image Location
- Get Index of List Item
- Get Map Image of Location
- Get Modifier Key State <sup>(macOS-only)</sup>
- Get Paragraphs from Text
- Get Printers <sup>(macOS-only)</sup>
- Get Query Item Value from URL
- Get Query Items from URL
- Get Query Items from URL as Dictionary
- Get Random Boolean
- Get Random Color
- Get Random Date and Time
- Get Random Emoticon
- Get Random Floating-Point Number
- Get Random Number from Seed
- Get Related Words
- Get Running Apps <sup>(macOS-only)</sup>
- Get Sentences from Text
- Get SF Symbol Image
- Get Title of URL
- Get Uniform Type Identifier
- Get User Details
- Global Variable
- Hex Encode
- Hide Shortcuts App
- Invert Images
- Is Accessibility Feature On
- Is Audio Playing <sup>(iOS-only)</sup>
- Is Bluetooth On
- Is Call Active <sup>(iOS-only)</sup>
- Is Camera On <sup>(macOS-only)</sup>
- Is Cellular Data On
- Is Cellular Low Data Mode On
- Is Conforming to Uniform Type Identifier
- Is Connected to VPN <sup>(iOS-only)</sup>
- Is Dark Mode On
- Is Day
- Is Device Locked
- Is Device Moving
- Is Device Orientation
- Is Host Reachable
- Is Low Power Mode On
- Is Microphone On <sup>(macOS-only)</sup>
- Is Online
- Is Screen Locked <sup>(macOS-only)</sup>
- Is Shaking Device
- Is Silent Mode On <sup>(iOS-only)</sup>
- Is Time
- Is Web Server Reachable
- Is Wi-Fi On <sup>(macOS-only)</sup>
- Join Wi-Fi <sup>(iOS-only)</sup>
- Merge Dictionaries
- Named Clipboard <sup>(macOS-only)</sup>
- Open URLs with App <sup>(macOS-only)</sup>
- Overwrite File
- Parse CSV
- Parse JSON5
- Play Alert Sound <sup>(macOS-only)</sup>
- Pretty Print Dictionaries
- Remove Duplicate Lines
- Remove Duplicates from List
- Remove Emojis
- Remove Empty Lines
- Remove from List
- Remove Non-Printable Characters
- Reverse Lines
- Reverse List
- Round Number to Multiple
- Sample Color from Screen <sup>(macOS-only)</sup>
- Scan Documents <sup>(iOS-only)</sup>
- Scan QR Codes in Image
- Set Creation and Modification Date of File
- Set Default Printer <sup>(macOS-only)</sup>
- Set Image Location
- Set Uniform Type Identifier
- Shuffle List
- Sort List
- Spell Out Number
- Transform Lists
- Transform Text *(camel case, slugify, transliteration, etc.)*
- Transform Text with JavaScript
- Trim Whitespace
- Truncate List
- Truncate Number
- Truncate Text
- Wait Milliseconds
- Write or Edit Text

#### Want more shortcut actions?

- High-quality transcription (speech to text) in 100 languages → [Aiko](https://sindresorhus.com/aiko)
- Trigger shortcuts on your Mac from your iOS device → [Hyperduck](https://sindresorhus.com/hyperduck#shortcuts)
- Show text in menu bar → [One Thing](https://sindresorhus.com/one-thing)
- Open URLs in a specific browser → [Velja](https://sindresorhus.com/velja)
- Remove tracking parameters from URLs → [Velja](https://sindresorhus.com/velja) & [Pure Paste](https://sindresorhus.com/pure-paste)
- Generate images from text with AI locally → [Amazing AI](https://sindresorhus.com/amazing-ai)
- Clear clipboard formatting → [Pure Paste](https://sindresorhus.com/pure-paste)
- Get internet speed → [Speediness](https://sindresorhus.com/speediness)
- Join video calls → [Dato](https://sindresorhus.com/dato)
- Put text on the iOS Lock Screen → [Any Text](https://sindresorhus.com/any-text)
- Get random animated GIF → [Jiffy](https://sindresorhus.com/jiffy)
- Get clipboard items → [Pasteboard Viewer](https://sindresorhus.com/pasteboard-viewer)
- Preview app icons → [Icon Preview](https://sindresorhus.com/icon-preview)
<!-- - Use the ChatGPT API → [AI Actions](https://sindresorhus.com/ai-actions) -->

## Screenshot

![](Stuff/screenshot1.jpg)

### Non-App Store version for macOS

A special version for users that cannot access the App Store. It won't receive automatic updates. I will update it here once a year.

[Download](https://github.com/sindresorhus/meta/files/13718302/Actions.3.0.0.zip) *(3.0.0 · macOS 14+)*

## FAQ

#### The actions don't show up in the Shortcuts app

Restart your device. This is caused by a iOS/macOS bug.

#### I get a “errorDomain error 2” error when running an action

Restart your device. This is caused by a iOS/macOS bug.

#### Why is this free without ads?

I just enjoy making apps. Consider leaving a nice review on the App Store.

#### Can I contribute localizations?

I don't plan to localize the app.

#### [More FAQs…](https://sindresorhus.com/apps/faq)

## Other apps

- [Gifski](https://github.com/sindresorhus/Gifski) - Convert videos to high-quality GIFs
- [System Color Picker](https://github.com/sindresorhus/System-Color-Picker) - The macOS color picker as an app with more features
- [Plash](https://github.com/sindresorhus/Plash) - Make any website your Mac desktop wallpaper
- [Dato](https://sindresorhus.com/dato) - Better menu bar clock with calendar and time zones
- [More apps…](https://sindresorhus.com/apps)

0 comments on commit f7dbb09

Please sign in to comment.