Content

The discovery, acceptance & management of life's gaps

Tagged: mac

Running AppleScript, and thus AppleScrunix, from the command line is quite simple. The command is osascript, see the osascript(1) Mac OS X Manual Page for more information. Open the application “Terminal” and type “osascript” followed by a space at the prompt ($). Next type the full path to the script or simply drag the script [...]

 » Read the rest

In this AppleScrunix sample we combine AppleScripts ability to easily add user interaction in selection of a folder/directory, with the power of the Unix command rsync. rsync is a highly versatile and powerful tool. Spend some time reviewing the man page for rsync and you will see what I mean. The following snippet is ready [...]

4 comments  » Read the rest

One of the most common uses for AppleScript, and thus AppleScrunix, is to process files in a folder/directory. In order to process them you must first list the files. Though I find the listing of a folder of files, just as easy using straight AppleScript as I do with AppleScrunix, I much prefer the variations [...]

 » Read the rest

One way in which Apple has turned the Mac into the most powerful scripting/automation platform on the planet has been to provide a litany of scriptable languages as part of the standard install. Just some of the languages you will find in Mac OS X are JavaScript, Ruby, Python, and of course AppleScript. I refer [...]

2 comments  » Read the rest

As there are no built-in routines for changing the case of characters in AppleScript, the coder is required to add their own handlers. The following script (See credits below) shows one way to use AppleScript to change the names of files in a folder from lowercase to uppercase & vise-versa. Begin Script… tell application “Finder” [...]

4 comments  » Read the rest

As there is no built-in sort function in AppleScript you have to create your own. A common way of sorting lists is to use the repeat function… cycling through the list comparing items as you progress.  One of the more efficient approaches is a bubble sort. You can find an excellent example in Lesson 18, [...]

4 comments  » Read the rest

2011-03-31 :: Russ Leseberg // automation + gaps + Technology
The Birth of AppleScrunix

On March 24, 2001 Apple introduced it’s ‘Unix’ based version of Mac OS, Mac OS X. Steve Jobs said, “Mac OS X is the most important software from Apple since the original Macintosh operating system in 1984 that revolutionized the entire industry.” See Mac OS X Hits Stores This Weekend. The following 10 years saw [...]

 » Read the rest