Using an automatic configuration file to create bookmarks

I use an example provided by Mike Kaply to change my automatic configuration file to add bookmarks to the profiles of the users. However, whenever I run FF, instead of bookmarks should be replaced, I get an extra game. So after 5 revival, I have 5 sets of bookmarks that I added.
Is there a way to avoid this?
Here is the code I use:
Add bookmarks
Components.utils.Import ("resource://gre/modules/Services.jsm");
var uri = Services.io.newURI ("http://mike.kaply.com", null, null);
var navBook = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"].getService(Components.interfaces.nsINavBookmarksService);
create new folder
var FolderId = navBook.createFolder (navBook.bookmarksMenuFolder, "New folder", 0);
Add bookmark to newly created folder
navBook.insertBookmark (SCCCFolderId, uri,-1, "Mike's Blog");

In the end, I had to write code using a loop with an if statement then look for an existing bookmark. Of course it's a little more complicated than that.
It was not easy, but I am able to do what I have to.

Tags: Firefox

Similar Questions

  • How to use the automatic configuration wizard and where can I FIND?

    How to use the automatic configuration wizard and where can I FIND?

    Hi TannySmedt,

    To activate the Configuration service automatic wireless so it starts automatically, click the Start button. Select settings , then select Control Panel. If you use Windows XP display, select the performance and Maintenance category, and then select Administrative Tools. If you use Classic view, and then select Administrative Tools. In the left pane, click the Services icon. Click the automatic Wireless Configuration icon in the right pane, and change the box Startup Type to Automatic. This parameter will be defined the service starts automatically at boot time. Then click on the Start button to start the automatic Wireless Configuration service zero wireless and click on the OK button.

    The automatic Wireless Configuration can also be started and stopped from a command prompt. To start the automatic Wireless Configuration, run the following command:

    net start wzcsvc

    To stop the automatic Wireless Configuration, run the following command:

    net stop wzcsvc

  • How many Dreamweaver CS6 personal configuration files should create?

    How many Dreamweaver CS6 personal configuration files should create?

    One. However, re-install it, it can rename one he is and create a new. Why do you ask?

  • Cannot deploy when you use the FPGA configuration file

    Hi all

    I'm new to NI Veristand. We use a controller NIPXI 8108 with a map of FPGA OR 7841R. Is the used chassis OR PXI 1042 q. VeriStand does not deploy, when we try to add the target FPGA. For adding, we used the default for NOR 7841R provided with veristand FPGA configuration file. The error is attached! Without adding the FPGA target, we are able to deploy.

    We programmed with LabVIEW FPGA card and it works.

    Please help us!

    Thank you

    SID

    Hi Sid

    This is because the FPGA card is not connected through the chassis

    Right click on the (unidentified) PXI system and identify as PXI 1042 q.

    Right-click on the PXI-1042 q system and identify the PXI-8108 controller.

    Then it will automatically fill the devices under the controller

    Now try to deploy again. It will work

    -SID

  • DG broker configuration file not created at the backup site

    Hello

    I try to configure dataguard for db (10.2.0.1) primary, standby is created as stby

    I configured a third node to the observer, I did the TNS entires and verified connectivity

    When I expressed

    ALTER system set dg_broker_start = True scope = both;

    on both nodes, the configuration files have been created at the primary site

    SQL > show parameter DG_BROKER_CONFIG

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    dg_broker_config_file1 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR1PRIMARY. A3
    dg_broker_config_file2 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR2PRIMARY. A3


    I checked the

    but the stby node

    SQL > show parameter DG_BROKER_CONFIG

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    dg_broker_config_file1 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR1STBY. A3
    dg_broker_config_file2 string C:\ORACLE\PRODUCT\10.2.0\DB_1\
    DATABASE\DR2STBY. A3

    There is no config file even though the parameter gives suggests that it had been created

    how I created these files

    without them I won't be able to add stby on the watcher node

    The config seems mostly OK. Suggest you add another roll forward Eve sign in primary and standby, then switch connects to the primary and see what you get errors.

  • How to create a section in labview using the screw configuration file

    I am trying to create a new section in Labview. All I see is the possibilties for reading of the sections and keys, write key, remove sections. Is it possible to write a new article in Labview.

    Thank you

    Brandon

    When you write to a key, you will need to provide a section.  If the section is not there, then it will be created.  Basically, you can have a section without any keys.

  • Installation of apps using node saved configuration file

    I install the applications node by using the saved since installing the DB configuration.


    Peut someone tell me what need passwords to enter when you select the saved configuration?


    WebLogic Server password?

    User OS apps password?

    User Apps DB password?


    I guess they are by default because I didn't go for these values during the installation of DB, but do not know what the default values should be.

    In addition, the location of the config on the applications node file matter?

    WebLogic Server password?

    You type the password which is "welcome1' by default.

    User OS apps password?

    This is the password of your user account OS with the files.

    User Apps DB password?

    These are the default 'apps'.

    In addition, the location of the config on the applications node file matter?

    N °

    Thank you

    Hussein

  • How can I use a. CSV file to create or update a file of muse as in Data Merge in Indesign

    Or, I can generate the content in an .indd file and open it in muse?

    Unfortunately, which is not supported by Muse.

  • I lost create new folder capability, windows in Windows 7 Explorer now only allows to create "new briefcases" folder instead. How to return to the good old file folder create capabilities?

    I lost create new folder capability, windows Explorer.  Windows 7 now only allows to create "new briefcases" folder instead.  I'm not sure any upgrade of MS that caused this change. I would like the pros and cons of the 'Briefcase' records and also

    How to restore or use for good old file folder create capabilities?

    See if this thread will help.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/unable-to-create-a-new-folder-in-Windows-7/3c5951c8-e3b0-4E5B-99A5-744f842fe558

  • I want to see the VM configuration files

    Hello

    I want to see the VM configuration files. Can you explain it please with screenshots.

    Kind regards

    DJ

    Hello

    The links provided of Andrew are good and explains a lot of things and hope that the below a will also help more...

    If you want to display your virtual machine using GUI Configuration files, and then follow the steps below

    1. connect to your customer VI or Vcenter and identify the virtual machine that you want to display the Configuration of the 'Search' tab in the right-hand

    2. When you have found the right VM, go to the settings and find on what data store, it is present and go to these data, store and right click on that and select Browse the data store

    3. Select the folder with the name corresponding to your virtual machine name, and you will be able to find all the files that you see in the attached picture.

    If you want to display your virtual machine by using the CLI Configuration files, and then follow the steps below

    1. connect to ESX using the Console used in your environment (for example: Putty) with your root and PW id (or your existing access)

    2. Once you log in, go to "cd/vmfs/volumes" (commonly used way... can also vary)

    3. as you know from the data store, type 'cd datastorename' and you have the list of virtual machines that you had in the GUI, and then select the virtual machine using the same "vmname cd.

    4. Once you're in the virtual machine, use the ls command and you can view all the files in it

    5. If you need more information on ls you can use the link below

    http://www.computerhope.com/UNIX/ULS.htm

    Hope 2 modes above helps you to better...

    Chavigny$ $$

    "Life is boring without challenges & risks taken in daily life.

  • The configuration files are used to create this cache server?

    I start a cache server by running the $COHERENCE_HOME/bin/cache-server.sh file. But I don't how it is configured.
    The configuration files are used to create this cache server? How do I know?
    I check the contents of the cache-.sh file.
    In my view, the config.xml file - cache-coherence, consistency-pof - config.xml file and leader tangosol-coherence are used, no?

    After the start of a cache server, view the output carefully and you will find the configuration files are used. For example, the configuration files are displayed in bold background in the following text:

    F:\coherence\coherence\bin>cache-server.cmd
    java version "1.6.0_16"
    Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
    
    2009-11-30 22:46:06.468/1.547 Oracle Coherence 3.5/459  (thread=main, member=n/a): Loaded oper
    ational configuration from resource "jar:file:/F:/coherence/coherence/lib/coherence.jar!/ *tangosol-co*
    *herence.xml"*
    2009-11-30 22:46:06.484/1.563 Oracle Coherence 3.5/459  (thread=main, member=n/a): Loaded oper
    ational overrides from resource "jar:file:/F:/coherence/coherence/lib/coherence.jar!/ *tangosol-cohere*
    *nce-override-dev.xml"*
    2009-11-30 22:46:06.500/1.579 Oracle Coherence 3.5/459  (thread=main, member=n/a): Optional conf
    iguration override "/tangosol-coherence-override.xml" is not specified
    2009-11-30 22:46:06.500/1.579 Oracle Coherence 3.5/459  (thread=main, member=n/a): Optional conf
    iguration override "/custom-mbeans.xml" is not specified
    
    Oracle Coherence Version 3.5/459
     Grid Edition: Development mode
    Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    
    2009-11-30 22:46:07.468/2.547 Oracle Coherence GE 3.5/459  (thread=main, member=n/a): Loaded c
    ache configuration from resource "jar:file:/F:/coherence/coherence/lib/coherence.jar!/ *coherence-cach*
    *e-config.xml"*
    2009-11-30 22:46:08.515/3.594 Oracle Coherence GE 3.5/459  (thread=Cluster, member=n/a): Service
     Cluster joined the cluster with senior service member n/a
    2009-11-30 22:46:11.765/6.844 Oracle Coherence GE 3.5/459  (thread=Cluster, member=n/a): Creat
    ed a new cluster "cluster:0xD7DB" with Member(Id=1, Timestamp=2009-11-30 22:46:08.109, Address=192.1
    68.0.8:8088, MachineId=26632, Location=site:localdomain,machine:host1,process:1060, Role=CoherenceSe
    rver, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) UID=0xC0A800080000012548585
    C6D68081F98
    2009-11-30 22:46:11.796/6.875 Oracle Coherence GE 3.5/459  (thread=Invocation:Management, member
    =1): Service Management joined the cluster with senior service member 1
    2009-11-30 22:46:12.515/7.594 Oracle Coherence GE 3.5/459  (thread=DistributedCache, member=1):
    Service DistributedCache joined the cluster with senior service member 1
    2009-11-30 22:46:12.593/7.672 Oracle Coherence GE 3.5/459  (thread=ReplicatedCache, member=1): S
    ervice ReplicatedCache joined the cluster with senior service member 1
    2009-11-30 22:46:12.609/7.688 Oracle Coherence GE 3.5/459  (thread=OptimisticCache, member=1): S
    ervice OptimisticCache joined the cluster with senior service member 1
    2009-11-30 22:46:12.625/7.704 Oracle Coherence GE 3.5/459  (thread=Invocation:InvocationService,
     member=1): Service InvocationService joined the cluster with senior service member 1
    2009-11-30 22:46:12.625/7.704 Oracle Coherence GE 3.5/459  (thread=main, member=1): Started De
    faultCacheServer...
    
    SafeCluster: Name=cluster:0xD7DB
    
    Group{Address=224.3.5.0, Port=35459, TTL=4}
    
    MasterMemberSet
      (
      ThisMember=Member(Id=1, Timestamp=2009-11-30 22:46:08.109, Address=192.168.0.8:8088, MachineId=266
    32, Location=site:localdomain,machine:host1,process:1060, Role=CoherenceServer)
      OldestMember=Member(Id=1, Timestamp=2009-11-30 22:46:08.109, Address=192.168.0.8:8088, MachineId=2
    6632, Location=site:localdomain,machine:host1,process:1060, Role=CoherenceServer)
      ActualMemberSet=MemberSet(Size=1, BitSetCount=2
        Member(Id=1, Timestamp=2009-11-30 22:46:08.109, Address=192.168.0.8:8088, MachineId=26632, Locat
    ion=site:localdomain,machine:host1,process:1060, Role=CoherenceServer)
        )
      RecycleMillis=120000
      RecycleSet=MemberSet(Size=0, BitSetCount=0
        )
      )
    
    Services
      (
      TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.0.8:8088}, Connections=[]}
      ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMembe
    rId=1}
      InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
      DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCo
    unt=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
      ReplicatedCache{Name=ReplicatedCache, State=(SERVICE_STARTED), Id=3, Version=3.0, OldestMemberId=1
    }
      Optimistic{Name=OptimisticCache, State=(SERVICE_STARTED), Id=4, Version=3.0, OldestMemberId=1}
      InvocationService{Name=InvocationService, State=(SERVICE_STARTED), Id=5, Version=3.1, OldestMember
    Id=1}
      )
    
  • How to use an install.xpi configuration file to configure email data

    Manual installation of my e-mail account failed because Thunderbird search my domain name and is not in its database. If my webhost gave me a file of automatic configuration for Thunderbird for my e-mail, called install.xpi - account but how to use this file? I can't double-click them in Windows to do anything. Thunderbird program, he wants to create a new account, but I can't do anything else in it as importing files.

    How to use the install.xpi file so it creates my e-mail account with the appropriate configuration variables? Thanks for your help.

    Launch Thunderbird, close the wizard, goto the Add-ons, select Tools menu (alt + T)

    There is a small button to the left of the search window. Click this button and select install module file and navigate to your xpi file, select it and you leave.

  • Is there an easy way to compare two files and automatically combine the common data on both files by creating a new file?

    If I have two different data sources, the two of them have some of the same information, how compare automatically, and get current data on both files by creating a new file with this information?

    Hello

    What operating system do you use?

    I suggest you to follow the steps from the link and check.

    http://msdn.Microsoft.com/en-us/library/bb385990.aspx

  • How to include a .lvlib in a generation that was created using a custom .dll file

    I am trying to build an executable in LV2010 which uses a .lvlib which was created using a Keyence .dll file. I added the .lvlib to the source as "Still included" files and I also added all the files "Always included." library .vi I always get the error message saying "Lack the external function" during the execution of the program. The executable seems to open properly on the development computer, but not on a secondary computer. Any ideas?

    Hi Harris,

    I would like to clarify a few points.

    -With all these configurations that you described above, the executable file worked properly on the development computer?

    -L'application works correctly on the development computer outside a build specification, just running in LabVIEW?

    -Have you tried to deploy the executable on multiple computers, and you see the same error on every computer other than the development computer?

    -Is there a software that must be installed so that the TMIF.dll to work? This software is installed on the deployment computer?

    It seems that the DLL is included with success, but for some reason, the function appears as missing. Also, I noticed that the error message has a: C at the end of the message, which makes me wonder - is this a C DLL or a Windows DLL (.NET)?

  • Broker configuration files not be created at the level of the BONE

    DB version: 12.1.0.2 on Oracle Linux 6.7

    Type: Physical standby

    I'm trying to set up data guard broker for my own DB. Primary and standby phyical are autonomous DBs.

    As the first step, I tried to create a broker configuration files in the following locations. But it is not created is at the level of the BONE.

    No idea why?

    SQL > ALTER SYSTEM SET DG_BROKER_CONFIG_FILE1 = ' / oradata/DG_BROKER/dr1APGCMS.dat' scope = both;

    Modified system.

    SQL > ALTER SYSTEM SET DG_BROKER_CONFIG_FILE2 = ' / datastore/DG_BROKER/dr2APGCMS.dat' scope = both;

    Modified system.

    -The configuration files will be created at the level of the BONE

    $ ls-l /oradata/DG_BROKER/dr1APGCMS.dat

    method: cannot access the /oradata/DG_BROKER/dr1APGCMS.dat: no such file or directory

    $

    $

    $ ls-l /datastore/DG_BROKER/dr2APGCMS.dat

    method: cannot access the /datastore/DG_BROKER/dr2APGCMS.dat: no such file or directory

    So, I thought that the configuration files will be created only when Michael is started. So, I started using

    SQL > alter system set dg_broker_start = TRUE scope = both;

    Modified system.

    But the configuration files are not yet created. These directories are empty. I can see that the process Michael started in elementary school

    $ ps - ef | grep Michael

    Oracle 7577 1 0 22:43?        00:00:00 ora_dmon_APGCMS

    -extract from the primary alerts log

    ALTER SYSTEM SET dg_broker_config_file1='/oradata/DG_BROKER/dr1APGCMS.dat' SCOPE = BOTH;

    Sat Dec 26 22:41:49 2015

    ALTER SYSTEM SET dg_broker_config_file2='/datastore/DG_BROKER/dr2APGCMS.dat' SCOPE = BOTH;

    Sat Dec 26 22:43:39 2015

    From MICHAEL background process

    Sat Dec 26 22:43:39 2015

    ALTER SYSTEM SET dg_broker_start = TRUE SCOPE = BOTH;

    Sat Dec 26 22:43:39 2015

    MICHAEL started with pid = 40, OS id = 7577

    Sat Dec 26 22:43:42 2015

    From Data Guard Broker (MICHAEL)

    From INSV background process

    Sat Dec 26 22:43:47 2015

    INSV started with pid = 43, OS id = 7579

    Sorry... I just removed the post for security reasons. (Host names has been a matter of concern). But I have the day before with my comment. The configuration files will be created once you create the dgmgrl configuration.

    -Jonathan Rolland

