

I'm wondering if this is happening because the original script was for three websites and I only need two? Thanks for reading and for your consideration. So, I am wondering if there is a way to modify the script so that it does not open the extra firefox window. However, there is an unwanted behavior of it opening a second blank firefox window in addition to the two tabs. To power Firefox Suggest, Firefox sends the keystrokes you type into your address bar, your location information, and more to Mozilla's servers. I am a complete newbie to applescript, so I do not completely understand what it is doing yet, however, it is successfully opening the two websites I want it to open in two separate tabs. An anonymous reader quotes a report from How-To Geek: Firefox now sends more data than you might think to Mozilla. I tried using your script replacing the three websites the original poster requested with the two websites I would like Firefox to open at the same time in one window (in two separate tabs). News has it that in order to support Firefox Suggest, Firefox sends your address bar keystrokes to Mozilla servers, along with your location information and more.
#Firefox now sends your keystrokes to windows#
If (( count of windows ) > oldNbrOfWindow ) then exit repeat Firefox is apparently sending more of your data to Mozilla than you might think. Tell application "System Events" to tell application process "Firefox" set oldNbrOfWindow to ( count of windows ) Repeat 40 times - gives about 4 seconds to open Firefox if not opened

In this one, I try to limit the bad behaviour of delay and keystrokes by checking if the action was done and if not repeat and check again. So, what I recommend is to check this checkbox in the Firefox preferences (Preferences -> Tabs -> Open links in tabs instead of new windows) and then press Command+N before running a workflow like the one from or try this script: The things that is more reliable is to set the Firefox preference "Open links in tabs instead of new windows" to what you prefer and then it will open links how this is defined (so in your case, since you say that it opens the URL in new window with the Alfred action, then I suppose it is not ticked and set to open in a new window). Thankfully, there is a way to disable some of this, which we will get to shortly. Firefox is now sending keystrokes, location info, and more back to Mozilla. However, a change to the default configuration of a relatively new feature may change some users’ minds. I'm with about avoiding simulated keystrokes and delay using AppleScript, but in the case of Firefox and interacting with different window and tab, it is hard to get around since there's no applescript dictionary to open a new window or a new tab directly with Firefox. Mozilla’s Firefox is generally considered a safe, privacy-centric browser.
