Re: Unable to pass data to applescript from data file through terminal
by Jolly Roger <jollyroger@[EMAIL PROTECTED]
>
Mar 14, 2008 at 02:12 AM
In article
<379391e5-a5c2-4d60-9cf2-5254986d92ac@[EMAIL PROTECTED]
>,
deepakjain99@[EMAIL PROTECTED]
wrote:
> I am facing the problem regarding sending data to from data file ( CSV
> file ) to applescript on terminal.
> I have used :
> $ osascript <applescript Name > <Data file Name >
> under apple script I used : "run" command
> llike :
> on run argv
> set <Veriable Name > to item 1 of argv
>
> -----
> ---
> end run
>
> When I run this script on Terminal it gives me error : End of file
> error (-39)
Without seeing the *actual* script, it's hard to know what you are doing
wrong.
This works fine here:
-- begin script
on run argv
set x to item 1 of argv
return x
end run
-- end script
In a terminal window:
# osascript test.scpt 'this is a test'
Argument: this is a test
--
Note: Please send all responses to the relevant news group. E-mail
sent to this address may be devoured by my very hungry SPAM filter.
JR