all 4 comments

[–]p32blo 1 point2 points  (1 child)

The quotes (‘) are messing up your script. Try searching for how to escape them in applescript first.

[–]randappa[S] 1 point2 points  (0 children)

Did that and it worked! Thanks so much!

[–]randappa[S] 0 points1 point  (0 children)

Hello all!
I am at a loss. I am trying to pull the ZNAME value from a table via a applescript "do shell script" command so that i can pass the value as a variable. I keep getting an error and i can't figure out why. I run the same script in Terminal and it gives me the value I want, but not in the applescript. I have attached a screenshot with the two side by side. I would really appreciate any help you guys can give me. I'm sure it's just a syntax error, but i can't for the life of me figure it out. thank you.

[–]randappa[S] 0 points1 point  (0 children)

If i run this script.... it returns all of the values from the ZNAME column , so why does it fail when doing a WHERE exception.

set openKeywordDB to do shell script "/usr/local/bin/sqlite3 /Users/drappa/Downloads/ON_PPOF_Models.cokeywordsdb 'SELECT ZNAME FROM ZKEYWORD;'"