May 22, 2002 Today, 24U s.r.o. Is introducing a new upgrade of the popular scripting addition 24U Appearance OSAX to a version 2.0 for Mac OS X! Still as easy to use as “display dialog” but much more powerful! Extend the abilities of your AppleScript by the functions you have missed so far. Now also under the system Mac OS X! 24U Appearance OSAX; Locator 0.7.2; MacReporter 1.1.1; Periodic Table Programs; pop-pop 1.01; Tinderbox 1.1.3; FAQ; Download ATPM 8.08. Choose a format: Offline Webzine; PDF Print; PDF Screen; Report. By Eric Blair, eblair@atpm.com. Macworld Expo New York 2002 Wrap-up. Without a doubt, Macworld New York really snuck up on me this year. Ever since I started using Address Book, I have wanted to be able to use some kind of feature classification of records (like enum types in Java/C, or value lists in File Maker). Using Smart Groups and a previous hint on Mac OS X Hints, I managed to set up an acceptable system. It's not perfect (for example, I have not been able to get iSync to understand Smart Groups), but it works reasonably.
- Advertisement
- Virtual MIDI Piano Keyboard for Mac OS v.0.3.3A MIDI events generator and receiver. It doesnt produce any sound by itself, but can be used to drive a MIDI synthesizer (either hardware or software, internal or external). You can use the computers keyboard to play MIDI notes, and also the mouse.
- German Sorbian Keyboard Layout for Mac OS v.1.0Additional Mac OS X keyboard layout file used with a German keyboard, named “Deutsch Sorbisch”. If you are using Mac OS X with a German keyboard layout, but need to type lots of Sorbian text, then use this Keyboard Layout. The keyboard ...
- Russian Transliterated Keyboard Layout for Mac OS v.1.0This keyboard layout for OS X lets you type Russian in a natural way. There are no special keys to learn. - Key combinations produce Russian letters and punctuation on the d¬‚y. - Stress marks may be added by pressing the ` key following ...
- 24U Appearance OSAX X v.3.124U Appearance OSAX allows AppleScript to communicate with user in many more ways than those offered by basic installation. While preserving maximum easiness of use, 24U Appearance OSAX extends AppleScipt. Main features: - Dialog boxes for user data ...
- Alois Virtual Keyboard v.1.0Alois Virtual Keyboard 1.0 is developed to be a helpful and beneficial program which makes it possible for you to replace a real keyboard and mouse including dozens of special characters and letters of the main European languages.Requirements:Intel ...
- Glossy Keyboard v.1.2Replace your boring keyboard with this new, glossy one.A sleek keyboard set for iPhone and iPhone 3G. I hope you are going to enjoy using it. System requirements: - ...
- Keyboard Menu Manager v.1.0.3Keyboard Menu Manager 1.0.3 is a utility to confine KeyScripts for starting-up language and Roman except on multilingual applications. In addition, you can lock KeyScript when you write e-mail or HTML document in any single language. Even if many ...
- Keyboard and Mouse Recorder v.5.1Keyboard and Mouse Recorder 5.1 is specially designed to be used when you want to record your keyboard keystrokes, mouse movements and mouse clicks, you want to save them and to replay them whenever you want, as much as you want, In loop, you need to ...
- Photoshop Keyboard Shortcut Fix v.1.0Beginning with Mac OS X v.10.2 (Jaguar), Apple has reserved the keyboard shortcut Command+~ (Tilde) to cycle through an applications open document windows. This change conflicts with the behavior of the shortcut in Adobe Photoshop 7.x (selecting the ...
- Photoshop Keyboard Shortcut Fix updatePhotoshop Keyboard Shortcut Fix update is an update ...
- Typewriter Keyboard v.5.0Typewriter Keyboard 5.0 provides you with the easiest way to let your Macintosh play typewriter sounds when you press the keys of your keyboard. You even want your keyboard to play your own sounds? Then Typewriter Keyboard is what you ...
- Java Virtual Keyboard v.011This project is a highly configurable Virtual Unicode Keyboard written in Java. You might want to use it to type some words in a foreign character set with your ...
- MouseFeed Eclipse Plugin. Learn keyboard v.1.0.0MouseFeed Eclipse plugin. Helps to remember keyboard shortcuts. Shows a popup with the keyboard shortcut for the actions called with a mouse ...
- Code Appearance v.1.0Code Appearance is a small application that beautify the code before you put it on a forum or a website.What it does? It adds color to the code, like the syntax highlighting of your favorite IDE. The syntax files are easily ...
- Machine music keyboard K v.11.18The page has now been upgraded from SoundFont only page to an Instrument page wi ...
- HariSree Malayalam Keyboard v.1.0HariSree Smart Pad consists of virtual keyboards with changable layouts and transliterators that support any language even though primary language is Malayalam.Download and understand the capacity of this ...
- Alizee Games v.2.0some simple & funny games about Alizee: keyboard trainer, puzzle, miner, cards 9, sudoku, hearts darts. Games are small and you can open then in browser.
- ShineOff Mac v.2.0.0ShineOff is an Adobe Photoshop compatible Plug-In filter that automatically removes the shine from skin. ShineOff automatically transforms faces and skin areas to a natural looking appearance.
- KeyWack X for Mac OS X v.1.5KeyWack is a game for people with babies and small children who like to sit at their parent's computer and bang the keyboard. KeyWack prevents babies from accidentally opening most programs or documents, and makes banging even more fun by drawing ...
- LyX v.2.0.1-1LyX is a document processor that encourages an approach to writing based on the structure of your documents (WYSIWYM) and not simply their appearance (WYSIWYG). LyX combines the power and flexibility of TeX/LaTeX with the ease of use of a ...
- LyX LyX is a document processor that encourages an approach to
- Machine music keyboard K The page has now been upgraded from SoundFont only page to
- Arabic Typing Tutor Pro Typing speeds illustrates familiarity with computer. It
- Virtual MIDI Piano Keyboard for Mac OS A MIDI events generator and receiver. It doesnt produce any
- Typeeto Typeeto is a handy tool that enables you to use your Mac
- Fflash drums Drum machine, free downloadable drum machine , drum machine
- Perfect Mobile Icons Enhance the appearance of mobile software by using a set
- Iconshock Impressions - Professional icons Impressions contains more than 1000 icons attractively
- HariSree Malayalam Keyboard HariSree Smart Pad consists of virtual keyboards with
- KeyBag PRO Keystrokes spy records passwords and captures keyboard
Background
AppleScript in OS X became a scripting language much less interesting (and less powerful) than it was in Classic OS days. This is mainly because of the lack of implementation of good AppleScript commands/classes in different applications. On the other hand, OS X has many very powerful scripting languages that come with Unix -- these are for example Perl, Python, Ruby, etc., and shell script. But they generally lack any GUI capability, so that it is not very handy to use them. There are some good tools that add GUI elements to these languages, for example Platypus 2.5 (which can be used with CocoaDialog), Pashua, or DropScript. But in this regard, AppleScript can provide a good complementary tool: the user can easily make double-clickable applications or droplet applications. It has some basic GUI elements, and with the help of some utilities like 24U Appearance OSAX, it is possible to add more GUI elements. And most importantly, AppleScript is bundled with the system, so that everybody has it. On the other hand, we can generate application bundles with AppleScript, and put inside them the script(s) (Perl, Python, shell script(s), etc.) which can be called from AppleScript; this way, it is handy to distribute these 'composite' scripts/applications.Here, I tried to write a droplet script which can help building such application bundles: it is called 'scriptApp_buildHelper'. To use it, you need to know to write working scripts for any of Unix scripting languages of your preference, and also some basic things about AppleScript.
How to use it
You would first write your 'external script' (Perl script, Python script, shell script, etc.); if it is for a droplet, it would accept (at least) one argument, which is an input file (or folder); you can make it so that it would return ('print') some string, or write a file, or anything you want. And it must begin with '#!...'.Then you would write an AppleScript script. If it is for a script application, the script can be anything, provided that it can be compiled as AppleScript script. For example, something like:can be good.

If it is for a droplet application, it can be anything, provided that it begins with 'on open (droppedItems)' and ends with 'end open'. For example, it can be something like this:
You would save this droplet script as an application bundle. Then you would drop your 'external script' on the droplet 'scriptApp_buildHelper'. It will ask you if you want to make a droplet or a script application. You will choose one of them.

Then it will bring up a file selecting dialog, prompting you to select your droplet/script application. When you have selected the application that you have made, it will:
1. copy your 'external' script in the application bundle's /Contents/Resources/ folder, and make it executable;
2. it will open a 'script_template' window in Script Editor, which will contain either the 'script_template' for a droplet or 'script_template' for a script application.
The 'script_template' for a droplet is:
The 'script_template' for a script application is:
3. finally, it will open in Script Editor the script of the droplet that you have written, to let you edit it, and displays a prompt saying 'Now, edit your droplet script...!'
.
Explanation on the 'script_template'
The 'script_template' shows a 'model' of the AppleScript script that will be used for your droplet/script application.Here, I will explain the 'script_template' for the droplet, because it is more complicated than the one for the script application. You will understand the script for the script application if you understand the one for the droplet.
The first line 'property script_fname : 'foo.bar' -- your 'external script' name
' defines your 'external script' file name.
The handler 'on open... end open
' is the handler used for droplets. The basic form of a droplet script is:When you drag-&-drop one or several items on the droplet, the 'dropped items' will be set as a list in the parameter of 'on open' handler; with 'repeat with theFile in droppeditemList... end repeat
', each item is set as an alias in the variable 'theFile
'.
The two lines:will set in the variable 'shell_scpt
' the POSIX path (Unix style path) of the 'external script', which is placed in the droplet's bundle's '/Contents/Resources/' folder.
The 'repeat with theFile in droppeditemList... end repeat
' loop:will add to the variable 'shell_scpt' the POSIX path of each file, separated by a space.
When all the shell script that calls the 'external script' and passing to it a list of dropped files' paths is ready, in the lines:we try to execute the 'external script' with its argument. If there is any error, it will be trapped, and after having displayed the error message, the droplet will exit.
I added some commented out lines:
1.You will un-comment these lines if your 'external script' doesn't accept folders as argument.
2.If you un-comment these lines, you will be able to let the user enter an option (preceded by a '-') that will be added as the last argument in the arguments list to be passed to the 'external script'.
3. The lines:and:are for debugging the droplet. You will have to change the pah 'Macintosh HD:Users:me:Documents:my_test_file'
to the path of a real file (change 'me
' and 'my_test_file
' to something existing). Now, if you un-comment these lines, and run the script in Script Editor (Command + r), the droplet will return the shell script which is to be executed, and will quit. You will find in the 'Result' window the shell script that is to be executed. To test if it will work as expected, you will copy that result script, paste it in Terminal window, and press 'Return'...
4. The commented out lines:andare for the case in which the 'external script' will return some string (with the command 'print' or similar command), and you want to display that returned string. Of course, if the returned string is very long, 'display dialog' command is not good; you will use some other command...

Aknowledgement
I have been helped by has and Emmanuel to write the code of this droplet, as well as the 'script_template'. Thank you to both of them!
Another way to do...
John Delacour has posted a message to the MacScripting mailing list, proposing another method to achieve a similar goal. Using John's method, it is possible to create a generic AppleScript droplet which will store the path of an 'external script' (a Perl script in this case), and execute it when other files will be dropped on it, passing to the 'external script' the paths of these files. Please have a look at:
<http://listserv.dartmouth.edu/scripts/wa.exe?A2=ind0412&L=macscrpt&T=0&F=&S=&P=3918>
where you will find the code for this droplet. (added on 04.12.16)
About the 'external script'
The 'external script' for a droplet will receive an argument list containing the paths of all the dropped items (you may add one or more options as well...).In Perl (the only scripting language that I know...), that would be equivalent of something like:
Normally, your code should use the construct:or something alike.
Notes on Pashua and Unicode input
You can make a droplet or a script application which uses Pashua GUI elements if you want. To do that, you will have to put Pashua application in your /Applications or ~/Applications folder (it must be at the top level of one of these folders). You will write an 'external script' for Pashua; you can place associated module (Pashua.pm
for Perl, Pashua.py
for Python, etc.) either in the respective library folder, or in your droplet/script application bundle's /Contents/Resources/
folder, along with your own script.Pashua, from its version 0.9.1 onward, is good especially because it allows the use of Unicode (UTF-8) for it's GUI elements. In this regard, it is much better than AppleScript itself, which is unable to handle Unicode text in input in dialogs.
Examples
24u Appearance Osax Pro
1. A droplet application '24u Appearance Osax Plus
concatenate_rtf
'. This uses the same script as my 'concatenate_rtf_for_v1.pl' that you will find in my page Concatenate_rtf for Nisus Writer Express v. 1.x, v. 2.0.x and TextEdit. You can use this droplet to concatenate rtf files created by Nisus Writer Express v. 1.x (do NOT use it for files created by Nisus Writer Express v. 2.x!), or by TextEdit.24u Appearance Osax -
2. A script application 'unihanData_lookup
'. This script will work for a Chinese character that is in the clipboard. To use it, make sure that you have a Cocoa application handling Unicode (TextEdit, Mail, Nisus Writer Express, Jedit X, etc.): select a Chinese character in a window of that application, copy it, then launch this script application. Your web browser will open the page of Unihan database for that character.
3. A script application 'Unix_grep_pashua
'. To use this script application, you must have Pashua in your /Applications or ~/Applications folder. When you launch this script application, a dialog will ask you to enter the grep options (we use Unix egrep; the default value is: 'Hbn'); then a Pashua window, having three objects, will ask you:
a. Enter the keyword to be searched;
b. Choose a folder in which the search will be done: option 1
or
c. Choose a text file in which the search will be done: option 2
You will enter the keyword, and choose either the folder, or the file.
The search will be done, and the result will be written in a file named 'grep_res.txt', 'grep_res1.txt', etc. on your Desktop, and will be opened in TextEdit.
Download
Please download 'dropletScript_buildHelper.dmg' from [Macro error: Can't evaluate the expression because the name 'f' hasn't been defined.].24u Appearance Osax 2
I would appreciate any feedback, bug report or suggestions.
Thank you in advance.
Have fun!
24u Appearance Osax System
Go to NI Home Page
