Questions tagged [rb-appscript]
36 questions
0
votes
1 answer
How to translate this Applescript into rb-appscript?
I have the following Applescript that uses PDFpen to OCR a document.
tell application "PDFpenPro"
open theFile as alias
tell document 1
ocr
repeat while performing ocr
delay 1
end repeat
delay 1
…

Joe Workman
- 341
- 1
- 16
0
votes
1 answer
Applescript (via appscript) stops processing in loop
The following ruby code automatically creates pages inside VoodooPad and adds meta tags to each page.
vp = app("VoodooPad.app")
doc = vp.open vpdoc
page_names = [@name]
if self.class.to_s.match('Stake::Stack')
# Create the release notes page.…

Joe Workman
- 341
- 1
- 16
0
votes
1 answer
Apple Event Handler Failure while trying to growl
I'm trying to growl from Ruby/Appscript, based on this sample Applescript code:
tell application "GrowlHelperApp"
set the enabledNotificationsList to {"Mail Notification"}
register as application "MailWidgetGrowlHelper" all notifications…
Phil
0
votes
1 answer
Translating AppleScript into rb-appscript
I'm trying to translate the following piece of code into Ruby using the rb-appscript gem:
tell application "System Events" to tell process "Dock"
set dock_dimensions to size in list 1
set dock_height to item 2 of dock_dimensions
end…

LandonSchropp
- 10,084
- 22
- 86
- 149
0
votes
1 answer
How to read the background color of a cell through a (ruby) script from Microsoft Excel on Mac Osx?
I want to get the background color of a cell of an Excel worksheet. I have already tried the following:
begin; require 'rubygems'; rescue LoadError; end
require 'appscript'
f = MacTypes::Alias.path(File.join(File.dirname(__FILE__),…

Jeroen van Dijk
- 1,029
- 10
- 16
0
votes
1 answer
Typing a keyboard shortcut using rb-appscript
I'm trying to convert the following script to Ruby using rb-appscript:
-- Runs the keyboard shortcut for the provided application name.
-- applicationName - The name of the application to run the keyboard shortcut on.
-- key - The key to press. For…

LandonSchropp
- 10,084
- 22
- 86
- 149