Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Unable to pass ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1584 of 1610
Post > Topic >>

Unable to pass data to applescript from data file through terminal

by deepakjain99@[EMAIL PROTECTED] Mar 13, 2008 at 11:45 PM

Hello All,
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)
Please provide your valuable inputs to get the data file file from
command prompt .
If I hard code the data file in the applescript , it works :
Example:
set <Variable Name > to "Path of file"

Thanks !!!




 4 Posts in Topic:
Unable to pass data to applescript from data file through termin
deepakjain99@[EMAIL PROTE  2008-03-13 23:45:38 
Re: Unable to pass data to applescript from data file through te
Jolly Roger <jollyroge  2008-03-14 02:12:15 
Re: Unable to pass data to applescript from data file through
deepakjain99@[EMAIL PROTE  2008-03-18 08:15:41 
Re: Unable to pass data to applescript from data file through
deepakjain99@[EMAIL PROTE  2008-03-20 07:14:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 5:16:08 CDT 2008.