Running on Win7-64bit with Java 1.6.17-32bit. Clicking either Save or Save As immediately generates errors:
[sikuli] FileAction.doSave
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at edu.mit.csail.uid.SikuliIDE$MenuAction.actionPerformed(SikuliIDE.java:466)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3184
at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source)
at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
at sun.awt.shell.ShellFolder.get(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(Unknown Source)
at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getIcon(Unknown Source)
at javax.swing.UIManager.getIcon(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installIcons(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JFileChooser.updateUI(Unknown Source)
at javax.swing.JFileChooser.setup(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at javax.swing.JFileChooser.<init>(Unknown Source)
at edu.mit.csail.uid.SikuliPane.saveAsFile(SikuliPane.java:166)
at edu.mit.csail.uid.SikuliPane.saveFile(SikuliPane.java:158)
at edu.mit.csail.uid.SikuliIDE$FileAction.doSave(SikuliIDE.java:568)
... 32 more
Same issue occurs on OS X 10.5.8, using 10.4 Build. The stack trace is a bit different:
java.io. FileNotFoundExc eption: /Users/ jowillia/ temp (No such file or directory) FileOutputStrea m.open( Native Method) FileOutputStrea m.<init> (FileOutputStre am.java: 179) FileOutputStrea m.<init> (FileOutputStre am.java: 70) FileWriter. <init>( FileWriter. java:46) csail.uid. SikuliPane. saveAsFile( SikuliPane. java:126) csail.uid. SikuliPane. saveFile( SikuliPane. java:100) csail.uid. SikuliIDE$ FileAction. doSave( SikuliIDE. java:417) NativeMethodAcc essorImpl. invoke0( Native Method) NativeMethodAcc essorImpl. invoke( NativeMethodAcc essorImpl. java:39) DelegatingMetho dAccessorImpl. invoke( DelegatingMetho dAccessorImpl. java:25) reflect. Method. invoke( Method. java:592) csail.uid. SikuliIDE$ MenuAction. actionPerformed (SikuliIDE. java:350) AbstractButton. fireActionPerfo rmed(AbstractBu tton.java: 1882) AbstractButton$ Handler. actionPerformed (AbstractButton .java:22save to /Users/ jowillia/ temp/ DefaultButtonMo del.fireActionP erformed( DefaultButtonMo del.java: 420) DefaultButtonMo del.setPressed( DefaultButtonMo del.java: 258) AbstractButton. doClick( AbstractButton. java:334) ScreenMenuItem. actionPerformed (ScreenMenuItem .java:95) MenuItem. processActionEv ent(MenuItem. java:597) MenuItem. processEvent( MenuItem. java:556) MenuComponent. dispatchEventIm pl(MenuComponen t.java: 298) MenuComponent. dispatchEvent( MenuComponent. java:286) EventQueue. dispatchEvent( EventQueue. java:466) EventDispatchTh read.pumpOneEve ntForHierarchy( EventDispatchTh read.java: 269) EventDispatchTh read.pumpEvents ForHierarchy( EventDispatchTh read.java: 190) EventDispatchTh read.pumpEvents (EventDispatchT hread.java: 184) EventDispatchTh read.pumpEvents (EventDispatchT hread.java: 176) EventDispatchTh read.run( EventDispatchTh read.java: 110)
at java.io.
at java.io.
at java.io.
at java.io.
at edu.mit.
at edu.mit.
at edu.mit.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at edu.mit.
at javax.swing.
at javax.swing.
02)
at javax.swing.
at javax.swing.
at javax.swing.
at apple.laf.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
at java.awt.
But there is a work around. If you end the file in .sikuli, the the file is created and the script and images are stored. This of course only tested on OS X.