Editorial Workflows

Set Password

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: A workflow which stores passwords (which should be in the clipboard when the workflow is run) in the keychain. Useful in conjunction with my other workflows, which assume passwords for services are stored using this one.

This workflow is based on part of the 'Post Markdown to WordPress' workflow written by Jason Kratz. Thanks to him for both writing that and for being very friendly in emails!

Shared by: @johncoxon

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Request Text Input ?
Title
Service name
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
service
Value
Input
Request Text Input ?
Title
Username
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
username
Value
Input
Get Clipboard ?
Set Variable ?
Variable Name
password
Value
Input
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import console
import keychain

# Get the name of the service, the username, and the password.
service = workflow.get_variable('service')
username = workflow.get_variable('username')
password = workflow.get_variable('password')

# Get and store the password.
keychain.set_password(service,username,password)
workflow.set_output('Success')