lib/hook/hookapp.rb
# Open the Hook GUI for browsing/performing actions on a file or url
Open the Hook GUI for browsing/performing actions on a file or url
Open the Hook GUI for browsing / performing actions on a file or url
def open_gui(url)
    result = `osascript <<'APPLESCRIPT'
    tell application "Hook"
      set _mark to make bookmark with data "#{url.valid_hook}"
      if _mark is missing value
        return "Failed to create bookmark for #{url}"
      else
        invoke on _mark
        return ""
      end if
    end tell
    APPLESCRIPT`.strip
    raise result unless result.empty?
  end
def open_gui ( url ) result = ` osascript <<'APPLESCRIPT'
    tell application "Hook"
      set _mark to make bookmark with data " #{ url . valid_hook } "
      if _mark is missing value
        return "Failed to create bookmark for  #{ url } "
      else
        invoke on _mark
        return ""
      end if
    end tell
    APPLESCRIPT ` . strip raise result unless result . empty? end
Open the Hook GUI for browsing/performing actions on a file or url
Open the Hook GUI for browsing / performing actions on a file or url
url
<not_specific>