Search code examples
rubyshoesbackticks

Permission Denied - External Program Call Using Shoes With Ruby


Here is my code, I'm trying to simply open Adobe Acrobat Reader. When I use this code, or /Applications/Adobe Reader.app, the console tells me that "permission denied". Any ideas on how to get around this?

Shoes.app :width => 200, :height => 200 do
  flow :width => 800, :margin => 10 do
    button "OK" do
      `/Users/Travis/Desktop/test.fdf`
    end
  end

end

Solution

  • Try adding more permissions to the file. You can do this via the termial:

    chmod -R 777 /directory/file