• 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: Jeff Grossman <email@hidden>
  • Date: Mon, 19 May 2003 11:11:00 -0700

on 5/19/03 10:42 AM, Paul Berkowitz at email@hidden wrote:

> 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)

Thanks Paul. When I compiled the script in Script Editor, it removed the
spaces automatically.

I have run into one more problem. The script runs for a little bit, and
then comes back and says "variable FishAdsAddressFile is not defined". I
imagine that has to do with the last WriteFile call.

Jeff
--
Jeff Grossman (email@hidden)
Director - Information Systems, Turner's Outdoorsman
http://www.turners.com
_______________________________________________
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: Paul Berkowitz <email@hidden>
References: 
 >Re: Applescript LetterRip Server (From: Paul Berkowitz <email@hidden>)

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