bluephonic
12/18/2006 12:51:00 AM
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.
On Dec 16, 4:56 pm, bluepho...@gmail.com wrote:
> I thought about that, but (if I'm not mistaken) it would mean anyone
> who used the program would have to have osascript installed -- since
> the thing already requires a mac and Illustrator CS2 (reducing the
> potential audience to about 100 people) I want to get rid of other
> dependancies. (Plus, I don't want to have to rewrite everything in
> Ruby.)
>
> Matt: Thanks! I'll see if I can figure that out (and if the program
> makes me a why-esque microcelebrity, I'll buy your book).
>
> On Dec 16, 4:48 pm, Bernd Haug <h...@berndhaug.net> wrote:
>
> > bluepho...@gmail.com <bluepho...@gmail.com> wrote:
> > > Hi -- I'm not a programmer by trade or inclination, so this might be a
> > > stupid question, but is there any way to add a ruby file to an
> > > applescript studio project?I don't know that, but did you consider going it the other way around
> > and calling the AppleScript from ruby? The command-line tool osascript
> > might interest you.
>
> > lg, Bernd