Thursday, July 19, 2018

#1 2005-11-13 09:01:22 am

cirno
Member
Registered: 2005-05-30
Posts: 448

Safari-forms and OttoMate

I have html-form with this code:

<input type="text" class="tf" name="namehere" value="" size="32" />

Current settings are:

Get Current Webpage from Safari

Ask for Text

"Set value for form element with name namehere"
"in form with name" and "to" are empty.


It works only if i type text to "to"-field. How i can automatically input text to "to"-field from previous action such as "Ask for Text" and others?

How this could be done using AppleScript?

Similar problem:

I have this code:

<select name="thumb" class="dw">
<option value="old_picture_1.jpg" >1</option>
<option value="old_picture_2.jpg" >2</option>
...

OttoMate:

"Set value for form element with name thumb"
"in form with name 1"
"to" is empty. How i can get this field filled automatically from previous action. Now i get javascript error in Safari.

Last edited by cirno (2005-11-14 07:26:48 am)

Offline

 

#2 2005-11-15 05:49:29 am

Kevin Wolfe
Member
From:: Cincinnati OH USA
Registered: 2005-10-27
Posts: 67
Website

Re: Safari-forms and OttoMate

Cirno,

This will probably require UI scripting. I have an automator app that will enable it: http://homepage.mac.com/jkevinwolfe/ott … page5.html

This gets a little tricky and will require you to use it to custom navigate your form. Apple's basic tutorial on UI Scripting is here: http://www.apple.com/applescript/uiscripting/

This is not hard to learn and very useful.

Kevin

Offline

 

#3 2005-11-15 09:01:14 am

cirno
Member
Registered: 2005-05-30
Posts: 448

Re: Safari-forms and OttoMate

Kevin Wolfe wrote:

Cirno,

This will probably require UI scripting. I have an automator app that will enable it: http://homepage.mac.com/jkevinwolfe/ott … page5.html

This gets a little tricky and will require you to use it to custom navigate your form. Apple's basic tutorial on UI Scripting is here: http://www.apple.com/applescript/uiscripting/

This is not hard to learn and very useful.

Kevin


Thanks for help. UI scripting looks interesting, but since i'm not programmer i didnt understand that stuff.

I tried to do this using OttoMate, which should do this. UI scripting examples in apple was about controlling applications menus, but i dont understand how i control dropdown menu in webpage.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)