Page 1 of 1

Creating Bookmark in FF

Posted: Sat Feb 08, 2014 12:47 pm
by Toonces
I'm new to iMacros, but so far I've not been able to find the answer. I apologize if it's blatantly obvious and I'm just missing things.

I'd like the macro to be able to bookmark the current page to a specific bookmark folder.

How can I do this?

Re: Creating Bookmark in FF

Posted: Sat Feb 08, 2014 4:23 pm
by chivracq
I would think it is not possible, unless iMacros will be able able to produce a "Ctrl^d" that the Browser will intercept and understand, but then I'm very doubtful if you'll manage to specify a specific Folder.

With Firefox, you can use the EVENT Mode which is able to trigger Keystrokes.

Maybe something like this will work:
Code: Select all
EVENT TYPE=KEYPRESS SELECTOR=* Char="d" MODIFIERS="ctrl"


Have a look at this Thread for more info:
CTRL-A not getting recorded

Re: Creating Bookmark in FF

Posted: Sat Feb 08, 2014 6:46 pm
by chivracq
OK, after a bit of Testing,
Code: Select all
EVENT TYPE=KEYPRESS SELECTOR=* Char="d" MODIFIERS="ctrl"

does trigger the 'Bookmark this Page' Dialog, but then I can't find a way to interact with it, in Record nor in Replay Mode...

SELECTOR then needs a Name to respond to Tab(9)/Enter(13)/Alt^t/Change the name, etc...
And the Record Mode doesn't record anything...

ONDIALOG doesn't do anything.

!EXTRACTDIALOG is not supported in Firefox...

X/Y doesn't work either...

Re: Creating Bookmark in FF

Posted: Sun Feb 09, 2014 9:24 am
by Toonces
Thanks, that got me further but as chivracq, the process dies there.

For the time being, I've managed to work around the issue with an add-on for executing external applications and AutoIt. Not an optimal solution, though it should be sufficient for my needs. I'll continue to see if I can refine things, but I can at least go about doing what I was looking to do.

The assistance is appreciated.

Re: Creating Bookmark in FF

Posted: Sun Feb 09, 2014 10:13 am
by chivracq
Which Add-on...?
(And decompiling that Add-on could give me some ideas...!)

I only looked at pure iMacros ways to do it, maybe there is a way to do it from JavaScript, that would be a path to explore...

Bookmarks in Firefox are saved in some sqlite Object, I think, and I would be surprised if there is not a way to manipulate those Objects from JavaScript, eventually using some external Libraries...

Other path to explore, I remember Tom from TechSupport posting a few months ago a Msg about some way to communicate with the Firefox DOM, maybe that could bring stg interesting...

Re: Creating Bookmark in FF

Posted: Tue Feb 11, 2014 12:08 pm
by Toonces
It's called simply "External Application Buttons". It runs a compiled AutoIt application, which executes a key combination using Quicklinks to bookmark. Unfortunately Firefox intercepts he key combinations before it gets to Quicklinks.

https://addons.mozilla.org/en-US/firefo ... on-button/
https://addons.mozilla.org/en-US/firefo ... k/?src=api

Re: Creating Bookmark in FF

Posted: Tue Feb 11, 2014 6:11 pm
by chivracq
Toonces wrote:It's called simply "External Application Buttons". It runs a compiled AutoIt application, which executes a key combination using Quicklinks to bookmark. Unfortunately Firefox intercepts he key combinations before it gets to Quicklinks.

https://addons.mozilla.org/en-US/firefo ... on-button/
https://addons.mozilla.org/en-US/firefo ... k/?src=api


OK, thanks a lot, that already gives me some ideas, but I'll need to do some Testing/Exploring/Experimenting, I've started to experiment with AutoIt very recently only some 2 weeks ago (twice playing with it for a few hours...). And I'm usually quite creative with my Solutions, so we'll see what comes out...! :oops: