Unix/Linux Go Back    


Answers to Frequently Asked Questions Answers to Beginners BSD, Linux, and UNIX shell scripting Frequently Asked Questions — This forum contains answers to frequently asked questions about how to use awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages. (Only Moderators and Administrators can add a thread to this forum. If you would like to make an addition to this forum, post your suggestion in the FAQ Submission Queue sub-forum.)

Can't figure out the correct syntax for a command loading a webkit plugin

Answers to Frequently Asked Questions


Tags
load, mac os, terminal, terminal command, webkit

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-22-2017   -   Original Discussion by scrutinizerix
scrutinizerix scrutinizerix is offline
Registered User
 
Join Date: Sep 2015
Last Activity: 23 September 2017, 1:21 PM EDT
Posts: 16
Thanks: 5
Thanked 0 Times in 0 Posts
Apple Can't figure out the correct syntax for a command loading a webkit plugin

Hello,
Using Bash on Mac OS X 10.7.5 (Lion). I downloaded a GrowlSafari plugin for Webkit from its GitHub page GitHub - uasi/growl-safari-bridge: GrowlSafariBridge enables arbitrary javascript (including Safari Extensions) to notify via Growl.. In the description it says that after installing for it to run it's necessary to load the plugin with the following command:


Code:
document.write('<object type="application/x-growl-safari-bridge" width="0" height="0" id="growl-safari-bridge"></object>');

Every time I attempt to execute it BASH returns syntax error message

-bash: syntax error near unexpected token `'<object type="application/x-growl-safari-bridge" width="0" height="0" id="growl-safari-bridge"></object>''

Does anybody know what the correct syntax is?
Sponsored Links
    #2  
Old Unix and Linux 09-22-2017   -   Original Discussion by scrutinizerix
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 21 November 2017, 3:22 PM EST
Location: Saskatchewan
Posts: 22,518
Thanks: 1,154
Thanked 4,273 Times in 3,946 Posts
That is Javascript, not a BASH script. I think it belongs in an HTML file, probably inside <script> tags, which you load in your browser, to cause the plugin to be loaded.

Last edited by Corona688; 09-22-2017 at 06:42 PM..
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with change significant figure to normal figure command perl_beginner Shell Programming and Scripting 10 12-18-2013 02:45 AM
Do syntax is correct ? raghunsi Shell Programming and Scripting 10 04-26-2011 11:27 AM
Correct syntax Vitoriung UNIX Desktop Questions & Answers 1 10-07-2010 03:00 PM
Grub is not loading the correct kernel razor3928 Red Hat 1 09-07-2010 01:43 AM
Plz correct my syntax of shell script girish.batra Shell Programming and Scripting 2 06-06-2008 07:36 AM



All times are GMT -4. The time now is 05:08 AM.