Maybe you are looking for

  • Any way to go back to the old mail conversation view?

    Just upgraded my phone to iOS 10, and new mail conversation view is not usable. This might work for personal emails, but for work when I have maybe 10 to 20 emails in a single conversation, it's unmanageable to have to scroll all the way. 1 on 20 may

  • PowerShot A3100 - Shadow & dust on the screen back

    There is a great light gray shadow form in a corner of the rear screen (is that what it's called?). It also forms appear in the digital image. Also, there is a lot of dust inside the screen. Cleaning the lens does help. Is that what I can do to elimi

  • Delete the automatic backup files in Windows Vista Home Edition!

    Hello I bought a new HP Pavilion pc six months back... I have the disk hard of 320 GB (hitachi)... what I have copy on my hard drive, everything becomes backup without my knowledge... my space on the hard disk is dripping... for example: I have a lot

  • How to restore function HDMI on Windows 7

    Stupidly, I disabled playback HDMI device in the audio control panel, because it does not switch back to the speakers of the laptop when I unplugged the HDMI cable and I wanted to listen to something on the laptop.  I thought wrongly that it will rea

  • ISE GANYMEDE device Fitlers

    I'm migration of ACS to LSE for GANYMEDE.  GBA, we used device filters to define a list of network devices and allows you to create rules to match or does not within access policies.  I may not know how to do the same function in ISE.