Tag: Apple

Playing with AppleScript

Posted by – August 22, 2009

ApplesScript is a very interesting scripting language that allows the user to write scripts to automate computer tasks, it differs from the other script languages because of its syntax that is pretty closer to natural language.

I spent few hours this morning trying to understand how to write AppleScript scripts, It’s very simple, please read the AppleScript Language Guide to learn more about how to use AppleScript with your favorite applications.

The scripts below give to us an idea about how we can use AppleScript to change the behaviour of 4 most popular applications for MacOSX: iChat, Growl, Adium and Skype.

iChatStatus

1
2
3
tell application "iChat"
    set the status message to "New iChat status message"
end tell

iChatStatus can be used to change status message of the user on iChat. The first line starts with “tell” statement, we use this statement to specify the target of all commands on this script, in the second line we are using the “set” command to change a the value of “status message” property value on application to “New iChat status message”, the third line finishes the “tell” statement.

More

Share

My first iPhone application and the next challenges

Posted by – April 23, 2008

Last sunday I finished the development of my first iPhone application, I could do this by using Xcode and Interface Builder, the last beta of iPhone SDK comes with good integration between these two tools, but there are some components missing on Interface Builder, like UIDatePicker and UISlider, I can bypass it for now.
More

Share