Giter VIP home page Giter VIP logo

macos-automation's Introduction

Services

  1. Move to WPP - Automatically move image file(s) to their resolution folder
  2. Set Desktop Picture on Display N - Assign selected image file as wallpaper for desktop N
  3. Translate selected text - Translate selected text with google translate. Opens closable standalone window. Supported translations
    • Auto Detect -> English
    • Norwegian -> English
    • English -> Norwegian
  4. Get POSIX path - Copy POSIX path to clipboard of selected folder or file in MacOS Finder

More about MacOS services here: https://support.apple.com/kb/PH25241?viewlocale=en_US&locale=en_US

How to install a service

Copy or symlink the service/<worfklow file> file to /Users/$USER/Library/Services/<worfklow file>. Follow instructions below for either option..

  1. Open terminal
  2. cd <path to project>
  3. Choose either Copy or Symlink Symlink: ln -sf $PWD/service/<worfklow file> /Users/$USER/Library/Services/<worfklow file> Copy: cp service/<worfklow file> /Users/$USER/Library/Services/

Move to WPP

This service is useful for people who would like to keep their downloaded wallpapers in one place and stored in folders by their <width>x<height> folders with one click.

Dependencies

Default place for wallpaper files

By default, the files will be placed in /Users/$USER/Pictures/wpp/<width>x<height> folder. If you want to change this, you will have to open the workflow and change /Users/$USER/Pictures/wppwhatever path you want your resolution folders to reside in.

The workflow

Workflow will perform following steps for each file the service is run for.

  1. Find out the input image file resolution
  2. Make sure the destination directory exists
  3. Move the image file to the destination directory

Set Desktop Picture on Display N

While MacOS has built in service for setting the wallpaper for the main display, it does lack support for other displays. This service will apply the selected picture to as the wallpaper of N display

Dependencies

None

Translate selected text

Simple workflow that takes selected text as input, then encodes it and opens custom google translate url in website pop-up (Safari).

image

Dependencies

None

Get POSIX path

Dead simple.

  • Select file or folder in MacOS Finder
  • Right click and choose Get POSIX path
  • Paste it wherever you want it

P.S. Spaces are escaped as per POSIX best practices.

Dependencies

None

macos-automation's People

Contributors

jpuris avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.