• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript LetterRip Server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Applescript LetterRip Server
      • From: Michelle Steiner <email@hidden>
    • Re: Applescript LetterRip Server
      • From: Jeff Grossman <email@hidden>
References: 
 >Re: Applescript LetterRip Server (From: Jeff Grossman <email@hidden>)

  • Prev by Date: Re: Applescript LetterRip Server
  • Next by Date: Re: Applescript LetterRip Server
  • Previous by thread: Re: Applescript LetterRip Server
  • Next by thread: Re: Applescript LetterRip Server
  • Index(es):
    • Date
    • Thread