Entourage Mailing List's storage creation trouble
Entourage Mailing List's storage creation trouble
- Subject: Entourage Mailing List's storage creation trouble
- From: Mátyás Ferenc Farkas <email@hidden>
- Date: Sun, 22 Jun 2003 16:18:05 +0200
Hi,
I like to do something with the selected message.
The Code:
-
tell application "Microsoft Entourage"
set theSelection to selection of window 1
set theEvent to item 1 of theSelection
set theSender to (sender of theEvent)'s display name
set theAddress to (sender of theEvent)'s address
if ((name of every folder in folder "Contacts") as string) contains
theSender then
display dialog "The folder of the Sender exists already!"
else
set theFolder to make new folder in folder "Contacts" with
properties {name:theSender}
log theFolder
set theList to make new mailing list with properties {list
address:theAddress, name:theSender, storage:theFolder, enabled:true, file
outgoing:true}
end if
end tell
-
But: The Part of the Event Log
-
make new folder with properties {
name:"Gyula [ROOTOR]"
} at folder "Contacts"
--> folder id 224
(*folder id 224*)
make new mailing list with properties {
list address:"email@hidden",
name:"Gyula [ROOTOR]",
storage:folder id 224,
enabled:true,
file outgoing:true
}
end tell
Script 3create CustomFolder2 finished
--> Microsoft Entourage got an error: Expected a reference.
-
If I execute it without a storage attribute given, works fine. If I query a
storage of an axisting maililg list, it works. At the Event Log at both
cases I receive for the storage folders this "folder id NUM" form:
-
tell application "Microsoft Entourage"
get storage of some mailing list
--> folder id 185
end tell
-
Any idea? Thanks!
--
Bye!
Matyas Ferenc Farkas
=========================================
ICQ: 79057210
Email: email@hidden
_______________________________________________
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.