How To designate specific form fields for Google Chrome? // + macro not working

Hi and good day,

I want to select a field and paste the content of a clipboard into it, then move on this same page further to the right onto a (hyperlinked) area (= like a big button) and click it.

(It's the bitly page for url shortening)

So Select Field,

KM wiki says:

Select Field, …Select the field whose contents you want to select and it will be entered in the action’s Select Field text area.…

Did that, but how does it look in detail, I had:

document.forms["authedShortenForm"]["shorten-url"]%|%

2ndly, the whole macro doesn't start up and do nothing, although when I try step be step the first actions work (until selecting the text field.)
/
with best regards,
Omar K N
Stockholm, Sweden
( I cannot upload the original KW file, so here's a screenshot)

Google is my friend: http://blog.scottlowe.org/2010/10/22/shortening-urls-via-bitly-the-apple-way/

1 Like

Thank you Carey!

I tried it (and their earlier version) but I get an error:

Error: Run AppleScript failed, & Can’t make {{"http://ddddd.com/cccc.html

Also the script is from 2010.

So I’m still an my path… …

/
with best regards,
Omar K N
Stockholm, Sweden

http://dev.bitly.com/code_libraries.html

1 Like

Hi and good day (night?) Carey,

1st link is 1 meter or so above my head, bitly need 0Auth and an Access Token, they describe it here: http://dev.bitly.com/links.html

2nd link looks promising (shell script), I’ll try it ASAP.

/
with best regards,
Omar K N
Stockholm, Sweden

But I still want to know why my macro at #1 doesn’t work and how the Select Chrome Field is properly set. :-:sunny:

/
with best regards,
Omar K N
Stockholm, Sweden

Hey Omar,

You’ve somehow added some goop at the end of your form specification.

This is what it should look like:

document.forms["authedShortenForm"]["shorten-url"]

-Chris

Thanks Chris, but something is still very wrong in my macro.

Please refer to: Why does my Google Chrome macro only work when I manually activate it? – - - post 6

/
with best regards,
Omar K N
Stockholm, Sweden