What I would really like is to be able to use any executable script (Perl, bash, etc.) as a Mac OS "Speakable Item." Speakable Items are simply scripts with a filename you can say out loud. If the user says the filename, the script is executed.

Some rules allow only certain scripts in certain directories to be monitored with the voice recognition subsystem. As far as I can tell, there are only two kinds of Speakable Items: an AppleScript .app, or a special text file which indicates that the functionality is built into the voice recognizer itself (such as the Knock Knock joke engine).

I would like a pile of Speakable Items, but the overhead of wrapping each .pl into .app files is quite a chore. I would also like a certain "Speakable Items" folder to be active when the login prompt is on the screen (with all the caveats of not allowing any GUI interaction, and installed only by sudo, etc). I've recommended this to Apple, and I hope Tiger shows some growth in that area, but I don't hold much hope.

--
[ e d @ h a l l e y . c c ]


In reply to Re: Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder? by halley
in thread Can files with extension ".command" on MacOSX be perl scripts? What is a way to let users execute Perl scripts on macosx from Finder? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.