Rev | Line | |
---|
[1] | 1 | -- geturl Get and store a URL for Matlab |
---|
| 2 | -- geturl theURL theFilename |
---|
| 3 | |
---|
| 4 | -- Version of long ago. |
---|
| 5 | -- Updated 12-Oct-1999 22:30:05. |
---|
| 6 | |
---|
| 7 | -- The following does not work: |
---|
| 8 | |
---|
| 9 | -- set theApplication to "alba:WWW:Internet:Netscape:Netscape" |
---|
| 10 | -- tell application theApplication |
---|
| 11 | |
---|
| 12 | -- So, use the full path to Netscape explicitly. |
---|
| 13 | |
---|
| 14 | tell application "alba:WWW:Internet:Netscape:Netscape" |
---|
| 15 | if theFilename is "" then |
---|
| 16 | activate |
---|
| 17 | GetURL theURL |
---|
| 18 | -- OpenURL theURL flags 1 |
---|
| 19 | else |
---|
| 20 | GetURL theURL to file theFilename |
---|
| 21 | -- OpenURL theURL to file theFilename |
---|
| 22 | -- OpenURL theURL to file theFilename flags 1 |
---|
| 23 | close window 1 |
---|
| 24 | end if |
---|
| 25 | end tell |
---|
Note: See
TracBrowser
for help on using the repository browser.