On Mon, Dec 18, 2006 at 09:55:16AM +0900, bluephonic / gmail.com wrote: > Okay, I've run into a problem. I've added the .rb file to the project > in XCode and referenced it in the applescript file with this line: > > set theArticleText to (do shell script (quoted form of POSIX path of > (path to resource "getArticle.rb")) & " \"" & theArticleName & "\" \"" > & wikiLanguage & "\" \"" & wikiProject & "\"" with administrator > privileges) > > But whenever I run the program, it throws an error -- "Permission > denied" -- even after I enter my password. > Just a guess here but either chmod +x getArticle.rb or change the applescript to say do shell script "ruby " & (quoted form of POSIX path of (path to resource "getArticle.rb")) & ... Geez AppleScript is verbose.