Skip to content

Instantly share code, notes, and snippets.

View logic2design's full-sized avatar
🏠
Working from home

Logic2Design logic2design

🏠
Working from home
View GitHub Profile
@logic2design
logic2design / Create Project Folders.applescript
Last active January 14, 2024 00:10
This routine will create a Project folder in a number of different apps.
##############################################
# Title: 2nd Brain Project Folders - KM Version
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 17 July 2022
@logic2design
logic2design / Devonthink Daily Journal.applescript
Last active December 9, 2023 22:09
Will create a daily Journal entry with Daily Events, Quote of the Day, World and Local News Headlines and Weather Condtion
#################################################################################
# Title: Create Daily Journal Entry in Devonthink, with Daily Events, Quote of the Day, World & Local News and Weather Condtion
#################################################################################
# Iain Dunn
# Logic2design.com
# logic2design@icloud.com
# Contributors, inspration and sources
# Based on script by Chuck Lane October 2, 2013
use AppleScript version "2.4"
use scripting additions
using terms from application "Mail"
on perform mail action with messages theMessages for rule Test
repeat with msg in theMessages
set remName to "Xfinity bill"
set remNotes to "https://customer.xfinity.com/#/billing"
set remList to "Xfinity"
#IMAP
tell application "Mail"
with timeout of 90000 seconds
set theSelectedMessages to selection
repeat with theMessage in theSelectedMessages
set theMailbox to "Test"
tell application "Mail"
move the theMessage to mailbox theMailbox of account "Outlook"
end tell
on run {input, parameters}
set matterName to first item of input
tell application "Mail"
tell account "VicBar"
set fullName to "Matters/" & matterName
make new mailbox with properties {name:fullName}
end tell
end tell
end run
@logic2design
logic2design / Mail - Add Sender(s) to Contact Group(s).applescript
Created January 3, 2021 10:27
Add Mail Message Sender(s) to Contatcs Group(s)
#################################################################################
# Title: Add Sender(s) to Contact Group(s)
#################################################################################
#Iain Dunn
#Logic2design.com
#logic2design@icloud.com
tell application "Contacts"
#Prevents potential error
@logic2design
logic2design / Safari - Open specific link on the webpage.applescript
Last active December 8, 2023 22:53
This Applescript will open the first URL link on the page that matches a search value
@logic2design
logic2design / Mail Process - Update Rule.applescript
Last active December 8, 2023 22:51
This will update a selected or create a new Mail Rule based on values from the selected message(s)
##############################################
# Title: Mail Rules Updater
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 4 August 2022
@logic2design
logic2design / Mail Process - Reminders.applescript
Last active December 8, 2023 22:50
Will create a Reminder from the selected Mail message. It will also check for the Reminder's status, offering to remove the Mail Flag or recreate the Reminder if not found.
##############################################
# Title: Mail Process - Reminders
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 5 August 2022
@logic2design
logic2design / Mail Process - Copy Mail Attachments to Finder Folder.applescript
Created August 1, 2022 03:45
This will extract attachments from the selected mail messages and copy to the selected Finder Folder
##############################################
# Title: Copy Mail Attachments to Finder Folder
##############################################
# Iain Dunn
# Logic2Design
# www.logic2design.com
# logic2design@icloud.com
# Last update: 1 August 2022