Modified Gmail Macros v. 2.0

By sewpafly Last update Oct 22, 2008 — Installed 11,532 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 81 posts, 26 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
EJ Chambers User

Appears moving the labels to the right hand side also interferes with the script. If I move the labels container back to the left column, it works fine. Any chance having the script updated to accommodate this new google labs feature?

 
bantab User

Not behaving well with GTDInbox. When adding a label, label pops up, is selected, dropdown menu is activated and drops down, but label is not applied.

Edit:
Ok, I figured it out, it's GTDinbox fault. They modify the label names in their new version so that they contain email counts. I guess your selector picks up the name from the sidebar box and then modifies it in the dropdown box, so the labels are not equal. Revert to old version solves it. I thought I had tried that, but apparently install order matters... reinstall old GTDinbox, restart FF, reinstall present Macros, restart gmail (ctrl+F5).

 
Erke User

Yes I can open the main help screen and navigate through the menus but the keys I assign do not seem to work. =(

 
sewpafly Script's Author

@Erke - interesting. you can pull up the help screen after you deleted the keys, but the other functions don't appear to work? If you can't pull up the help screen, try disabling better gmail and any greasemonkey scripts you are using and then just enable this one. Clear your cache and then load gmail. try using 'j' and 'k' to see if you can move the message selector around and if that's working then try typing 'h' to pull up the help screen.

If you can pull up the help screen but the other commands don't appear to work, try typing 'Z' and then open the firefox javascript console (shift-ctrl-j) and clear that, then go back to the gmail tab and try running a couple commands. What's the output to the javascript console?

 
Erke User

Thank you so much sewpafly! That did the trick and I re-assigned the keys...

Although, the macros doesn't work, no matter what I assign =(

I double checked for collisions and cleared my cache a couple of times but no luck...

Any ideas?

Anyways, thank you so much again for your kind reply.

Sincerely,
Erke

 
sewpafly Script's Author

open about:config and delete the keys for "greasemonkey.scriptvals.http://groups-beta.google.com/group/gmail-power... Gmail Macros v. 2.0.macros"
and "greasemonkey.scriptvals.http://groups-beta.google.com/group/gmail-power... Gmail Macros v. 2.0.selectors"

 
sewpafly Script's Author

Did you join the group first? Or you can use the group and "reply to author" which should just send an email to me if you want.

 
Santiago Perez User

I replied to that discussion but it seems to be moderated and my messages haven't gone through yet

 
sewpafly Script's Author

Santiago, I opened a discussion at Gmail Power Users Group. We can talk there or email.

 
Santiago Perez User

Oh, by the way, in Safari I can refresh GMail without clearing the cache or anything and the script continues to work, so I'm guessing that the problem that shows up in FF with greasemonkey is related to the GM_* functions. Just in case you're interested in tracking down that problem (which I find kind of annoying when in linux and using FF)

 
Santiago Perez User

Hi, I'm using Safari and GreaseKit and I was able to make your script work (kind of). All I had to do was replace the addEventListener part at the beggining for this:

window.addEventListener('load', function() {
  var gmailapi = typeof unsafeWindow != "undefined" && unsafeWindow.gmonkey || (frames.js ? frames.js.gmonkey : null)
  gmailapi.load('1.0', init)
}, true);

Also I had to add the following function:

function Iterator(o) {
    var r = [];
    for (x in o) {
        r.push(x);
    }
    return r;
}

There are several issues while using it in safari such as:
- you're unable to save mappings because GM_* functions don't appear to exist in GreaseKit
- transparency doesn't work
- probably many more issues since I just started trying it

I don't really care about transparency and mappings I can fix it by modifying the defaults in the script.

It would be great if you could adapt future versions of the scripts to at least work in this fashion (if you don't want to define the Iterator function for GreaseMonkey you probably could put it inside an "if" checking (typeof unsafeWindow == "undefined").

 
sewpafly Script's Author

Try closing gmail and deleting your cache (ctrl-shift-delete) and then reloading gmail. Alternately you could try using the latest Better Gmail 2 extension. (Are you using the new gmail or the old version?)

 
Justin Long User

I am using Firefox 3 on Windows XP with Gmail. The script does not work - and neither does Mihai's. However, Mihai's works with FF2 on my laptop (also using winXP). Does anyone have a solution? I really desperately want to use this script as it made my life so much easier, and I am even thinking about downgrading this computer to FF2 to make it work again.

 
bantab User

Posted problem update on power-users group.

 
bantab User

Seems to be working again. I'll update if there are any further problems.

 
bantab User

Worked yesterday... nothing today. r doesn't mark as read, l doesn't label. Not sure if this is google, or if it's just that my cache wasn't clear yesterday. I use GTDInbox and rememberthemilk as well, so I have a feeling it has something to do with it. Is there anything I can give you that will help assess the problem? Thanks for the great app!

 
sewpafly Script's Author

I have a fix and will upload soon.

 
sewpafly Script's Author

I put in some fixes for remember the milk awhile ago, but the fix depends on remember the milk making their input boxes have an id that starts with 'rtm'. All their objects conform to this convention EXCEPT the input boxes on the task detail page where you need to put in or edit information... You could talk to rtm about fixing this, as that was the fix that they had originally suggested or I could add a check that looked for an input... and then just ignored keystrokes... I'll look into it.

 
cwpollock User

I really want to use this script, but am having trouble getting it to work in conjunction with the "Remember the Milk" plugin. Any thoughts?

 
sewpafly Script's Author

Good call. I had forgotten that this was something I wanted to add anyway. I have a fix and I'll post the update later today.

 
Matt McNeill User

With reference to the 'label' macro - which has become absolutely essential for GMail (since I uploaded 2Gb of historical mail from outlook)...

I have a lot of folders with the same leaf-node name, e.g:

/Projects/Project1/Admin
/Projects/Project2/Admin
/Projects/Project3/Admin
/Projects/Project4/Admin
/Projects/Project5/Admin

so when I press 'l' and type 'Admin' it says there are 5 of them, but it's impossible to know which of the Projects it belongs to... Is it possible to show the full path in some way (when pressing the up and down buttons to select the alternatives) so I can tell which of the projects it belongs to?

It would be a really useful change...

Cheers, M

 
viz User

Scripts are working well today. Greasemonkey scripts have worked every time I opened gmail today (as compared to before). Something changed in gmail??? I haven't made any changes...

 
viz User

Hi sewpafly. This is an amazing script. Makes the whole gmail/email experience much better.

Lately the working of the script has been flaky. I don't think this is isolated to FF3 (it was even happening with FF2). I don't think this issues is even related to the script. Maybe greasemonkey and gmail. I noticed that when it happens, all my greasemonkey scripts for gmail stop working.

Any ideas on why this might be happening for me. I tried clearing the cache and reloading gmail. It only works once in a while.

 
johnny16 User

I've cleared my FF cache and Macros started work again.
Thanks sewpafly for the help and thank you very much for the amazing must have script.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel