ApplescriptGetURL ( URLtoGet ; FieldtoSet )
Rate this function: Average rating: 4.6 (5 votes) Discuss this Custom Function
Jim Main, Main Solutions
http://www.mainsolutions.org
Getting a web page via Applescript
Sample Input:
| ApplescriptGetURL ( "http://www.macintouch.com"; "ResultField" ) |
|
Sample Output:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MacInTouch Home Page</title>... |
|
Description:
You can use plugins to download a web page to a field, or you can use Applescripting on the Mac. Using the custom functions gives you a centralized place to store the Applescript without having to create a special calculation field.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
GetResultParameter( ParameterName ) |
| |
(Wed, Aug 25, 8:32am) |
| 2. |
GetListParameter ( ParameterList ; ParameterName ) |
| |
(Wed, Aug 25, 8:25am) |
| 3. |
Standard_Deviation( Field ; MaxLoopCount ; StartIndex ; StdDeviation ; ArithMeanValue ) |
| |
(Tue, Aug 24, 10:57am) |
| 4. |
Arithmetic_Mean ( Field ; MaxLoopCount ; StartIndex ; MeanValue ) |
| |
(Tue, Aug 24, 10:51am) |
| 5. |
Age ( Birth; theDate; Format ) |
| |
(Fri, Aug 20, 9:50am) |
| 6. |
Power ( x ; y ) |
| |
(Thu, Aug 19, 5:56am) |
| 7. |
portal.rowCount ( _name ) |
| |
(Sun, Aug 15, 2:41pm) |
| 8. |
PostPer_Day ( Post; startDate ; finishDate ; returnType ) |
| |
(Sat, Aug 14, 2:02pm) |
 |
|
The CF's syntax is quite wrong. I copied and pasted it into FM Pro Advanced v.10 and had to change the syntax around in order to have it working.
Another useful AppleScript using the shell command "Curl" is:
set the_source to do shell script "curl <-your url here->"
"set the clipboard to the_source"
Copy the 2 lines above into Script Editor, change the <-your url here-> to an actual URL (this page, for example), and you will see the results.
This AS actually copies the URL's HTML code into the clipboard, which can be pasted into a solution's field via the "paste" script.
Happy Applescripting
Edward, Victoria, BC, CA
August 19, 2010 11:07pm