Content
The discovery, acceptance & management of life's gaps
File: automation
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
At the stroke of midnight tonight, I will have completed 3 full months of testing of a real-time web tracking solution that depends heavily on ThunderBolt technology. Though I continue to be plagued with drive issues, a single drive has been fast enough to deal with the current read/write requirements.
»
Read the rest
Initial testing of the LaCie ThunderBolt drives on a MacMini Server looked pretty good… That is after I returned the fist MacMini Server that had a dead Thunderbolt port. More in the next day or so….
»
Read the rest
I began testing Lacie’s Big Little Disk ThunderBolt drives this last week. Lacie makes some pretty big claims for these little guys and I am determined to find out if they measure up. I have several coding projects in the hopper that will definitely put them to the test. More soon.
»
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
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