Content

The discovery, acceptance & management of life's gaps

Tagged: sort

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