Skip to content

Instantly share code, notes, and snippets.

@yrocq
yrocq / gist:4c5d6e3b10e38ed31f4fbbfbaa7e15e9
Last active December 13, 2020 23:39 — 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 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 e
display dialog e