This file contains hidden or 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 growlNotification(titleArg, descriptionArg) | |
tell application "GrowlHelperApp" | |
set allList to {"Notification"} | |
set enabledList to {"Notification"} | |
register as application "Scripting" all notifications allList default notifications enabledList icon of application "Script Editor" | |
notify with name "Notification" title titleArg description descriptionArg application name "Scripting" | |
return "Hello From AppleScript!" | |
end tell | |
end growlNotification |
This file contains hidden or 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
import javax.script.*; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Main { | |
public static void main(String[] args) throws FileNotFoundException, ScriptException { | |
// Setup various objects | |
ScriptEngineManager engineManager = new ScriptEngineManager(); |
This file contains hidden or 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
CLASSPATH=/usr/local/jython2.5.0/jython.jar:. java compile $1 |
This file contains hidden or 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
import java.io.File; | |
import java.util.Properties; | |
import java.util.Set; | |
import java.util.HashSet; | |
import org.python.core.PyException; | |
import org.python.core.PySystemState; | |
import org.python.core.imp; | |
import org.python.modules._py_compile; |
NewerOlder