Skip to content

Instantly share code, notes, and snippets.

@lacostenycoder
Last active March 18, 2017 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lacostenycoder/09b8f6483e6c54f017835833ad46bcf1 to your computer and use it in GitHub Desktop.
Save lacostenycoder/09b8f6483e6c54f017835833ad46bcf1 to your computer and use it in GitHub Desktop.
Test Atom Handler
echo "test file line one" > ~/Desktop/test.txt
echo "test file line two" >> ~/Desktop/test.txt
#echo "<a>
username="$(whoami)"
url="atm://open?url=file://%2FUsers%2F$username%2FDesktop%2Ftest.txt&line=2"
htmlfile="/Users/$username/Desktop/test.html"
touch $htmlfile
echo "<a href='$url'>$url</a>" > $htmlfile
open $htmlfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment