<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=7317977&amp;blogName=The+Armorer&#39;s+HellForge&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://smithforgerx.blogspot.com/search&amp;blogLocale=es_ES&amp;homepageUrl=http://smithforgerx.blogspot.com/&amp;vt=-5733133175049674420" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

miércoles, septiembre 14, 2005

import *

From the Apple training, I learned some of the basics of AppleScript. Some sample codes include:
display dialog "OPTIONS:" buttons {"say", 2, 3}
set x to result
if button returned of x = "2" then
display dialog "you pushed 2!"
else
display dialog "not pushing 1"
end if

AND
display dialog "key in text" buttons {"Cancel", "Say", "Display"} default answer ""
set x to result
if button returned of x = "Say" then
say text returned of x as string
else
display dialog text returned of x
end if

which are compiled and executed in the script editor. The script editor even includes a recorder of sessions and even writes/shows the codes as you move the window/s or browse menus throughout the desktop. Xcode was also introduced in the presentation. Some sample scripts are found here.

In my work as linux help support, I managed to fix almost everything except a bug in OpenOffice.org 2.0 on Mandriva. I had just assumed that the package is not yet upgraded atlhough I had not researched about it yet.
Creative Commons LicenseContent copyright protected by Copyscape website plagiarism search
This work is licensed under a Creative Commons License.