<?xml version="1.0" encoding="US-ASCII" ?>
<rss version="0.92">
<channel>
	<docs>http://backend.userland.com/rss092</docs>
	<title>DashboardWidgets Forums</title>
	<link>http://www.dashboardwidgets.com/forums/</link>
	<description></description>
	<lastBuildDate>Wed, 20 Aug 2008 22:48:10 GMT</lastBuildDate>
<item>
	<title>Widget Development :: Cant send flash variables</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9133#9133</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15411&quot; target=&quot;_blank&quot;&gt;geckointernet&lt;/a&gt;&lt;br /&gt;
Subject: Cant send flash variables&lt;br /&gt;Posted: Wed Aug 20, 2008 - 2:41 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I am trying to use SetVariable to change a value of a flash movie embedded in the widget. Every time i run this:
br /

br /
window.document.movieObject.SetVariable(andquot;testValueandquot;, andquot;testandquot;);
br /

br /
the javascript in the widget seems to silently stop executing, i have tried wrapping it in a try / catch, but that does not alert any errors
br /

br /
Here is the javascript snippet.
br /

br /
var fm = window.document.movieObject;
br /
if(fm){
br /
	var settime = function(){
br /
		var t = (new Date().getTime());
br /
		alert(fm.id +andquot; andquot;+t); // alerts MovieObject 121926099713
br /
		try{
br /
			fm.SetVariable(andquot;_root:audio_timeandquot;, t);
br /
		}catch(e){
br /
			alert(andquot;error andquot;+e);
br /
		} // alerts nothing			
br /
		alert(fm.id +andquot; andquot;+t); // alerts nothing
br /
	}
br /
		//settime();
br /
	setInterval(settime, 1500);		
br /
}
br /

br /
Have anyone had any success sending variable to flash at runtime?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Central :: Grattings for everyone from mexico</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9132#9132</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15480&quot; target=&quot;_blank&quot;&gt;LINK79&lt;/a&gt;&lt;br /&gt;
Subject: Grattings for everyone from mexico&lt;br /&gt;Posted: Sun Aug 17, 2008 - 10:35 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hi there i just download a UNrarw widget , but i can't drag de file into the gadget , is my first time usig this widgets , someone could help , i apreccite it
br /

br /
saludos&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: Stacklayout</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9131#9131</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15475&quot; target=&quot;_blank&quot;&gt;apocxp&lt;/a&gt;&lt;br /&gt;
Subject: Stacklayout&lt;br /&gt;Posted: Thu Aug 14, 2008 - 11:03 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I'm having difficulty with the stacklayout control. Specifically, passing a view to it(it's just not working at all for me). What is the correct usage for the setCurrentView method? I'm having a tough time finding info on Google and Apple's site. A search in this forum didn't reveal any results either and I'm stumped at the moment.
br /

br /
Thanks in advance for the assistance!!&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: &amp;quot;/main.js: Value undefined does not allow function call</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9130#9130</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15472&quot; target=&quot;_blank&quot;&gt;kbkl24r&lt;/a&gt;&lt;br /&gt;
Subject: &amp;amp;quot;/main.js: Value undefined does not allow function call&lt;br /&gt;Posted: Wed Aug 13, 2008 - 1:24 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I am developing a widget that needs to launch a number of applications on the user's machine. Some of these applications have been developed using andquot;normalandquot; tools and other with Macromedia Director. This means that my JavaScripts cannot rely on always using andquot;widget.openApplication(...)andquot;, but need to have another means to find and launch the user applications.
br /

br /
After looking into a variety of options, I settled on setting up an andquot;osascriptandquot; call. Here is an example of the code:
br /

br /
    var UserApp;
br /
        UserApp = andquot;tell application andquot;Users Applicationandquot; to launchandquot;
br /

br /
function launchUserApplication() {
br /

br /
        if(window.widget) {
br /
		widget.system(andquot;/usr/bin/osascript -e 'andquot; + UserApp + andquot;'andquot;, null); 
br /
    } 
br /

br /
} 
br /

br /
I have made sure that the andquot;AllowFullAccessandquot; flag was set to andlt;true/andgt;. 
br /

br /
With all of this, the widget runs great within Dashcode's testing environment, however, the problem occurs when the widget is deployed. This is when I get this error message:
br /

br /
andquot;.../main.js: Value undefined does not allow function calls. (line: 49)andquot; [Note: Line 49 is the andquot;widget.systemandquot; line in the above referenced code.]
br /

br /
I have tried re-writing the code to no avail. I have now invested many hours online trying to find a FAQ or other post addressing this problem. Again, no luck. Now I am at a loss as to what might be the cause of this. 
br /

