Today-Scripts icon indicating copy to clipboard operation
Today-Scripts copied to clipboard

Widget has lost all content - can't add scripts

Open gkopff opened this issue 10 years ago • 9 comments

My widget has lost its contents - including the button to add further scripts.

screen shot 2015-02-03 at 5 02 18 pm screen shot 2015-02-03 at 5 02 28 pm

Where is the data stored so that I might delete it?

gkopff avatar Feb 03 '15 07:02 gkopff

I blew away an SQLite file under ~/Library/Application\ Support/NotificationCenter/ and a reboot later and it's come back to normal.

gkopff avatar Feb 03 '15 07:02 gkopff

(Apologies for the open/close/open noise).

I got the ( i ) icon back by doing the above, but clicking on it resulted in it disappearing and the widget becoming non-functional again. There's no new SQLlite file under application support (who knows what I blew away ...).

How can I remove all saved settings so I can start again?

gkopff avatar Feb 03 '15 07:02 gkopff

Removing ~/Library/Containers/org.samroth.Today-Scripts.Widget did the trick.

gkopff avatar Feb 03 '15 10:02 gkopff

The settings file itself is located here:

~/Library/Containers/org.samroth.Today-Scripts.Widget/Data/Library/Preferences/org.samroth.Today-Scripts.Widget.plist

If you can recreate the issue and post the contents of that file, that'd be great!

SamRothCA avatar Feb 03 '15 15:02 SamRothCA

Okay, here's the file (recovered from my trash). I had to convert it from the binary plist format to the XML format in order to paste it here. The plist editor didn't complain when I opened it, so it wasn't corrupted in any obvious way. Similarly, I've had a look at it, and nothing looks terribly out of place.

In any event, for your perusal, here's the plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Scripts</key>
    <array>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>tron alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 tron 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>sark alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 sark 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>dumont alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 dumont 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>flynn alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 flynn 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
        <dict>
            <key>ShowStatus</key>
            <true/>
            <key>Label</key>
            <string>bit alive</string>
            <key>Script</key>
            <string>nc -zG 3 -L 5 bit 22 &amp;&gt; /dev/null</string>
            <key>AutoRun</key>
            <true/>
            <key>Program</key>
            <string>/bin/bash</string>
        </dict>
    </array>
    <key>NCWidgetListViewController Show All</key>
    <true/>
</dict>
</plist>

I'll let you know if I can make the issue happen again in a repeatable fashion.

gkopff avatar Feb 03 '15 21:02 gkopff

Same problem here with Yosemite 10.10.2 .
Either no info button or today-scripts lost all contents. Sometimes remove it from NC or reboot the system can make it work again...

dofine avatar Mar 22 '15 04:03 dofine

Everything gets deleted every couple minutes. I think when it reloads the scripts.

rnhmjoj avatar Mar 22 '15 18:03 rnhmjoj

I got pretty much the same issue as @gkopff did. I downloaded the zip file and unzip it in the "download" folder. Everything works fine until I moved the Today Scripts.app to "Application" folder. My scripts will disappear and I can no longer edit any settings of Today Scripts.

I use Yosemite 10.10.2.

puranzhang avatar Apr 09 '15 05:04 puranzhang

I have the same problem, I can't get the info button or any scripts to show

I'm on El Capitan beta 3 (I didn't tell you that)

dogshead avatar Jul 30 '15 07:07 dogshead