Skip to content

Instantly share code, notes, and snippets.

@GPopZach
GPopZach / Emacs_starter.pl
Created July 12, 2021 10:15 — forked from railwaycat/Emacs_starter.pl
Start Emacs.app from CLI
#!/usr/bin/perl
# Emacs starter for Emacs mac port
# Thanks to Aquamacs Project and David Reitter
my $args = "";
my $tmpfiles = "";
for my $f (@ARGV) {
@GPopZach
GPopZach / gist:9fea0a0554e32322e01387ea6593d2f3
Created February 2, 2021 13:14 — forked from benoitsan/gist:6278485
Export to Devonthink from Prizmo
-- Export to Devonthink without extra OCR within Devonthink (Script written by Benjamin Zeiss)
on run argv
if (count of argv) is greater than 0 then
repeat with theItem in argv
tell application id "com.devon-technologies.thinkpro2" to launch
try
set thePath to theItem as text
tell application id "com.devon-technologies.thinkpro2"
set theRecord to import thePath to incoming group
end tell
@GPopZach
GPopZach / gist:33fd788842c34933f7ff955636143dca
Created October 2, 2020 16:11 — forked from gnachman/gist:4cbe6743baa7fe07536b
Script to use Alfred with nightly build of iTerm2
on write_to_file(this_data, target_file, append_data)
try
set the target_file to the target_file as string
set the open_target_file to open for access file target_file with write permission
if append_data is false then set eof of the open_target_file to 0
write this_data to the open_target_file starting at eof
close access the open_target_file
return true
on error
try