Skip to content

Instantly share code, notes, and snippets.

View deasmi's full-sized avatar

Dean Smith deasmi

  • Reed Business Information
  • London
  • X @deasmi
View GitHub Profile
@deasmi
deasmi / create_pictures_group.scpt
Created January 7, 2012 10:47
Create group of contacts with pictures in Mac address book
tell application "Address Book"
try
set picGroup to group "Contacts with Pictures"
on error
set picGroup to make new group with properties {name:"Contacts with Pictures"}
end try
-- Find the note in omnifocus for the current project / folder
-- (or create a new one) and display it.
-- Created by Mark Fowler (mark@twoshortplanks.com)
-- Help from http://veritrope.com/code/search-evernote-for-notes-containing-link-to-selected-omnifocus-item/
-- on getting the name / url for the current omnifocus item
tell front window of application "OmniFocus"
try
#!/bin/bash
LIVEDB="live database name"
DEVDB="dev database name"
DEVURL="dev site url - perhaps locahost"
DBPASSWORD="db password"
LIVEPATH="live site path"
DEVPATH="dev site path"