Re: scripting explorer
Re: scripting explorer
- Subject: Re: scripting explorer
- From: JJ <email@hidden>
- Date: Wed, 05 Jun 2002 10:52:12 +0200
>
display dialog "Function: " default answer "Function Name"
>
set myfunction to text returned of result
>
tell application "Internet Explorer"
>
OpenURL "http://www.php.net/search.php" FormData "pattern=" &
>
myfunction
>
end tell
>
>
I based it off of code posted by nellA hciR (thanks hcir). But it
>
doesn't seem to work -- for some reason the script is appending
>
"TTPProxy" to the end of my POSTed data (so that if the function I
>
entered is "empty" it will be sent as "emptyTTPProxy"). I tried
>
diddling with the MIME type, as described in the dictionary, but it
>
didn't seem to have any effect.
>
>
Does anyone know enough about scripting IE to tell me if it's possible
>
to simply send a POST variable along with my OpenURL command?
Hi.
Theorically, you can do it, but I've never got it to work properly.
Try the same code with "URL Access Scripting" (a little app within your
scripting additions folder). It should work better than IE's "FormData"...
tell app "URL Access Scripting"
download "
http://www.php.net/search.php" to (choose file name) form data
"parameter1=value1¶meter2=value2"
end tell
You need "choose file name" to store the server's response, but the rest of
the code is look like IE's structure...
Good luck!
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.