Editorial Workflows

Drafts

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: This workflow has no description.

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Run Python Script ?
Source Code
#coding: utf-8

import sys, datetime
from objc_util import *
		


store = ObjCClass('EKEventStore').alloc().init()
event = ObjCClass('EKEvent').eventWithEventStore_(store)
now=datetime.datetime.now()
d1=str(now)
da1=d1[:4]+d1[5:7]+d1[8:10]+' 00:01'
da2=d1[:4]+d1[5:7]+d1[8:10]+' 23:59'

dateFormat = ObjCClass('NSDateFormatter').alloc().init()
dateFormat.setDateFormat_('yyyyMMdd HH:mm')
date1 = dateFormat.dateFromString_(da1) 
date2 = dateFormat.dateFromString_(da2) 

evttabs = []
predicate = store.predicateForEventsWithStartDate_endDate_calendars_(date1, date2, None)
events = store.eventsMatchingPredicate_(predicate)

if events is not None:	
  for eventss in events:
  	strdt = eventss.startDate()
  	datt=datetime.datetime.strptime(str(dateFormat.stringFromDate_(strdt)), '%Y%m%d %H:%M')
  	if '💯完成' in str(eventss.title()):
  		store.removeEvent_span_error_(eventss,0,None)
  		
Get Clipboard ?
Filter Lines ?
Output Lines That
  • Contain
  • Don't Contain
  • Match Regular Expression:
⚫️
Output Format
  • Only Lines
  • Lines and Ranges
Find / Replace ?
Find
,
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Find / Replace ?
Find
⚫️
  • Case-insensitive (A = a)
  • Case-sensitive (A ≠ a)
  • Regular Expression
Replace with
Show Alert ?
Title
Message
Input
Button 1
OK
Output Value
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Get Clipboard ?
Filter Lines ?
Output Lines That
  • Contain
  • Don't Contain
  • Match Regular Expression:
⚫️
Output Format
  • Only Lines
  • Lines and Ranges
Set Clipboard ?
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
drafts4://open?uuid=3413F55D-9A07-46DD-98E9-B8595E72BAEE&action=Record
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
OFF