This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Copy this file to your path (/usr/local/bin is a good choice) | |
# You may need to make it executable with chmod 755 | |
# Should be compatible with Python 2.7.x and 3.x | |
# Usage: jrun <file[.java]> | |
from subprocess import call | |
import sys | |
if len(sys.argv)==1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {} | |
set noteData to "A note!" --the noteData variable hold the text of the note | |
set fileName to "notes.oo3" --The name of the notes outliner file | |
tell application "OmniOutliner" | |
set oDocs to name of documents of windows | |
set openState to (oDocs contains fileName) | |
open "[path to file]" | |
set doc to document of front window | |
--set date to result of my getDate() |