Re: Applescript LetterRip Server
Re: Applescript LetterRip Server
- Subject: Re: Applescript LetterRip Server
- From: Jeff Grossman <email@hidden>
- Date: Mon, 19 May 2003 10:04:10 -0700
on 5/19/03 9:54 AM, Michelle Steiner at email@hidden wrote:
>
>
On Monday, May 19, 2003, at 08:19 AM, Jeff Grossman wrote:
>
>
> I need to create an applescript which will export the subscriber list
>
> from a
>
> LetterRip Mailing List. The developer gave me the following code to
>
> get the
>
> addresses, but how do I save it to a file? I am not very good with
>
> applescript.
>
>
>
> tell application "LetterRip_Server"
>
> set a_list to subscriber list "test list"
>
> 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
>
> end repeat
>
> end tell
>
>
Before the above script, enter this line:
>
>
set the AddressFile to open for access "Macintosh HD:List Addresses"
>
with write permission
>
-- change "Macintosh HD" to the name of your boot volume or use a full
>
path.
>
-- The name of the volume is case sensitive.
>
>
Between "set theAddress to email address of theSub" and "end repeat"
>
enter this line:
>
>
my WriteFile (theName, theAddress)
>
>
After "end tell" enter these lines:
>
>
close access AddressFile
>
>
to WriteFile (aName, anAddress)
>
write aName & tab & anAddress & return to theAddressFile
>
>
The above will create the file at the root of the disk, unless you
>
specify a full path. There are other ways to specify paths to specific
>
folders (e.g., the documents folder), but this is probably the easiest
>
for a beginner.
That looks like exactly what I need. I will give it a try right now.
Thanks for the help.
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.