Is it possible to script Firefox to do things from the command line?

Specifically, I am attempting to print a web page at a specific url from the command line.

Thanks for the quick reply. I had already seen the page you linked to, but it doesn't have any commands to print a web page. Should I interpret from that absence that there isn't a way to print from Firefox from the command line?

Similar Messages

  • How to start firefox in safe mode from the command line

    This is for Window XP, firefox 19

    Hello jjfirefox77
    "C:\Program Files\Mozilla Firefox\firefox.exe" -safe-mode
    thank you

  • Is there a way to switch between workspaces in Spaces from the command line?  I want to write a script to set up certain applications in certain workspaces (without having to do it manually each time)...

    Is there a way to switch between workspaces in Spaces from the comnand line?  I use several workspaces from Spaces, each workspace having a certain number of fixed applications running.  Rather than set all this up each time I log on, I'd like to write a script from the command line (I use gawk) to automate this. Currently I have a gawk script that, given a directory, opens a few xterms whose working directory is the given directory, and opens "preview" applied to a certain file in that directory.  However, at present I have to manually move an xterm through each workspace and run my gawk script in each workspace (applied to each directory that I'm working on).
    There must be a better way...

    Addendum: Can this be done via:   open -a Spaces --args xxx  , where xxx is some set of arguments (or something like this)?

  • How I can set my default browser mozilla firefox from the command line in Windows 7?

    I need to set my default browser mozilla firefox from the command line, ie without using the GUI.

    '''-setDefaultBrowser''' is the correct command - you need the two capital letters.
    Why Firefox 17.0.1? You would be missing a number of important security updates. Firefox 17.0.'''9''' is the current ESR release version.

  • I used to beable to push firefox with sccm using setup.exe from the command line , this no longer works i want to be able to have a silent install run for all,

    In the past I have always created a deployment with sccm and installed firefox.exe with the /s switch from the command line what is the new switch for silent installation ?

    hello, have you tried it with the full installers that are available at https://www.mozilla.org/firefox/all yet?

  • How to execute SAPGUI script from the command line?

    I have created a script and would like to execute it from the command line. There must be some flag that goes with SAPGUI.EXE. Any help appreciated.
    Thanks,
    Jeff

    Hi Jeff,
    the best way to do this is to run the script using the Windows Script Host, for example like this:
    cscript myscript.vbs
    This will execute the script which in turn can access SAP GUI. You may however have to make sure the script attaches to the correct session.
    Best regards,
    Christian

  • Is it possible to run Acrobat3D from the command line?

    I'd like to know if it is possible to run Arobat3D from the command line in batch mode. I'm interested in knowing if this is possible in either a windows or unix environment.
    My objective is to convert CAD data e.g. CATIA V5 or DXF etc to PDF, in batch mode without using the Acrobat3D interface itself.
    I know that it's possible to run a batch process from within Acrobat3D itself, therefore one solution may be to invoke those batch processes from the command line.
    I've looked through the other listings on this forum and seen this question asked previously, but I've not seen any responses that suggest this is even a feasible concept.

    As of now, it's not possible in the cmd-mode to just remain connected and not stream.
    But the reason you want to do that is because of the long start-up time. That 20 sec time can be divided into:
    1. launch time
    2. time to start encoding (after pressing start button) -> cannot be reduced even if 'connected only' feature is available in cmd-line
    Below are tips you can use to reduce this 20 sec of time:
    1. Lesser the no. of devices connected to the system, shorter is the launch time. Disable the devices which are not to be used in the session.
    2. Try using device indexes (0, 1, 2, etc) instead of device names in the profile. Indexes might change after you disable some of the devices.
    3. Use the profile with correct settings, to avoid any validation errors.
    4. Higher the video size, higher is the overall time. Small sizes take lesser time to start.
    Let me know if you see any improvement in the startup time.

  • Running a function from a powershell script from the command line

    Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command line.
    so far, if i change directory to that of the script i can call the function by doing this:
    cd c:\myscripts
    . .\mytestscript.ps1; myfunction
    this works fine.... i have also tried, what I would like to achieve is calling it like this
    c:\myscripts\mytestscript.ps1; myfunction
    however, i am trying to run this as part of an MDT task sequence, my command line looks like this and using the ; myfunction at the end doesn't work.
    powershell.exe -ExecutionPolicy Bypass %SCRIPTROOT%\CustomScripts\mytestscript.ps1; myfunction
    how can i adapt my command line so that it will successfully call the function within my script?
    thanks
    Steve

    Rename the file from ps1 to psm1 and create a powershell module that contain multiple functions. A module will autoload like the built-in modules.
    Placement of the psm1 file is important for Powershell to find and autoload it.
    The file name and folder name must be the same, for example MyModule.psm1 should be in the folder:
    user\documents\windowspowershell\modules\mymodule
    Windows PowerShell Modules
    http://msdn.microsoft.com/en-us/library/dd878324(v=vs.85).aspx
    PS C:\> get-childItem env:PSModulePath
    Name Value
    PSModulePath C:\Users\User\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

  • Calling an ExtendScript script from the command line

    Hi! I can call an ExtendScript script from a command line just by using its path, but is there a way to pass parameters to the script? Thanks. -Rick

    Hi Rick,
    Well, a scan of the documentation certainly provides no evidence of this capability. If it exists, someone else will have to fill us in.
    I did have an idea, although it's a bit of a roundabout approach. A windows batch file can accept parameters and can write a text file. So, maybe Mif2Go can call a batch file instead that writes the folder to some file, then runs the script that reads the file. Although, I'm not familiar with a command line call to ES, so I'm not sure that a batch file can launch an ES script too. If not, can Mif2Go make more than one command line call?
    Russ

  • Is retreiving a db connection from the command line possible?

    I have some Java code that is part of a larger monthly data processing application that is run via scripts on AIX. In the middle of the data processing, one of the scripts calls my Java code, which reads in data from one table, does some magic on it, and outputs it to another table, which the calling script then accesses and everything goes on its merry way.
    Currently, the user id, password and db url are stored in a property file that the Java app uses to make the database connection. In an effort to increase security, my team is removing all db connection information from property files such as this and creating one common script that will be executed to connect to the databases, hiding the connection info and reducing the number of locations that passwords must be updated every 90 days.
    So my question is this: When running a processing script, executing this common connection script creates the db connection and database commands can be issued from the processing script. In a similar vein, is there a way for my Java app to call this common connection script and retrieve the connection object for use inside the Java app?

    flyingmullet wrote:
    I have some Java code that is part of a larger monthly data processing application that is run via scripts on AIX. In the middle of the data processing, one of the scripts calls my Java code, which reads in data from one table, does some magic on it, and outputs it to another table, which the calling script then accesses and everything goes on its merry way.
    Currently, the user id, password and db url are stored in a property file that the Java app uses to make the database connection. In an effort to increase security, my team is removing all db connection information from property files such as this and creating one common script that will be executed to connect to the databases, hiding the connection info and reducing the number of locations that passwords must be updated every 90 days.
    So my question is this: When running a processing script, executing this common connection script creates the db connection and database commands can be issued from the processing script. In a similar vein, is there a way for my Java app to call this common connection script and retrieve the connection object for use inside the Java app?No
    But the script could pass the connection information to the java program as command line arguments.

  • I would like to open an .htm file from the command line using firefox. Firefox responds by trying to open a URL (adding WWW to front of file name)

    firefox is located on unix box and I would like to use it to open report generated. After script creats report I would like to call firefox to read report. "firefox report.htm"

    I have solved this problem. All I needed was to follow firefox with the filename

  • I often launch Firefox from the command line or LaunchBar. How do I prevent Firefox from opening a new window with my homepage along with a separate window with the location I intended to open?

    Macbook Pro i7 17"

    It's a bug on Mac.
    [https://bugzilla.mozilla.org/show_bug.cgi?id=531552 Bug 531552] - Firefox 3.6b opens two windows when opening external links
    (please do not comment in bug reports)

  • How do I run Firefox in the "Privacy mode" from the command line?

    The question says it all.

    Hello,
    Close all instances of Firefox before and use this command:
    *firefox.exe -private
    Or specify a url:
    *firefox.exe -private -url http://support.mozilla.org

  • Is there a way to generate job execution scripts from the command line?

    The customer is planning to change DI production server configuraiton and needs to regenerate job execution scripts for hundreds of jobs. Their question is - instead of going through web admin and doing it one by one, is there a way to run a batch command and generate all jobs with the same job server information from one repository? I looked at the "al_engine" command but didn't find the options to do so. Did I miss something? This is for a DI 11.5.3 on HPUX.
    Thanks,
    Larry

    I also suggested that but the customer was so afraid of messing things up that they wanted to find out if there is another way. Thanks a lot for the confirmation.
    Larry

  • Execute script from AfterFX command line

    Hello all
    I'm trying to run a script from the AfterFX.exe command line and I get a message: "Unable to execute script at line 1. Syntax error"
    If I run the same script file from the AE Script Editor, it works perfectly
    Here is the command line I'm using:
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx"
    Anyone have an idea of what can cause this error? I've tried running the script directly in the command line like
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "alert('1')"
    and it works fine for short script but mine is way to big to do that
    As you can probably guess with the "Watermark" and "Security" in the filename, I cannot post the script file here, all I can say is that the line 1 is:
    var projectName = "D:\\Product\\WatermarkTemplate.aep";
    I've tried to replace the entire script with "alert('1');" and it cause the same error when running it from the command line
    Also, if anyone know where I can find the AfterFX.exe command line arguments description, I would be very happy.. everybody talks about aerender.exe but I need thoses options for AfterFX.exe
    Thanks for your help

    Have you tried to use "-r" instead of "-s"?
    (argument for "-s" is a script; and argument for "-r" is a path to script)

Maybe you are looking for