Mac OS X widgets (92)

1 Name: !WAHa.06x36 2005-06-09 18:25 ID:zkchdMA4 [Del]

So, I recently got a Mac, and being as enamored with Javascript as I am, of course I started making myself some Dashboard widgets. I just finished the first one:

It's an iTunes alarm clock. It'll just start iTunes playing a playlist you pick at a given time, slowly fading up the volume. It should be pretty obvious how to use it.

The alarm will recover after a restart. If the widget wasn't running at the time of an earlier set alarm, it will trigger immediately. At the moment, it can't schedule a power-up for wake from sleep for your Mac. I haven't quite figured out how to do that, but if anyone wants it, I'll find out and add it.

Needless to say, don't gamble your job or academic career on such relatively untested software as this. It's woken me up a couple of times, but I make no gurantees. Keep a spare alarm until any possible bugs have been shaken out.

I figure I'll be making more of these things, and I'll post them in this thread later on. Enjoy!

43 Name: Anonymous 2005-09-25 13:18 ID:QpjhxaSQ [Del]

perhaps someone could port laughing man to konfabulator...

44 Name: pete 2005-09-28 10:07 ID:gTSzD4Fd [Del]

well, on my emac I can schedule a wake from sleep funtion in the energy saver function in the system panel, but the alarm doesn't play the playlist from itunes. . .I can see the volume fading up but it never plays.

45 Name: !WAHa.06x36 2005-09-28 10:21 ID:zkchdMA4 [Del]


What happens if you flip it over and pick another playlist?

46 Name: pete 2005-09-28 14:48 ID:gTSzD4Fd [Del]

I've tried it with about 10 different playlist. Same thing, I can see the volume control increasing but it never "plays".

47 Name: !WAHa.06x36 2005-09-28 16:24 ID:zkchdMA4 [Del]

That's weird. Can you open up in Application/Utilities and see if it outputs any error messages when it's supposed to start playing?

48 Name: pete 2005-09-28 17:06 ID:J3OyA5Q3 [Del]

this is the error message: Widget:, runEditTransition never called.

49 Name: !WAHa.06x36 2005-09-28 19:12 ID:zkchdMA4 [Del]

That's very weird. It makes no sense in the context of a widget, so I'm include to assume it's some sort of internal Mac OS error... I really have no idea what would cause it or how to fix it.

50 Name: Mr VacBob!JqK7T7zan. 2005-09-28 21:48 ID:hjaAL153 [Del]

I've seen the error mentioned before, but nobody ever answered what it meant. Apple mailing lists, perhaps?

51 Name: Anonymous 2005-10-11 08:13 ID:Heaven [Del]


52 Name: Anonymous 2005-10-11 13:48 ID:Heaven [Del]

someone post that laughing man animated .gif, so the windows lusers can set it as their active desktop bg and shut up already

53 Name: Anonymous 2005-10-11 14:17 ID:Heaven [Del]


54 Name: jake 2005-10-18 05:54 ID:Heaven [Del]

well sometimes it works on a different playlist?! but not on the one i made after downloading the alarm clock!? strange is'nt it?


55 Name: jake 2005-10-18 06:00 ID:Heaven [Del]

it is very strange! I have the same problem as Pete i think, but it always works when i flip it and choose "Depeche mode" ... you guys really like DM don'cha ;-) it's probably one of the most usefull widgets, but how come i cant make it work??


56 Name:   2005-10-18 06:09 ID:Q8RTV7BQ [Del]

Do you use any special characters in the playlist name?

57 Name: jake 2005-10-18 06:23 ID:Heaven [Del]

woohaaaa whakaaaaa that was the problem! thanks man!!!! awsome work!


58 Name:   2005-10-18 06:38 ID:Q8RTV7BQ [Del]

All right, I've gotta figure out some way to fix that in the future. Luckily, you can work around it until I do.

59 Name: !WAHa.06x36 : 2005-11-01 19:51 ID:SWxPcg0j [Del]

An update!

Fixes the character set bug for playlists (and boy was that a pain in the ass to do), and adds a volume control. No wakeup yet, though.

60 Name: Brad : 2006-01-21 20:16 ID:uSmGvPTt [Del]

I've got the same problem that Jake had (i think). When the alarm goes off, it slowly increases the volume in iTunes, but doesn't tell it to play, and doesn't select the playlist. I've selected several different playlists, and none of them work. Any suggestions?

61 Name: Brad : 2006-01-21 20:16 ID:uSmGvPTt [Del]

I've got the same problem that Jake had (i think). When the alarm goes off, it slowly increases the volume in iTunes, but doesn't tell it to play, and doesn't select the playlist. I've selected several different playlists, and none of them work. Any suggestions?

62 Name: !WAHa.06x36 : 2006-01-21 20:42 ID:Heaven [Del]


Does this still happen with version 1.2?

63 Name: !WAHa.06x36 : 2006-02-08 17:51 ID:Heaven [Del]

For anyone who happens to Google up this thread when looking for information about how to move Dashboard widgets, or why there's no moveTo() method for widgets: I just noticed there is actually an undocumented method for moving widgets:


