multiple lined applescript using osascript
osascript -e 'set rec to run script $argv' -e 'tell application "myapp" to etData rec'
where $arg is the parameter passed from the shell script. Any and all help is appreciated.
Tom
Original applescript below...
calling seq: test.app '{name:"query"}'
test.app:
on run argv
tell application "myapp"
try
set rec to run script (item 1 of argv)
set x to GetData rec
on error number errNum
return errNum
end try
end tell
return x
end run
G4, G5 and Intel, Mac OS X (10.5.1), Same problem on Tiger as well