Re: Applescript LetterRip Server
Re: Applescript LetterRip Server
- Subject: Re: Applescript LetterRip Server
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 19 May 2003 10:42:12 -0700
On 5/19/03 10:16 AM, "Jeff Grossman" <email@hidden> wrote:
>
The script did not want to compile. Here is what I have now:
>
>
set the FishadsAddressFile to open for access "OSX:List Addresses:Fishads
>
Addresses" with write permission
>
tell application "LetterRip_Server"
>
set a_list to subscriber list "Fishads"
>
set subs to subscribers of a_list
>
repeat with theSub in subs
>
set theName to name of theSub
>
set theAddress to email address of theSub
>
my WriteFile (theName, theAddress)
>
end repeat
>
end tell
>
close access FishadsAddressFile
>
>
to WriteFile (aName, anAddress)
>
write aName & tab & anAddress & return to FishadsAddressFile
>
>
And, I get a "Expected end of line, but found end of script". Where did I
>
mess up?
Michelle left out the last line of the script, which ends the "WriteFile"
handler. Also she put a space in the declaration of that handler, which is
wrong. The end of the script should be:
to WriteFile(aName, anAddress)
write aName & tab & anAddress & return to theAddressFile
end WriteFile
And the call to that handler also has a space where it shouldn't. It should
be
my WriteFile(theName, theAddress)
--
Paul Berkowitz
_______________________________________________
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.