How to make Vivaldi aware of Apple Scripts?



  • I have an Apple Script that performs an action whenever a certain link type is clicked.
    This works in Chrome, but not in Vivaldi.

    The script:
    on open location this_URL
    tell application "Terminal"
    activate
    delay 0.25
    tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    activate
    delay 0.25
    do script "..."
    end tell
    end open location

    P.S., will be nice if these forums supported some forum of quoting.



  • So unlike other browsers that ask how to handle a link's protocol, Vivaldi doesn't show this prompt.

    0_1522161949689_Screen Shot 2018-03-27 at 16.53.35.png


  • Moderator

    @idanadar said:

    will be nice if these forums supported some forum of quoting.

    It does... use ">" as I did in the line above, or indent with 4 spaces if you have a code block.

    The script:

    on open location this_URL
    tell application "Terminal"
    activate
    delay 0.25
    tell application "System Events" to tell process "Terminal" to keystroke "t" using command down
    activate
    delay 0.25
    do script "..."
    end tell
    end open location

  • Moderator

    As for your original question, getting better and deeper integration with the macOS platform is still a work-in-progress. I will also do whatever I can to advocate on behalf of the Mac community.



  • @xyzzy Thanks. The 4 spaces indentation didn't work for me (and also not for you except for the coloring).

    Are you saying that this integration not working is a verified known issue?


  • Moderator

    @idanadar said in How to make Vivaldi aware of Apple Scripts?:

    @xyzzy Thanks. The 4 spaces indentation didn't work for me (and also not for you except for the coloring).

    Are you saying that this integration not working is a verified known issue?

    Vivaldi was written as a cross-platform, platform-agnostic app; even its UI is rendered using web technologies. The developers do strive to respect platform conventions as much as possible. However, since Vivaldi isn't a "true" native macOS app, the native platform integration doesn't come "free"; the developers have to work to make it happen.

    There are a bunch of known macOS platform integration-related issues but please feel free to file a bug regardless at https://vivaldi.com/bugreport/
    The Vivaldi teams strives to accommodate the needs of their users, and your bug reports and feedback will help to make Vivaldi even better on macOS.

    Thanks very much!



  • Thanks, I know what Vivaldi is, how it is built, from which technologies, etc... Just wanted to know if this is a known issue or not. Thanks again.



  • This actually works fine. I've identified the problem.


  • Moderator

    @idanadar Thanks. It still isn't very clear to me what was/was not working for you with regard to AppleScript but I'm glad that you were able to resolve your issue.



  • It seems to have been a problem with the website rather with Vivaldi. :)


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.