|
|
 |  |
Re: opening secondary data window with ApplescriptFrom: Men & Mice Support Date: Friday, May 12, 2000
Time: 8:15:20 pmAt 12:28 AM +0200 5/13/00, Johan Solve wrote:
>This script will open the secondary domains window and add a secondary =
record.
>
>
>tell application "QuickDNS Pro Admin"
> activate -- optional, but it must be running in the next step
> tell application "Finder" to set SDfile to (folder of =AC
> application file of application process =AC
> "QuickDNS Pro Admin" as string) & "QuickDNS
>Data:Secondary Domains"
> try
> get name of document "secondary data"
> on error
> open file SDfile
> end try
>
> make new SD record at end of document =AC
> "Secondary Domains" with properties =AC
> {name:domain, filename:domain, first IP number:prime}
>end tell
Also, to save and close the file, after the preceding script:
close document "Secondary Data" saving yes in alias SDfile
Put that just before the "end tell".
____________________________________________________________________
Chris Buxton cbuxton@menandmice.com
Men & Mice http://www.menandmice.com
Makers of: QuickDNS Pro
|

Return to Digital Point Solutions' Home Page |