Re: Applescript LetterRip Server
Re: Applescript LetterRip Server
- Subject: Re: Applescript LetterRip Server
- From: Michelle Steiner <email@hidden>
- Date: Mon, 19 May 2003 09:54:57 -0700
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.
--
Peter pull at St. Taffy's tonight! (Or is it the other way around?)
_______________________________________________
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.