br /
Does anyone have any ideas? Has anyone experienced this? I can really use any guidance to work through this issue.
br /

br /
Thanks!
br /

br /
---
br /
Dashcode Version 2.0 on 10.5.4.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: Timesheet Widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9129#9129</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15458&quot; target=&quot;_blank&quot;&gt;Lune&lt;/a&gt;&lt;br /&gt;
Subject: Timesheet Widget&lt;br /&gt;Posted: Thu Aug 07, 2008 - 4:37 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Looking for a widget that tracks time on a job... along the lines of a chess clock.
br /

br /
First task (space for description needed) starts the clock. Clock runs all the time until an additional task is started. 
br /

br /
Needs ability to enter/delete additional/old tasks -  as soon as a task is activated the clock running on a previous task stops. only one task clocks the time.
br /

br /
Also needs ability to go between tasks multiple times so that the total time is added up. i.e. the clock does NOT start from zero each time you return to a task.
br /

br /
Like an individual stopwatch for each job that is not reset until desired. So all the hours worked in a day add up.
br /

br /
At the end of the day you can see how much time you have spent on each task.
br /

br /
Cheers.  img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/biggrin.png&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Open URL in Safari (regardless of user's default browser)?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9128#9128</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15225&quot; target=&quot;_blank&quot;&gt;kepner&lt;/a&gt;&lt;br /&gt;
Posted: Tue Aug 05, 2008 - 8:01 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;andnbsp;widget.openURLand#40;andquot;andquot;and#41;;/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
That did it!  Works great now!
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;widget.systemand#40;andquot;and#91;Terminal commandand#93;andquot;, functionand#40;and#41; and#123;and#125;and#41;; /td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
Since Apple recommends it, I've implemented this as well.
br /

br /
Thanks for your help, Quill!&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: XMLHttpRequest problem</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9127#9127</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15452&quot; target=&quot;_blank&quot;&gt;dkanze&lt;/a&gt;&lt;br /&gt;
Subject: XMLHttpRequest problem&lt;br /&gt;Posted: Sun Aug 03, 2008 - 6:24 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I tried many times to make it work, read many info about it (also in this forum) but no progress..
br /
I tried to request site, receive a text. In safari responseText works only with andquot;load_find2andquot;, in dashboard widget it's error andquot;NETWORK ERR: XMLHttpRequest Exeption 101andquot;. So than in dashboard function andquot;load_findandquot; must work, but it doesn't (it called from input by hiting enter key). 
br /
But if in andquot;load_find2andquot; try replace just one line andquot;req.open(andquot;GETandquot;, url, false);andquot; with andquot;req.open(andquot;GETandquot;, url, true);andquot; than i can receive responseXML (in dashboard), but i need responseText.
br /

br /
Help me please.
br /

br /
load.js:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
function load_findand#40;evtand#41; and#123;
br /
andnbsp; andnbsp; var keyCode = evt.keyCode;
br /
andnbsp; andnbsp;if and#40;13 == keyCode || 3 == keyCodeand#41; and#123; // return or enter key
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var ajax_url='httpand#58;//some.com/';
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var param = document.getElementByIdand#40;andquot;SearchFieldandquot;and#41;.value;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var url = ajax_url+param;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; 
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var req = new XMLHttpRequestand#40;and#41;;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; req.readystatechange = done;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; req.openand#40;andquot;GETandquot;, url, trueand#41;;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; req.sendand#40;nulland#41;;
br /
andnbsp; andnbsp;and#125; 
br /
and#125;
br /

br /
function load_find2and#40;and#41; and#123;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var ajax_url='httpand#58;//some.com/';
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var param = document.getElementByIdand#40;andquot;SearchFieldandquot;and#41;.value;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var url = ajax_url+param;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; 
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; var req = new XMLHttpRequestand#40;and#41;;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; req.openand#40;andquot;GETandquot;, url, falseand#41;;
br /
andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; andnbsp; req.sendand#40;nulland#41;;
br /
andnbsp; andnbsp; andnbsp;
br /
andnbsp; andnbsp; andnbsp; document.getElementByIdand#40;'Answer'and#41;.innerHTML = req.responseText;
br /
and#125;
br /

br /
function doneand#40;and#41; and#123;
br /
andnbsp; andnbsp; andnbsp; document.getElementByIdand#40;'Answer'and#41;.innerHTML = req.responseText;
br /
and#125;/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
Info.plist:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;andnbsp; andnbsp;
br /
andlt;keyandgt;AllowFullAccessandlt;/keyandgt;
br /
andlt;true/andgt;
br /
andlt;keyandgt;AllowNetworkAccessandlt;/keyandgt;
br /
andlt;true/andgt;/td	/tr/tablespan class=&quot;postbody&quot;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Open URL in Safari (regardless of user's default browser)?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9126#9126</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=14124&quot; target=&quot;_blank&quot;&gt;Quill&lt;/a&gt;&lt;br /&gt;
Subject: Exiting Dashboard&lt;br /&gt;Posted: Sat Aug 02, 2008 - 9:56 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bQuote:/b/span/td	/tr	tr	  td class=&quot;quote&quot;Wait a minute! If I can run Terminal commands in my widget, why bother with AppleScript?/td	/tr/tablespan class=&quot;postbody&quot;
br /
You're right! I'm afraid that I don't know that much about Terminal commands... I'd better start learning a few more of them!
br /

br /
Consequently, I'm afraid I won't be able to tell you whether there is a Terminal command to exit Dashboard or not, but a recent thread a href=&quot;http://lists.apple.com/archives/Dashboard-dev/2008/Jul/msg00010.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;here/a on Apple's Dashboard development mailing list suggested calling andquot;widget.openURLandquot; and passing it a blank string (rather than a url string):
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
if and#40;window.widgetand#41;
br /
and#123;
br /
andnbsp; andnbsp;widget.openURLand#40;andquot;andquot;and#41;;
br /
and#125;
br /

br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /
It exits Dashboard to open the URL, but since there isn't a URL to open, it then does nothing... I tested it, and it seems to work well.
br /

br /
Quill
br /

br /

br /
span style=&quot;font-weight: bold&quot;PS/span: I've been reading the Dashboard-Dev mailing list since my last post, and Apple doesn't want us to use andquot;widget.systemandquot; synchronously, except for testing purposes (the command runs synchronously when we don't pass it a function to execute when finished).
br /

br /
So if the andquot;widget.systemandquot; command returns something, instead of this:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
var result = widget.systemand#40;andquot;and#91;Terminal command that returns a valueand#93;andquot;, nulland#41;.outputString;
br /
// Code that works with andquot;resultandquot; variable
br /

br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /
...you might write it like this:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
widget.systemand#40;andquot;and#91;Terminal command that returns a valueand#93;andquot;, functionand#40;and#41; and#123;
br /
andnbsp; andnbsp;var result = this.outputString;
br /
andnbsp; andnbsp;// Code that works with andquot;resultandquot; variable
br /
and#125;;
br /

br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
Otherwise, I guess we just pass it an empty function:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
widget.systemand#40;andquot;and#91;Terminal commandand#93;andquot;, functionand#40;and#41; and#123;and#125;and#41;;
br /
/td	/tr/tablespan class=&quot;postbody&quot;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Open URL in Safari (regardless of user's default browser)?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9125#9125</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15225&quot; target=&quot;_blank&quot;&gt;kepner&lt;/a&gt;&lt;br /&gt;
Posted: Sat Aug 02, 2008 - 12:44 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Thanks a lot, Quill!
br /

br /
Edit:
br /

br /
Wait a minute!  If I can run Terminal commands in my widget, why bother with AppleScript?
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;widget.systemand#40;andquot;open andquot;httpand#58;//example.comandquot; -a /Applications/Safari.appandquot;, nulland#41;;/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
This actually works better, because if Safari isn't already open, the AppleScript results in two open Safari windows: a blank one, and one with your URL.  The Terminal command only opens one Safari window, and only if the URL isn't already open in another window.
br /

br /
I still have a problem, and maybe I can live with it: when my Javascript function is called, and Safari opens with its one window, Dashboard remains active.  Obviously, the user will see a new Safari window open, and will likely realize that they have to click on it.  
br /

br /
Is there a Terminal command to deactivate Dashboard?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Central :: two copies of many widgets</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9124#9124</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15450&quot; target=&quot;_blank&quot;&gt;benignreal&lt;/a&gt;&lt;br /&gt;
Subject: two copies of many widgets&lt;br /&gt;Posted: Fri Aug 01, 2008 - 5:59 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;can anyone tell me why there are two copies of many widgets on my MBP. 
br /
~LibraryWidgets
br /
~userLibraryWidgets
br /

br /
Which copy do I need to keep and which can be deleted?
br /

br /
If the widget is in a user folder, does that mean that other users logged in can't use that widget?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Support :: Widgets RSS feed not working?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9123#9123</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=9252&quot; target=&quot;_blank&quot;&gt;stainboy&lt;/a&gt;&lt;br /&gt;
Subject: Widgets RSS feed not working?&lt;br /&gt;Posted: Thu Jul 31, 2008 - 12:34 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;it looks as if the Widgets RSS hasn't been updated since May 2008. something wrong in the feed?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: RE: IR Toggle Widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9122#9122</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=11806&quot; target=&quot;_blank&quot;&gt;joshysquashy&lt;/a&gt;&lt;br /&gt;
Posted: Thu Jul 24, 2008 - 6:33 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I made some images of a possible interface, so you can see aesthetically what I am looking for:
br /

br /

br /
img src=&quot;http://www.uniquesite.co.uk/temp/images.jpg&quot; border=&quot;0&quot; /&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: RE: IR Toggle Widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9121#9121</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=11806&quot; target=&quot;_blank&quot;&gt;joshysquashy&lt;/a&gt;&lt;br /&gt;
Posted: Thu Jul 24, 2008 - 5:36 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;If no one wants to make this, I understand.
br /

br /
Can someone steer me in the right direction so I can have a go!
br /

br /
I guess applescript doesn't work with widgets, so I need to write the code in javascript, correct?
br /

br /
I need one code to get the status, and 2 codes to either enable or disable it depending on the current status.
br /

br /
I guess it should check status at launch, and also every time dashboard is opened, in case a user disabled it in the sys prefs.
br /

br /
It will only need one button, as it toggles on/off. I'm thinking a visual representation of the bottom right corner of a macbook/ macbook pro.
br /

br /

br /
So if anyone could either write the javascript I need, or tell me a bit of info on reading prefs and writing them, that would be very helpful!
br /

br /
Thanks&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: IR Toggle Widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9120#9120</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=11806&quot; target=&quot;_blank&quot;&gt;joshysquashy&lt;/a&gt;&lt;br /&gt;
Subject: IR Toggle Widget&lt;br /&gt;Posted: Wed Jul 23, 2008 - 6:10 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;In our house we have two MacBooks, which both respond to Apple's remotes. I know remotes can be paired, but then you have to remember which remote is for which device.
br /

br /
I would like a dashboard widget that tells you if IR is enabled or disabled, and allows you to toggle it on/off. Perhaps a visual representation of the IR, and clicking it changes its status.
br /

br /
There is an applescript that can find out the status and toggle it on/off. It shouldn't be complicated, but I don't think I am up to the task.
br /

br /
Anyone feel like taking on this task?! I would be eternally grateful!
br /

br /
Here's the applescript code:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;set currentValue to do shell script andquot;defaults read /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabledandquot;
br /
if currentValue is andquot;0andquot; then
br /
set status to andquot;disabledandquot;
br /
else
br /
set status to andquot;enabledandquot;
br /
end if
br /
display dialog andquot;Set remote control infrared. Right now it is andquot; andamp; status andamp; andquot;.andquot; buttons and#123;andquot;Enableandquot;, andquot;Disableandquot;, andquot;Cancelandquot;and#125; default button andquot;Disableandquot;
br /
copy button returned of the result to button
br /
if button = andquot;Cancelandquot; then
br /
return
br /
end if
br /

br /
-- only change it if it needs to be changed
br /

br /
-- currently disabled and button is enable
br /
if currentValue is andquot;0andquot; and button is andquot;Enableandquot; then
br /
do shell script andquot;defaults write /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled -bool yesandquot; with administrator privileges
br /
return
br /
end if
br /
-- currently enabled and button is disable
br /
if currentValue is andquot;1andquot; and button is andquot;Disableandquot; then
br /
do shell script andquot;defaults write /Library/Preferences/com.apple.driver.AppleIRController DeviceEnabled -bool noandquot; with administrator privileges
br /
return
br /
end if/td	/tr/tablespan class=&quot;postbody&quot;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Central :: RE: &amp;quot;redonculous&amp;quot; widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9118#9118</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15426&quot; target=&quot;_blank&quot;&gt;lonestar&lt;/a&gt;&lt;br /&gt;
Subject: Re: &amp;amp;quot;redonculous&amp;amp;quot; widget&lt;br /&gt;Posted: Fri Jul 18, 2008 - 9:56 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bcottoneyejoe wrote:/b/span/td	/tr	tr	  td class=&quot;quote&quot;/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;blonestar wrote:/b/span/td	/tr	tr	  td class=&quot;quote&quot;so I'm browsing car prices the other day and of all things I find this not so useful but clever fortune teller widget! lol it's some toyota ad campaign so don't mind the lame commercial, download is at the bottom of the page. a href=&quot;http://www.potentialmatic.com&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;http://www.potentialmatic.com/a
br /

br /
enjoy!  img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/biggrin.png&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /[/url]/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /

br /
weird.  
br /

br /
i dig./td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
totally weird... but but strangely amusing.&lt;br /&gt;_________________&lt;br /&gt;a href=&quot;http://www.potentialmatic.ca&quot; target=&quot;_blank&quot;http://www.potentialmatic.ca/a&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: widget.system() issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9117#9117</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=14124&quot; target=&quot;_blank&quot;&gt;Quill&lt;/a&gt;&lt;br /&gt;
Subject: &amp;amp;quot;widget.system()&amp;amp;quot; Errors&lt;br /&gt;Posted: Thu Jul 17, 2008 - 3:55 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Are you allowing command line access in you Info.plist file?
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
andlt;keyandgt;AllowSystemandlt;/keyandgt;
br /
andlt;true/andgt;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
If the application is outside of the widget bundle, you may also have to include:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
andlt;keyandgt;AllowFileAccessOutsideOfWidgetandlt;/keyandgt;
br /
andlt;true/andgt;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
Quill&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Design :: RE: How to get a XMLHttpRequest into a JavaScript var???</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9116#9116</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=14124&quot; target=&quot;_blank&quot;&gt;Quill&lt;/a&gt;&lt;br /&gt;
Subject: XMLHttpRequest &amp;amp;amp; Storing Data&lt;br /&gt;Posted: Thu Jul 17, 2008 - 3:45 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Do you just need to parse the response text before it is displayed, or do you need to store the data to access later?
br /

br /
For the former, once the request is complete, simply call a function that parses the data, passing in the response text as a parameter:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
-------andnbsp; In andquot;gethttpand#40;and#41;andquot; -------
br /

br /
taxfreedom.onreadystatechange = functionand#40;and#41; and#123;
br /
andnbsp; andnbsp;if and#40;taxfreedom.readyState == 4and#41; and#123;
br /
andnbsp; andnbsp;andnbsp; andnbsp;if and#40;taxfreedom.status == 200and#41; and#123;
br /

br /
andnbsp; andnbsp;andnbsp; andnbsp;andnbsp; andnbsp;parseTextand#40;taxfreedom.responseTextand#41;;
br /

br /
andnbsp; andnbsp;andnbsp; andnbsp;and#125;
br /
andnbsp; andnbsp;andnbsp; andnbsp;else and#123;
br /
andnbsp; andnbsp;andnbsp; andnbsp;andnbsp; andnbsp;alertand#40;andquot;Errorand#58; There was a problem loading the data.andquot;and#41;;
br /
andnbsp; andnbsp;andnbsp; andnbsp;and#125;
br /
andnbsp; andnbsp;and#125; 
br /
andnbsp;and#125; 
br /

br /
-------andnbsp; Later in the code -------
br /

br /
function parseTextand#40;textand#41;
br /
and#123;
br /
andnbsp; andnbsp;// Code to parse the response text
br /
and#125;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
Also, notice the extra andquot;ifandquot; statement to check whether the request was successful or not (more info a href=&quot;http://developer.apple.com/internet/webcontent/xmlhttpreq.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;here/a).
br /

br /
On storing the data... If you just needed to store the data while the widget was running, you can just store the response text in a global variable. If the data has to persist after the widget is closed, or after the operating system is restarted, then you can store the data in a widget preference:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
if and#40;window.widgetand#41;
br /
and#123;
br /
andnbsp; andnbsp;// Save the data
br /
andnbsp; andnbsp;widget.setPreferenceForKeyand#40;taxfreedom.responseText, andquot;MyPrefandquot;and#41;;
br /
and#125;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
...and when the widget starts up again, you can retrieve the data from the widget preference and place it into a global variable:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
if and#40;window.widgetand#41;
br /
and#123;
br /
andnbsp; andnbsp;// Retrieve the data and store it in a global variable named andquot;MyPrefandquot;
br /
andnbsp; andnbsp;MyPref = widget.preferenceForKeyand#40;andquot;MyPrefandquot;and#41;;
br /
and#125;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
You can find out more about widget preferences at Apple's documentation a href=&quot;http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics/Articles/Preferences.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;here/a.
br /

br /

br /
Does that help you?
br /

br /
Quill&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Lounge :: RE: Introductions</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9115#9115</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15428&quot; target=&quot;_blank&quot;&gt;cottoneyejoe&lt;/a&gt;&lt;br /&gt;
Posted: Wed Jul 16, 2008 - 2:34 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;hey i'm Dan, new to the Mac world (used to be a pc guy.)  i like widgets and the apps for the new macs.  dont' know much about programming, but i figure signing up for message boards ain't a bad idea for me to leech some info off the pros.   img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/devil.png&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Central :: RE: &amp;quot;redonculous&amp;quot; widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9114#9114</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15428&quot; target=&quot;_blank&quot;&gt;cottoneyejoe&lt;/a&gt;&lt;br /&gt;
Subject: Re: &amp;amp;quot;redonculous&amp;amp;quot; widget&lt;br /&gt;Posted: Wed Jul 16, 2008 - 2:32 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;blonestar wrote:/b/span/td	/tr	tr	  td class=&quot;quote&quot;so I'm browsing car prices the other day and of all things I find this not so useful but clever fortune teller widget! lol it's some toyota ad campaign so don't mind the lame commercial, download is at the bottom of the page. a href=&quot;http://www.potentialmatic.com&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;http://www.potentialmatic.com/a
br /

br /
enjoy!  img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/biggrin.png&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /[/url]/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /

br /
weird.  
br /

br /
i dig.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Central :: &amp;quot;redonculous&amp;quot; widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9113#9113</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15426&quot; target=&quot;_blank&quot;&gt;lonestar&lt;/a&gt;&lt;br /&gt;
Subject: &amp;amp;quot;redonculous&amp;amp;quot; widget&lt;br /&gt;Posted: Wed Jul 16, 2008 - 12:03 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;so I'm browsing car prices the other day and of all things I find this not so useful but clever fortune teller widget! lol it's some toyota ad campaign so don't mind the lame commercial, download is at the bottom of the page. a href=&quot;http://www.potentialmatic.com&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;http://www.potentialmatic.com/a
br /

br /
enjoy!  img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/biggrin.png&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /[/url]&lt;br /&gt;_________________&lt;br /&gt;a href=&quot;http://www.potentialmatic.ca&quot; target=&quot;_blank&quot;http://www.potentialmatic.ca/a&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: widget.system() issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9112#9112</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15425&quot; target=&quot;_blank&quot;&gt;Drauchomyn&lt;/a&gt;&lt;br /&gt;
Posted: Mon Jul 14, 2008 - 3:25 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;The widget.system()  error output message that I get is:
br /

br /
/bin/sh: myProgram: command not found
br /

br /

br /
What does this mean and how do I fix it?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: widget.system() issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9111#9111</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15425&quot; target=&quot;_blank&quot;&gt;Drauchomyn&lt;/a&gt;&lt;br /&gt;
Posted: Mon Jul 14, 2008 - 11:19 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Or, eqivalently, if I change the code to this:
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /

br /
function fooand#40;and#41;and#123;
br /
andnbsp; var str = document.getElementByIdand#40;'userInput'and#41;.value
br /

br /
andnbsp; str = str.replaceand#40;/ 50/g, andquot;\and#40;andquot;and#41;;
br /
andnbsp; str = str.replaceand#40;/ 51/g, andquot;\and#41;andquot;and#41;;andnbsp; andnbsp;
br /
andnbsp; andnbsp;
br /
andnbsp; return widget.systemand#40;andquot;program andquot; + str, nulland#41;.outputstring;
br /

br /
and#125; 
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
So, then the terminal input should look like this, assuming the user input was (something):
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
program and#40;somethingand#41;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
This works just fine when I run my c++ program in the terminal, but not when accessed through the widget.....I'm pretty puzzled as to to what's going on.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: widget.system() issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9110#9110</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15425&quot; target=&quot;_blank&quot;&gt;Drauchomyn&lt;/a&gt;&lt;br /&gt;
Subject: widget.system() issues&lt;br /&gt;Posted: Mon Jul 14, 2008 - 10:43 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I am having difficulty passing an argument to the widget.system() method.  
br /

br /
The 'userInput' is a string containing parentheses.
br /

br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /

br /
function fooand#40;and#41;and#123;
br /
andnbsp; var str = document.getElementByIdand#40;'userInput'and#41;.value
br /

br /
andnbsp; //userInput is a string containing parentheses, 
br /
andnbsp; //letters and numbers
br /
andnbsp; //want to replace the parentheses with curly brackets
br /

br /
andnbsp; str = str.replaceand#40;/ 50/g, andquot;and#123;andquot;and#41;;
br /
andnbsp; str = str.replaceand#40;/ 51/g, andquot;and#125;andquot;and#41;;andnbsp; andnbsp;
br /
andnbsp; andnbsp;
br /
andnbsp; return widget.systemand#40;andquot;program andquot; + str, nulland#41;.outputstring;
br /

br /
andnbsp; //program is a C++ executable file which takes theandnbsp; andnbsp;
br /
andnbsp; //parameter str and returns a float 
br /

br /
and#125;
br /

br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
The reason I want to replace the parentheses with curly brackets is because the bash terminal does not interpret the parentheses as literals, but does so with curly brackets.
br /

br /
When I try to run my widget, all I get for an answer is andquot;undefinedandquot;; yet when I run my c++ executable in the terminal, it works fine with curly brackets.
br /

br /
Any help would be greatly appreciated.
br /

br /
Thanks!&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: current location weather</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9109#9109</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=10317&quot; target=&quot;_blank&quot;&gt;fiftyfour123&lt;/a&gt;&lt;br /&gt;
Subject: current location weather&lt;br /&gt;Posted: Fri Jul 11, 2008 - 9:16 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;i just had a great idea for a widget. it gets your current zip code/city by using your ip address and then gives you the current weather for that location.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Open URL in Safari (regardless of user's default browser)?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9108#9108</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=14124&quot; target=&quot;_blank&quot;&gt;Quill&lt;/a&gt;&lt;br /&gt;
Subject: Opening a URL in Safari&lt;br /&gt;Posted: Fri Jul 11, 2008 - 5:48 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hello,
br /

br /
You could use AppleScript to open the URL in Safari.
br /

br /
The AppleScript code is as follows:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
tell application andquot;Safariandquot;
br /
andnbsp; andnbsp;activate
br /
andnbsp; andnbsp;make new document with properties and#123;URLand#58;andquot;httpand#58;//www.mywebsite.com/andquot;and#125;
br /
end tell
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /
...where andquot;http://www.mywebsite.com/andquot; is the website URL that you want to open.
br /

br /
Paste that code into a new document in Script Editor (/Applications/AppleScript/Script Editor.app) and save it as a andquot;.scptandquot; file (I would place the file inside the widget bundle).
br /

br /
Then, you can launch the script from your JavaScript code using Apple's andquot;widget.systemandquot; command:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
widget.systemand#40;andquot;/usr/bin/osascript OpenURL.scptandquot;, nulland#41;;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /
...where andquot;OpenURL.scptandquot; is the path to the AppleScript file that you created (in this case, it is just the file's name, since I'm assuming that both the AppleScript and the JavaScript files are in the same folder - the widget bundle).
br /

br /
Also, make sure that you have the following key in your Info.plist file:
br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;
br /
andnbsp; andnbsp;andlt;keyandgt;AllowSystemandlt;/keyandgt;
br /
andnbsp; andnbsp;andlt;true/andgt;
br /
/td	/tr/tablespan class=&quot;postbody&quot;
br /
...otherwise, the andquot;widget.systemandquot; command won't work.
br /

br /
For more information on the andquot;widget.systemandquot; command, see Apple's Documentation a href=&quot;http://developer.apple.com/documentation/AppleApplications/Reference/Dashboard_Ref/GadgetObj/chapter_2_section_3.html#//apple_ref/doc/uid/TP40001339-CH203-SW16&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;here/a. For more information on the andquot;osascriptandquot; command (the command that you use to launch an AppleScript from the command line), see a href=&quot;http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/osascript.1.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;here/a.
br /

br /
Quill&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Default Image Issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9107#9107</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15407&quot; target=&quot;_blank&quot;&gt;bpdp&lt;/a&gt;&lt;br /&gt;
Posted: Fri Jul 04, 2008 - 9:27 am (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Well, not sure what the issue was... I deployed the same file again today and it worked. - thanks anyway.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: RE: Embed Widget on Website?</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9106#9106</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15407&quot; target=&quot;_blank&quot;&gt;bpdp&lt;/a&gt;&lt;br /&gt;
Posted: Thu Jul 03, 2008 - 12:50 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;You will have to do a re-write (but shouldn't take too long) - look into sites like clearspring to help deploy it.&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: Default Image Issues</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9105#9105</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15407&quot; target=&quot;_blank&quot;&gt;bpdp&lt;/a&gt;&lt;br /&gt;
Subject: Default Image Issues&lt;br /&gt;Posted: Thu Jul 03, 2008 - 12:39 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hello everyone,
br /
I created a widget in dashcode and everything works great. Until I deploy. Once the widget is installed the default image never disappears. rendering the widget useless. anyone have a similar problem?&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Requests :: own tracks in widget</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9104#9104</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=14888&quot; target=&quot;_blank&quot;&gt;rsommerer&lt;/a&gt;&lt;br /&gt;
Subject: own tracks in widget&lt;br /&gt;Posted: Thu Jun 26, 2008 - 2:58 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hello, I would like to have a widget in my dashboard displaying only the stuff i have in a single playlist in iTunes.
br /

br /
I will do the artwork myself and have done the first lines of code already, so that it does the flipping and has the necessary buttons etc.
br /

br /
Only the xml code (which I guess is necessary or is applescript fine?) is now missing and i cant get it together.
br /

br /
What I would like it to do is fetch the stuff inside this playlist where i have all the tracks i created myself. Then the usual buttons (ffw, play, rw, frw) and also it should be resizable. There should be scroll buttons as well because the list will be long and perhaps a status bar would be nice.
br /

br /
I appreciate any tips you can give me img src=&quot;http://www.dashboardwidgets.com/forums/images/smiles/joy.png&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /  
br /

br /
Thanks!
br /

br /
kind regards,
br /
Reinhard&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>Widget Development :: Scroll Bar works but is hidden</title>
	<link>http://www.dashboardwidgets.com/forums/viewtopic.php?p=9103#9103</link>
	<description>Author: &lt;a href=&quot;http://www.dashboardwidgets.com/forums/profile.php?mode=viewprofile&amp;u=15377&quot; target=&quot;_blank&quot;&gt;wapdgn&lt;/a&gt;&lt;br /&gt;
Subject: Scroll Bar works but is hidden&lt;br /&gt;Posted: Sun May 25, 2008 - 5:45 pm (GMT -5)&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hello,
br /

br /
I have been trying to do it by myself for a lot and a lot of hours but I didn't manage to show THIS scroll bar.
br /

br /
I simply drag a scroll area from the library to my canevas in dashcode.
br /

br /
Then i built a long long html table to be able to scroll.
br /

br /
I will be very happy if anybody know what i missed....
br /

br /
Thank you very much.
br /

br /
I include below my simple code.
br /

br /
I changed load function like this :
br /

br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;function loadand#40;and#41;
br /
and#123;
br /
andnbsp; andnbsp; setupPartsand#40;and#41;;
br /
andnbsp; andnbsp;myContent=document.getElementByIdand#40;andquot;contentandquot;and#41;;
br /
andnbsp; andnbsp;html=andquot;andlt;tableandgt;andquot;;
br /
andnbsp; andnbsp;var i;
br /
andnbsp; andnbsp;for and#40;i=0;iandlt;30;i++and#41; html+=andquot;andlt;trandgt;andlt;tdandgt;andquot;+i+andquot;andlt;/tdandgt;andlt;/trandgt;andquot;;
br /
andnbsp; andnbsp;html +=andquot;andlt;/tableandgt;andquot;;
br /
andnbsp; andnbsp;myContent.innerHTML=html;
br /
andnbsp; andnbsp;refreshScrollAreaand#40;and#41;
br /
and#125;/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
And i added this function :
br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;function refreshScrollAreaand#40;and#41;
br /
and#123;
br /
andnbsp; andnbsp; var contentarea = document.getElementByIdand#40;andquot;scrollAreaandquot;and#41;;
br /
andnbsp; andnbsp; if and#40;contentareaand#41; contentarea.object.refreshand#40;and#41;;
br /
and#125;/td	/tr/tablespan class=&quot;postbody&quot;
br /

br /
For remembering, dashcode create these div elements when i drag a scroll area to my canevas :
br /

br /

br /
/spantable width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;tr 	  tdspan class=&quot;genmed&quot;bCode:/b/span/td	/tr	tr	  td class=&quot;code&quot;andlt;div apple-part=andquot;com.apple.Dashcode.part.scrollareaandquot; class=andquot;apple-scrollareaandquot; id=andquot;scrollAreaandquot; apple-group=andquot;scrollAreaandquot;andgt;
br /
andnbsp; andnbsp;
br /

br /
andnbsp; andnbsp; andlt;div id=andquot;contentandquot; class=andquot;contentandquot; apple-group=andquot;scrollAreaandquot; style=andquot;positionand#58; absolute; leftand#58; 0px; topand#58; 0px; rightand#58; 22px; bottomand#58; 0px; overflow-xand#58; hidden; overflow-yand#58; hidden; andquot;andgt;andlt;/divandgt;
br /
andnbsp; andnbsp; andlt;/divandgt;
br /

br /
/td	/tr/tablespan class=&quot;postbody&quot;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
</channel>
</rss>
