Re: passing shell script arguments?
Re: passing shell script arguments?
- Subject: Re: passing shell script arguments?
- From: Walter Ian Kaye <email@hidden>
- Date: Mon, 6 Oct 2003 16:42:08 -0700
At 04:40p -0400 10/02/2003, Star didst inscribe upon an electronic papyrus:
Hi Andrew,
Thanks so much for the help, I'm dying on the vine here.
>> For a start, what is 'myShellCode' defined as?
myShellCode:
is the text of the shell script itself. I read it in (as text) to a property
of the applescript so that I don't have it laying around as a separate
loose component. The shell script is huge and this part seems to
be working fine as it asks for the "test_file log_file" which are it's
arguments to look for when processing.
It sounds like you are appending the filename to the script contents, then.
That's different from passing it as an argument to a command.
Another issue is the preservation of the environment between commands.
Chris N recently said to make sure they're separated by linefeed
characters and not carriage returns. Or you could separate them by
semicolons within a single long line.
HTH,
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.