Search Again:

Re: Scripting

From: Aaron Lynch
Date: Friday, May 3, 2002
Time: 5:02:41 pm

\
>>>>>>>>>>>> Chris, o' applescript god....
Thanks! works great (needs the end dot)





>> I need to make a script, that has a list of SOME of my domains, deletes all
>> the MX records and then creates new ones with the domain in the record
>> (domain.com.provider.com)
>>
>> I was going to set the domain into a property but I got stuck very early on:
>>
>> property domains : "test1.com"
>
> Note: The type of "domains" is "string".
>
>> repeat with domain in domains
>
> Note: Since "domain" iterates through a string value, its type is
> "character". Its successive values will be 't, 'e, 's, 't, etc.
>
>> tell application "QuickDNS Manager for OS X"
>> activate
>> open zone (domain as string)
>> end tell
>> end repeat
>>
>>
>> I get the error message:
>>
>> 't doesn't understand the open message'
>
> Change the first line as follows:
>
> property domains : {"test1.com"}
>
> That makes it a list of 1 item, a string. Then "domain" becomes a
> string, "test1.com". I'm pretty sure that will work - if it doesn't,
> try adding a dot to the end of the zone name.
> ____________________________________________________________________
> Chris Buxton Men & Mice
> support@menandmice.com Making DNS Easy
>
> Visit the Men & Mice booth (#2525) at NetWorld+Interop in Las Vegas, Nevada,
> May 7-9. http://www.key3media.com/interop/lv2002/index.php
>




Messages In This Thread:



Return to Digital Point Solutions' Home Page