rb-appscript

    0热度

    1回答

    最终目标是在Ruby/Cucumber中编写自动化测试,以连接到WebDAV服务器并测试验证,CRUD和加载/性能在Mac OS X. 我想尽可能模拟用户行为,这就是为什么我在看rb-appscript,但我打开其他想法。 我最初尝试这样的: app("Finder").open_location("http://example.com/dav") 但只开启默认浏览器。我猜open_locat

    0热度

    1回答

    如何获得UI_element性质,我想写在appscript.rb相当于代码的AppleScript: tell App "TextEdit" properties of front window end tell 试图 te = app("TextEdit") puts te.windows[1].properties 收益属性名称,但没有值的列表。 感谢回答。

    2热度

    2回答

    相当新的这一点,所以我一直在试图找出这一点,但无法找到答案。 gem update --system 安装rb-appscript时出现以下错误。 gem install rb-appscript Building native extensions. This could take a while... ERROR: Error installing rb-appscript: ERRO

    0热度

    1回答

    我试图使用rb-appscript宝石下面这段代码翻译成红宝石: 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 tell 我有点卡住了

    1热度

    2回答

    我正在使用rb-appscript。下面的线狮工作得很好,但似乎并没有在山狮的工作: desktop_bounds = Appscript.app.by_name("Finder").desktop.window.bounds.get 我有两个问题: 有没有办法让在山狮解决这个问题。 我看到rb-appscript项目不再被维护。有更好的选择吗?

    0热度

    1回答

    我试图用RB-appscript下面的脚本转换为Ruby的打字键盘快捷键: -- Runs the keyboard shortcut for the provided application name. -- applicationName - The name of the application to run the keyboard shortcut on. -- key - The

    6热度

    1回答

    我想创建使用测试驱动开发(TDD)一个Rails应用程序,所以我写了 rails new myproject -T 然后我在Gemfile中添加几行代码 group :test, :development do gem 'turn' gem 'rspec-rails' gem 'capybara' gem 'guard-rspec' gem '

    0热度

    1回答

    我有以下使用PDFpen OCR文档的Applescript。 tell application "PDFpenPro" open theFile as alias tell document 1 ocr repeat while performing ocr delay 1 end repeat delay 1

    0热度

    1回答

    我有一个脚本,可以自动将给定的PDF附加到BibDesk的出版物中。使用appscript-RB,下面的片段完美的作品: BibDesk = Appscript.app('BibDesk') selection = BibDesk.document.selection.get[0] f = MacTypes::FileURL.path(curfile) selection[0].linked

    0热度

    1回答

    下面的ruby代码会自动在VoodooPad中创建页面,并为每个页面添加元标记。 vp = app("VoodooPad.app") doc = vp.open vpdoc page_names = [@name] if self.class.to_s.match('Stake::Stack') # Create the release notes page. Only run