Jump to content

cskeeters

Member
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

182 profile views

cskeeters's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. When I run this workflow, I got no results either. I got the same error message as user etling. browser_tabs/applescript_utils.rb:30:in `block in osascript': AppleScript error: 2015-01-08 09:59:57.716 osascript[606:6233] ApplePersistence=NO (BrowserTabs::AppleScriptUtils::AppleScriptError) This is caused by osascript outputting the string "AppleScript error: 2015-01-08 09:59:57.716 osascript[606:6233] ApplePersistence=NO" to stderr even when nothing has gone wrong. The workflow has a file named applescript_utils.rb in sub-folder browser_tabs. This file runs files or (in this case, source code passed in as a string) with the osascript program. This is done in the method osascript. In this method, the code reads from stderr and raises and exception unless the there was no output from stderr. The aforementioned string that osascript outputs causes an exception to be thrown. To correct the issue, I modified the method to check for exit status of the osascript process and only in that case raise an exception. The corrected script is available here: https://gist.github.com/cskeeters/fca453f00d51329546a781a1e36dbd18
×
×
  • Create New...