• 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 12:34:02 -0700

on 5/19/03 12:01 PM, Paul Berkowitz at email@hidden wrote:

> On 5/19/03 11:11 AM, "Jeff Grossman" <email@hidden> wrote:
>
>> 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.
>
> Yes. It's not a global variable, so it's not defined in the handler. You
> should instead add it as another parameter like this:
>
> my WriteFile(FishAdsAddressFile, theName, theAddress)
>
>
> to WriteFile(theAddressFile, aName, anAddress)
> write aName & tab & anAddress & return to theAddressFile
> end WriteFile
>

Thanks for the help Paul. It is getting much better. Now, the script runs
for a while, creates a file, puts some data in it, but eventually comes back
with a "Stack Overflow". Any ideas?

Here is the latest code I have:

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(FishadsAddressFile, theName, theAddress)
end repeat
end tell
close access FishadsAddressFile

to WriteFile(theAddressFile, aName, anAddress)
write aName & tab & anAddress & return to theAddressFile
end WriteFile


--
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: Michelle Steiner <email@hidden>
References: 
 >Re: Applescript LetterRip Server (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Applescript LetterRip Server
  • Next by Date: FileMaker to Now Up-to-Date
  • Previous by thread: Re: Applescript LetterRip Server
  • Next by thread: Re: Applescript LetterRip Server
  • Index(es):
    • Date
    • Thread