Post

Upload To Google Photos From Finder Context Menu [Mac]

Dropover is a popular Mac app that simplifies dragging and dropping files. But it also integrates with cloud services like iCloud, Dropbox, Imgur, and making it easy to upload with just right click. One can even add custom scripts which means we can upload custom services like Google Photos. That script can also be used as Quick Action in Finder context menu.

However here we will create a simple Finder context menu using Shortcuts app, bash script, and rclone.

Setup Rclone

Install rclone using Homebrew:

1
2
3
4
5
6
7
8
9
10
brew install rclone

# Then setup rclone
rclone config

# Choose n for a new remote.
# Name the remote (e.g., GPhotos).
# Select 15 for Google Photos.
# Follow the prompts to authenticate with your Google account.
# Once authorized, rclone will save your configuration.

Rclone can only upload photos to album it creates. If you want existing album (created by some other API method) then replace access_token & refresh_token with previously generated tokens in ~/.rclone/rclone.conf

Create context menu using Ahortcuts App and a Simple Bash script

1
2
3
4
5
6
7
8
9
10
11
- Click the "+" button in the top-right corner to create a new shortcut.

- Click on the `{i}` button. Select "Use as Quick Action". Select Finder.

- It will add a receive section (as shown in the picture below)

- In it, only select "images". Type = "images". Select Multiple = ✔️

- Add List. List contains albums names. Modify it accordingly.

- Add "Choose from List". It will ask user to select an album.

Shortcuts-Upload-To-Gphotos-Steps

Add “Run Shell Script” Action

1
2
3
4
5
6
7
8
9
- In the search bar on the right, search for "Run Shell Script" and drag it into the shortcut editor.

- Shell: Choose /bin/zsh (or another shell you prefer).

- Pass Input: Select As arguments.

- Enter the script you want to execute.

- In the album_name=, right click-> Select variable->Choosen item
This post is licensed under CC BY 4.0 by the author.