Matsaki
Registered
I am implementing a AppleScript in my FileMaker Pro 9 to automate som tasks from FM to the web. I have the code half working:
1. I don't know where or what field name I should put the value in, in the form on the webb page? Here is the HTML code for that field where the value should go in:
2. To then hit "Return" don't work for some reason so I have to manually click. Is there a way around that? Here is the "Search" button HTML:
And my last problem is that every time I hit the button in FM a new window is opening, and then I would have hundreds of new windows. I need the same window to be used all the time.
I truly hope I can get some help here or directions where to ask. I did try the Apple discussion, and this is as far as we got
set cell_Value to ((cellValue of cell 3) as string)
tell application "Safari"
activate
make new document
set URL of document 1 to "https://www10.pbkoutsourcing.com/clientweb_collect/searchaccount.php"
end tell
tell app "System Events" to tell process "Safari" to keystroke tab & cell_Value & return
1. I don't know where or what field name I should put the value in, in the form on the webb page? Here is the HTML code for that field where the value should go in:
<td>Kundnummer: </td>
<td><input class="text_input" type="text" name="type_2" style="width:200px" value=>input></td></tr><tr>
<td height=20>Början på namn: </td>
<td><input class="text_input" type="text" name="type_3" style="width:200px" value=>input></td><td width=40> </td>
2. To then hit "Return" don't work for some reason so I have to manually click. Is there a way around that? Here is the "Search" button HTML:
<td height=20 colspan=5 align="right" valign="bottom"><input type="button" style="width:>60" value="Sök" onclick="javascript:set_action('search','Inga sökvärden har >angetts.');">
<input type=hidden name = "action"></input>
And my last problem is that every time I hit the button in FM a new window is opening, and then I would have hundreds of new windows. I need the same window to be used all the time.
I truly hope I can get some help here or directions where to ask. I did try the Apple discussion, and this is as far as we got