<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> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/7317977?origin\x3dhttp://smithforgerx.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

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.