On 2/18/04 7:36 AM -0700, Doug McNutt wrote on Re: [MacPerl] Do shell script AppleScript impossible fr
>I haven't tried it but I am told that a #!/usr/bin/tcsh script can be made >executable in the sense that Finder will run it on a double click or if >it's placed in the startup area for a login. > >The procedure is something like: > >create a folder named thescript.app >create a folder inside called content >put the actual script inside content > >I'm not sure what has to be done with UNIX execute permission bits. I suspect this is not quite right. To see if I could make something work like this, however, I did a bit of experimenting. I created a folder chain - /Users/wump/Desktop/muck/thescript.app/Contents/MacOS/ using Finder. I did this because it mimics the typical .app arrangement. Then I used a text editor - ee /Users/wump/Desktop/muck/thescript.app/Contents/MacOS/thescript (I like ee better than pico but it's probably not readily available to casual Mac users - be nice if was, I think) to generate a text file that contains - #!/bin/sh touch /Users/wump/fumbus This basically just creates the file "fumbus" in my directory providing evidence of real execution without requiring any STDIO (unless there was an error - I didn't want Terminal to necessarily be involved in the execution, if any). I then did - chmod 777 /Users/wump/Desktop/muck/thescript.app/Contents/MacOS/thescript which makes the file actual script fully executable, readable and writeable by everybody. To test this, I made sure that "fumbus" didn't exist in my home directory, then double-clicked "muck" followed by double-clicking a folder looking icon with the name "thescript" showing (GetInfo says it's really thescript.app, of course). I got a nice set of expanding empty rectangles and nothing else obvious. I then checked to see if I had a "fumbus" in my home directory. Shar'nuff, thar 'twas! More over, if you do it again, it's re-touched. -- Walter M. Pawley <[EMAIL PROTECTED]> Wump Research & Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975