Skip to content

Instantly share code, notes, and snippets.

@freklov
freklov / Add Event(s)
Created April 21, 2019 12:57
Apple Shortcuts: Fast adding multiple occurances of an event and add the same events to a second calendar.
Fast adding multiple occurances of an event and add the same events to a second calendar. For the second calendar allow different start and end times.
How it works:
Choose a date and time, choose next date and time, ....., select subject, location, calendar.
Choose a secondary calendar, select adjustments of start and end times, justify subject and location.
All chosen dates are created in both calendars, in the secondary calendar (optional) with an an
earlier start time and a later end time.
How is this helpful? I have the obstacle, that I have a business and a private calendar. For data privacy requirements,
@freklov
freklov / contacts2vcard.applescript
Created October 29, 2017 06:57
AppleScript for Apple Contacts: Export all contacts as individual vCards
-- requires a folder "vCards" on the user desktop
--
set desktopPath to (path to the desktop folder as string) & "vCards"
alias desktopPath
tell application "Contacts"
repeat with cardPerson in people
set nameOfvCard to name of cardPerson & ".vcf"
set outFile to (open for access file (desktopPath & ":" & nameOfvCard) with write permission)
write (vcard of cardPerson as text) to outFile
@freklov
freklov / Workflow-TextfileToReminders.md
Last active June 16, 2017 06:37
Workflow.is for iOS Reminders: Create a checklist in Reminders app using a plain text file located on a cloud storage.

This workflow allows you to create or add checklist items to a dedicated list in the Reminders app and to automatically open Reminders app when finishing. If the list contains not yet done items, the workflow asks you whether to keep or to delete these items.

Howto

  • Prepare a plain text file with checklist items.
  • Each line describes a single item.
  • Safe the plain text file to iCloud Drive or any other Cloud Service that is available through iOS’s file picker service.
@freklov
freklov / EvernoteToThings.applescript
Created April 23, 2017 07:08
AppleScript for Things: Copy internal URL of Evernote Note and make a todo in Things with Quick Entry
-- create automator service
-- Drag & Drop "Actions:Utilities:Run AppleScript" into service
--
-- Services receives: no input
-- in "Evernote.app"
-- copy and paste the AppleScript commands into action
on run {input, parameters}
-- get name and link of selected note
@freklov
freklov / firefoxURLtoThings.applescript
Created April 22, 2017 17:43
AppleScript for Things: AppleScript Snippet for Automator Service: copy Firefox URL into new Things Todo (Using QuickEntry with AutoFill)
-- create automator servce
-- Drag & Drop "Actions:Utilities:Run AppleScript" into service
--
-- Services receives: no input
-- in <optional: choose specific application>
-- copy and paste the AppleScript commands into action
-- update "tell application" if necessary
on run {input, parameters}
@freklov
freklov / Workflow-SiriToWunderlist.md
Last active April 2, 2017 10:08
Workflow.is for Wunderlist: Provide a way to add items to Wunderlist with Siri

Add Wunderlist items with the help of Siri on iOs.

  • „Siri remember me to buy milk“.
  • „Siri remember me to call dad“.

Use Siri to add new reminders to a list. Run this workflow to import Reminders from that list into Wunderlist and to remove the importet items from the Reminders' list.

https://workflow.is/workflows/01d23b425e4e498e9bf12e968fc6f9d5

Does only import reminders without alarm into Wunderlist. You need to change the filter conditions for reminders and the Wunderlist import action, if you want to import the alarms, too.

@freklov
freklov / things-lostfound.applescript
Created April 2, 2017 09:45
AppleScript for Things: Look for orphaned to dos of Next, Scheduled, Someday, Projects lists and assignes the tag "Lost+Found"
# things-lostfound freklov 04/02/2017
# Looks for orphaned to dos of Next, Scheduled, Someday, Projects lists and assignes the tag "Lost+Found"
#
# Requirements
# Requires a an tag named "Lost+Found"
property ThingsLostFoundTag : "Lost+Found"
# ensure that lost+found tag already exists
@freklov
freklov / things-tagged_reminders.applescript
Created April 2, 2017 08:14
AppleScript for Things: Copy Things to dos with a specific tag to a dedicated Reminders list
# things-tagged_reminders freklov 04/02/2017
# Copy Things to dos with a specific tag to a dedicated Reminders list
#
# ATTENTION
# if two reminders lists with the same name exist, it is not forseeable which list is choosen
#
property ThingsTagName : "At Work" -- this is the name of the Things tag
@freklov
freklov / reminders-delete_completed.applescript
Last active April 1, 2017 20:56 — forked from poritsky/Delete Completed Reminders.applescript
AppleScript: Delete completed reminders from from a dedicated list of Apple's Reminders
# reminders-delete_completed freklov 04/01/2017
# Delete completed reminders from from a dedicated list of Apple's Reminders
#
# ATTENTION
# if two reminders lists with the same name exist, it is not forseeable which list is choosen
#
# Fork from
# https://gist.github.com/poritsky/8d8aec063216ed16b9b5
#
@freklov
freklov / things-today_reminders.applescript
Last active April 1, 2017 20:54
AppleScript for Things: Copy Things to dos in list "Today" to a list in Apple's Reminders
# things-today_reminders freklov 04/01/2017 a
# Copy Things to dos in list "Today" to a list in Apple's Reminders
#
# ATTENTION
# if two reminders lists with the same name exist, it is not forseeable which list is choosen
#
# Restrictions
# projects in today list are not extracted
#