It's pretty annoying that Apple decided to disable widget moving, but apparently they left that one in anyway. Hopefully they won't disable it in a future version, but no guarantees. Use it while it's there!

64 Name: !WAHa.06x36 : 2006-02-08 19:32 ID:SWxPcg0j [Del]

Other fun undocumented toys in Dashboard:


I don't really know what all of them do, though. closestCity() seems to return the name of a big city close to you, probably from the timezone settings or something. widget.createMenu() is discussed here, it seems: widget.calculator.evaluateExpression() is apparently a mathematical expression evaluator. The expression is a string like "(1+2)*3+sin(4)", and digits is the number of digits you want at the most in the answer. I see one Google hit on widget.ontransitioncomplete, warning that it is a bit buggy.

65 Post deleted by moderator.

66 Name: Ist G : 2006-08-14 18:34 ID:Wx7WodbA [Del]

Ehhhhh. It's unfortunate that the widget isn't available in windows format. You know, speaking of which, does any one know how to do the video edit where you put the logo over the face?

ALSO, dead forum, yes, I know, but, I don't suppose anyone made an animated laughing man logo yet? (I've searched already.) I've found screen mates and sreen savers. But no gif.


67 Name: Anonymous : 2006-08-14 18:52 ID:bC9XWjok [Del]

>>66 Waha HAS! is what you want.

68 Name: Thomas : 2007-05-29 08:37 ID:cA/V+7AF [Del]

The shiny orb is the kristall orb I was missing all the time. It was either in repair, broken or both.

69 Post deleted by moderator.

70 Name: Andy : 2007-11-21 00:40 ID:/jKTBm65 [Del]

Although i know the LaughingMan Widget is based off html and javascript, when i open the package contents and attempt to open the html file in it to view the rotating laughingman, all i see is the rotating text and the image has trouble appearing. I want to be able to put this on my own little web server so that i can have it rotating when my family accesses our media files.

Any ideas? Maybe an animated gif?

71 Name: !WAHa.06x36 : 2007-11-21 04:12 ID:Heaven [Del]


It only works reliably in Safari, and it might need some tweaking even there. It uses <canvas>, which I think Firefox does support but with bugs. It's been some time since I checked though.

72 Name: Aoi : 2008-02-07 12:59 ID:LUbVhbjo [Del]

This is for those who want to see The Laughing Man animated logo working on Windows + Firefox:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008020708 Minefield/3.0b4pre

73 Name: !WAHa.06x36 : 2008-02-07 15:22 ID:Heaven [Del]

Nice, it does work in Camino on OS X, which is using Gecko too. It brings the browser to its knees, but it does work! They've even implemented the tricky clipping stuff it needs to look right.

74 Name: Screen : 2008-02-08 03:07 ID:TMKmUzMN [Del]


How do I get to display alarm clock on the menu bar as per some of your screenshots on softpedia?

75 Name: !WAHa.06x36 : 2008-02-08 04:41 ID:Heaven [Del]

I have no screenshots of "softpedia", whatever that is, so I really don't know what you're talking about.

77 Name: the real loughing man : 2008-03-11 17:36 ID:hR59q4SF [Del]

Actually in Ghost In The Shel Stand Alone Complex 1st Gig the laughing man logo is animated, the text rotates. also can you make an animated gif so i can make a win XP laughing man widget.

"the real Laughing Man logo doesn't have a simple rotating ring of text, as most people believe, it has a scrolling text that continuously appears and disappears on the right side, and doesn't match up."

79 Name: !WAHa.06x36 : 2008-03-12 04:34 ID:Heaven [Del]


You didn't understand the part you replied to.

80 Post deleted by moderator.

81 Name: Aoi : 2008-08-24 22:10 ID:ovO33eZI [Del]

82 Name: LuminousPath : 2008-09-18 21:44 ID:F45kPpuA [Del]

Laughing man widget is kinda broke in Leopard. The text only shows up half the time.

83 Name: Anonymous : 2008-10-19 16:54 ID:sel+aQXg [Del]


Confirming this, every once in a while the text simply disappears and requires a refresh in order to get it working again. It floods the system log with "CGPathAddArc: invalid value for start or end angle" when the text disappears.

84 Name: Anonymous : 2008-12-19 13:44 ID:Heaven [Del]

Just thought I'd mention that I grabbed the Laughing Man widget, it's neat. Thanks!

85 Name: Truckosaurus : 2009-01-18 19:20 ID:dHYdgB4h [Del]

The Shiny Orb is a cool useless widget, indeed XD. If you accept suggestions for new widgets, I think that it's natural evolution is to become a "Tesla ball" or plasma ball or whatever the name is. I'm trying to say something like this:

That would be cooler and equally useless!, it's a win/win!. Thanks for the Orb in any case, and for the screensavers and... well, everything on this web. You're The Man.

86 Post deleted by user.

87 Name: Boki : 2009-07-03 20:16 ID:EhHu+LpF [Del]

On Shiny Orb: Useless it may be, but it sure is fun to look at! :D

88 Post deleted by moderator.

89 Post deleted by moderator.

90 Post deleted by moderator.

91 Post deleted by moderator.

92 Post deleted by moderator.

Name: Link:
Leave these fields empty (spam trap):
More options...