Questions tagged [rb-appscript]
36 questions
24
votes
2 answers
How do I add files to targets in Xcode using rb-appscript?
I am trying to automatically add files to my Xcode project using rb-appscript. I don't have much experience with Ruby or Applescript, but two people seem to have made this work for…

traversable
- 740
- 4
- 9
16
votes
4 answers
Avoiding AppleScript through Ruby: rb-appscript or rubyosa?
Hello fellow Mac rubyists and AppleScript haters,
For those of you that have experience with both rubyosa and rb-appscript, I'd like the hear the pros and cons of each, which one you decided to stick with, and which one you'd recommend for a totally…

kch
- 77,385
- 46
- 136
- 148
5
votes
1 answer
Error while installing rb-appscript gem
I want to create a rails app using Test-Driven Development (TDD), so i wrote
rails new myproject -T
then I added these lines of code in the gemfile
group :test, :development do
gem 'turn'
gem 'rspec-rails'
gem 'capybara'
gem…

Azzurrio
- 1,330
- 1
- 17
- 35
3
votes
1 answer
Ruby way of handling shell command that evokes a MacOS securityd window
I have a simple problem that I'd like to see if people here can help me with. Currently, I'm writing some test automation to handle a simple in house command line tool that dumps the contents of a smartcard. In the process of dumping this…

HM Stanley
- 145
- 4
- 14
3
votes
1 answer
How do I catch this exception in Ruby?
I'm a ruby beginner so bear with me.
I am using the selenium-webdriver and rb-appscript gems to do some webscraping. The navigation to websites seems to be driven by the Net::Http object, which has a rbuf_fill method.
Running the following…

Kotsu
- 374
- 1
- 5
- 22
3
votes
3 answers
iTunes 10.6.3 changes AppleScript interface?
I have a simple Ruby script that uses the rb-appscript gem to control iTunes, and now that I've updated to iTunes 10.6.3, it appears to be broken.
Prior to 10.6.3, this piece of code would work as expected to get the currently selected…

Robert Speicher
- 15,382
- 6
- 40
- 45
2
votes
1 answer
ERROR while installing rb-appscript
Got a big problem installing rb-appscript.
I already installed the latest Version of xCode & I'm running Lion.
Hope you can help me, thanks a lot!
This is the Error Message:
sudo gem install rb-appscript
Building native extensions. This could take…

Tobias
- 21
- 2
2
votes
1 answer
How to distribute frozen binary gems with Ruby application (not Rails)
I wrote a bunch of Ruby scripts that integrate different tools to create a "workflow for academics". A number of my friends have been very interested in trying this out, however they are held back by how hard it is to install or replicate my…

Stian Håklev
- 1,240
- 2
- 14
- 26
2
votes
1 answer
How to loop through all rows in Excel using Applescript?
I'm trying to loop through all rows in Excel and run some command on each row, but I can't figure out how!
I tried initially doing that in rb-appscript (the Ruby wrapper for AppleScript) but decided that I'd be better off trying to get it working…

Yuval Karmi
- 26,277
- 39
- 124
- 175
2
votes
2 answers
Install error rb-appscript extconf.rb failed
Fairly new to this so I've been trying to awhile to figure this out but unable to locate an answer.
gem update --system
When installing the rb-appscript I get the following error.
gem install rb-appscript
Building native extensions. This could…

Architek1
- 2,051
- 3
- 15
- 17
1
vote
1 answer
How do I export PSDs as PNGs with py-appscript?
I wrote a script to export PSDs as PNGs with rb-appscript. That's fine and dandy, but I can't seem to pull it off in py-appscript.
Here's the ruby code:
#!/usr/bin/env ruby
require 'rubygems'
require 'optparse'
require 'appscript'
ps =…

Q-Bert Reynolds
- 11
- 3
1
vote
2 answers
Using rb-appscript to write a bulleted/numbered list in pages or textedit
I need to use rb-appscript to create a new Pages document that contains bulleted and numbered lists. Looking in to this, I see that paragraphs have a property called list_style, but I'm not familiar enough with rb-appscript or applescript to figure…

rm-rf
- 1,313
- 1
- 15
- 24
1
vote
5 answers
AppleScript: I copied the Finder selection to the clipboard. Can I get the full path to the copied items?
I have one or many files and/or folders selected in the Finder. I manually copy them to the clipboard/pasteboard (⌘C).
To keep things simple, let's say I just copied one single normal file. The ideal solution, however, would deal with many files and…

kch
- 77,385
- 46
- 136
- 148
1
vote
2 answers
rb-appscript not working in Mountian Lion
I'm using rb-appscript. The following line worked fine in Lion but doesn't seem to work in Mountain Lion:
desktop_bounds = Appscript.app.by_name("Finder").desktop.window.bounds.get
I have two questions:
Is there a way to get fix this in Mountain…

LandonSchropp
- 10,084
- 22
- 86
- 149
0
votes
1 answer
How to get UI_element properties with appscript
I want to write code in appscript.rb equivalent to Applescript:
tell App "TextEdit"
properties of front window
end tell
Trying
te = app("TextEdit")
puts te.windows[1].properties
returns the list of property names but no value.
Thanks…

Claude Cherton
- 11
- 4