• Stars
    star
    480
  • Rank 91,173 (Top 2 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of Automator workflows (services) that speed up your design / development process. Compatible with LaunchBar 6 actions

Tunghsiao Liu’s Automator Workflows

A collection of Automator workflows that speed up your design and development process. Compatible with LaunchBar 6 and 7.

Installation

Paste the following code at a Terminal prompt:

bash <(curl -fsSL https://raw.github.com/sparanoid/automator-workflows/go/install)

The script explains what it will do and then pauses before it does it. If you don’t trust it, download zip package and manually copy the workflows to ~/Library/Services/.

Other Notes

Please note that some workflows are using third-party scripts, the default path of them (for example imagemagick) is /usr/local/bin/imagemagick. (Installed by Homebrew).

Available Workflows

Create App Iconset

Create the following sizes of icon resources for your OS X app:

Filename Size of canvas (in pixels)
icon_512x512@2x 1024×1024
icon_512x512 512×512
icon_256x256@2x 512×512
icon_256x256 256×256
icon_128x128@2x 256×256
icon_128x128 128×128
icon_32x32@2x 64×64
icon_32x32 32×32
icon_16x16@2x 32×32
icon_16x16 16×16

The icon you created should be 1024×1024 with an sRGB color profile. You can read more about icon design guidelines here.

Note: You should always select the original file during the workflow, don’t press any key or click your mouse.

Create .icns

Create .icns file using iconutil. Command Line Tools from Xcode must be installed before using this workflow.

Unpack .icns

Unpack .icns into .iconset folder. Command Line Tools from Xcode must be installed before using this workflow.

Create favicon.ico

Create a favicon.ico from selected PNG image with ImageMagick.

Requires: imagemagick

Notes:

  1. The generated favicon.ico also works on all platforms include high-res devices. The different from “multi-resource” action is only 64x64 (4x) resource is generated, so you'll get smaller file size.
  2. Sometimes you'll get convert: iCCP: extra compressed data error when process PNGs exported from Photoshop, if you got this error, try to compress exported PNGs to remove extra metadata (for example using Compress Images workflow or ImageOptim).

Create favicon.ico (multi-resource)

Create a multi-resource favicon.ico from selected PNG image with ImageMagick, 64x64, 32x32, and 16x16 are included.

Requires: imagemagick

Notes:

  1. You should only select one image, then multi-resource icos are automatically scaled down.
  2. The selected image should be at least 48x48, for best result, use exact 48x48.

Add @2x (@3x) Suffix

Add @2x or (@3x) suffix for retina image assets.

Copy & Add @2x (@3x) Suffix

Copy (duplicate) selected images and rename them with @2x or (@3x) suffix. Useful when you want to downscale with your own method.

Create @2x (@3x) Image

Auto downscale retina images generated by PNG Express, or any “@2x” / “@3x” images.

Notes:

  1. Export your original images in retina size, WITHOUT @2x or (@3x) suffix.
  2. Create @3x Image doesn't downscale images properly at the moment. Need a better method to handle it.

Remove @2x (@3x) Suffix

Remove @2x and (@3x) suffix for retina image assets. Useful when you’re doing something wrong and need to recreate downscaled images one more time.

Convert Image Format

Convert selected images to specific format.

Convert WebP to PNG

Convert selected WebP images to PNG. dwebp must be installed via brew install webp.

Resize Images

Resize your images to specific size or by percentage.

Rename Selected Files

Rename Finder Items

What? You just bought A Better Finder Rename?

Create DMG Image

Create distributable, cross-platform hybrid DMG images using hdiutil, select a directory first to use this script. You’ll be prompted to enter a volume name for your image, then Voilà!

Note: This script doesn’t create “fancy” DMG for your OS X app.

Open with rmate

Open selected file with rmate.

Requires: rmate

Compress Images

Compress selected images based on file type, .png, .jpg, and .svg are supported. It auto detects the file type of selected images and compress them. OptiPNG, Pngcrush, jpegoptim, and svgo are used.

Requires:

  • optipng (bundled)
  • pngcrush (bundled)
  • jpegoptim
  • svgo

Notes:

  1. The default compress options for each type of images is the same as the individual compress workflow.
  2. It’s okay to run this workflow if you only install some of required dependencies, for example, you can just installed jpegoptim, but only .jpg will be compressed when you run this workflow, all other SVG files you selected will be skipped.
  3. The default optipng compress option is set to -o7 (smallest file size and slowest), you may need change that.
  4. The default pngcrush compress option is set to -brute -reduce -ow (try 138 different methods and do lossless color-type or bit-depth reduction), you may need change that.
  5. pngcrush will take longer time for large images.
  6. The default jpegoptim compress option is set to --strip-all --force --all-progressive (lossless compression, remove comment, Exif and ICC profile, force all outputs to be progressive), You may need change that.

Encode Selected Files Using Base64

Encode Selected Files using Base64 for data URI scheme.

Convert Selected Text to Audio File

Convert selected text to audio file (AIFF) in any application

Convert .ass to .srt

Convert .ass subtitles to .srt subtitles. sorz/asstosrt must be installed before using this workflow.

Author

Tunghsiao Liu

License

MIT

More Repositories

1

chinese-copywriting-guidelines

Chinese copywriting guidelines for better written communication/中文文案排版指北
13,136
star
2

7z

7-Zip Official Chinese Simplified Repository (Homepage and 7z Extra package)
HTML
990
star
3

almace-scaffolding

AMSF, a.k.a. Almace Scaffolding, a super-fast Jekyll framework fighting against the website obesity.
SCSS
320
star
4

lightense-images

A dependency-free pure JavaScript image zooming library less than 2 KB (gzipped). Inspired by tholman/intense-images
JavaScript
305
star
5

live-dl

Monitor and download live streams from YouTube
Shell
238
star
6

path-menu

Path 2.0 Flyout Menu using CSS (Less), contrib to Path (iOS app) by Tunghsiao Liu
CoffeeScript
81
star
7

itunes-artwork-grabber

Yet another iTunes artwork grabber for cover / icon lovers
JavaScript
57
star
8

cube.less

3D (animated) cube using only CSS (Less), originally used by LeanCloud (aka. AVOS Cloud)
CSS
54
star
9

opentype-features

The Complete CSS Demo for OpenType Features
CSS
37
star
10

userscript

My Userscripts
JavaScript
32
star
11

a-soul

Full-featured social media monitor that extracts data from a variety of services and pushes updates to Telegram or other platforms
JavaScript
30
star
12

proxy-cookbook

GFW is watching you
28
star
13

kladenets

Future-proof native CSS variables in :root
HTML
25
star
14

space-lover

Git-ified. Synced via git-svn. Magically add an extra space between Chinese characters and English letters / numbers / common punctuation marks
PHP
23
star
15

kai-12

The missing child theme of Twenty Twelve, A better interface based on Twenty Twelve, no need to change the default theme, no database option strings will be created. Install and go.
SCSS
23
star
16

slimpack

Lightweight Jetpack. Super-fast performance without modules that require contracting WordPress.com.
PHP
17
star
17

ansible-shadowsocks-libev

Ansible role for shadowsocks-libev
Shell
15
star
18

env.sh

Dead-simple .env file reader and generator
Shell
15
star
19

randomized

Erratic colors for machines and people, powered by machine learning and artificial intelligence, just kidding.
HTML
15
star
20

ansible-shadowsocks

Ansible role for Shadowsocks. create 100 Shadowsocks instances in 20 mins
Shell
13
star
21

start

Start Page for your browser
CoffeeScript
12
star
22

grunt-assets-inline

A grunt task which takes a html file, finds all the css, js links and images, and outputs a version with all the css, js and images (Base64) written inline.
HTML
12
star
23

DefaultKeyBinding.dict

Default keybindings fix for Mac OS X
10
star
24

omnibox-ncr

Force google.com (aka Google No Country Redirect) when searching in Google Chrome Omnibox
JavaScript
9
star
25

docker-compose-smokeping

SmokePing Docker Compose with Common Cloud Server Providers
8
star
26

awesome-awesome-awesome-awesome-awesome-awesome-awesome

List of awesome-awesome-awesome-awesome-awesome-awesome lists.
7
star
27

relative-url

A plugin applies wp_make_link_relative function to links (posts, categories, pages and etc.) to convert them to relative URLs. Useful for developers when debugging local WordPress instance on a mobile device (iPad. iPhone, etc.). This repo is git-flow synced.
PHP
7
star
28

grunt-uncss-inline

UnCSS your inline stylesheet to the next level. A fork of addyosmani/grunt-uncss doing the exact same thing, but does focus on processing the inline CSS only.
HTML
4
star
29

ansible-serverspeeder

[DEPRECATED] Ansible role for ServerSpeeder
3
star
30

rsshub-json

RSSHub JSON Mode
JavaScript
3
star
31

grunt-service-worker

Grunt sw-precache wrapper
JavaScript
3
star
32

ansible-pptp

Ansible role for PPTP VPN
3
star
33

vup.json

Extract bilibili vup info from vtbs.moe with user avatars
Python
3
star
34

docker-prince

Prince XML Docker image with ARM64/Apple silicon support based on official `aarch64-musl` binary
Dockerfile
3
star
35

weibo-like

Git-ified. Synced via SVN. Sina Weibo Like Button, adds Sina Weibo Like button on your site. A must-have plugin if your site visitors are mainly from China. 使用微博「赞」按钮,将生成的代码放置到你的博客、网站或其它支持HTML的位置,让你的用户轻松表达态度。当用户在您的站点上某个网页点击了赞按钮后,同时会同步一条包含网页内容的动态信息到微博显示。
PHP
3
star
36

ansible-php-fpm

Ansible role for php-fpm
Shell
2
star
37

core.less

A starter kit for Bootstrap for quick front-end development. Packages are managed by Bower.
CSS
2
star
38

make-your-website-accessible-in-china

How to make your website accessible in China? That's the question.
2
star
39

quotmarks-replacer

Quotmarks Replacer is a plugin disables wptexturize function that keeps all quotation marks and suspension points in half-width form. This repo is git-flow synced.
PHP
2
star
40

.github

1
star
41

awesome-cms

Awesome CMS
1
star
42

usercss

My UserCSS
CSS
1
star
43

replace_regex

A Liquid filter to perform regex replace
Ruby
1
star
44

ansible-fail2ban

Ansible role for fail2ban
Shell
1
star
45

match_regex

A Liquid filter to perform regex match
Ruby
1
star
46

ansible-nginx

Ansible role for nginx
1
star
47

grunt-sri-hash

A grunt task which hashes all inlined scripts and stylesheets with integrity attributes.
HTML
1
star
48

logos

Logos of Chinese startups and companies
1
star
49

voxgrowl

Yet another Growl theme, works for Vox
CSS
1
star
50

jsdom-doctype

JavaScript
1
star
51

abandobe

Disable agents/daemons and kill all running processes from Adobe for macOS
Shell
1
star
52

docker-derp

Tailscale DERP server in container
HCL
1
star
53

awesome-smime

Awesome (Survived) S/MIME CAs
1
star
54

java-zapper-osx

A Java SE uninstall script, zap all Java SE 6 files with only one command. OS X only
Shell
1
star
55

ansible-common

Ansible role for common setup (basic provision)
Shell
1
star
56

grunt-doctype

Minimal effort DOCTYPE transformation
JavaScript
1
star
57

ansible-resilio-sync

Install resilio-sync via Ansible
1
star
58

docker-ruby-node

Jekyll in Docker with Node.js + Grunt.js
Dockerfile
1
star
59

A-Basic-HTML5-Template-For-Any-Project

A tribute to https://www.sitepoint.com/a-basic-html5-template/
HTML
1
star
60

kai-11

The missing child theme of Twenty Eleven, A better interface based on Twenty Eleven, No need to change the default theme, no database option strings will be created. Install and go.
PHP
1
star
61

kai-10

The missing child theme of Twenty Ten, A better interface based on Twenty Ten, No need to change the default theme, no database option strings will be created. Install and go.
PHP
1
star
62

speedtest-list-server

SpeedTest.net Server List Algolia Pusher
JavaScript
1
star
63

index.html

Minimal one-page, one-HTTP-request, HTML5-valid template
1
star