AS syntax for Cyberdog
AS syntax for Cyberdog
- Subject: AS syntax for Cyberdog
- From: Douglas Wagner <email@hidden>
- Date: Thu, 16 Aug 2001 16:27:07 +0300
Hello:
Anyone happen to know the AS syntax for extracting info and mail from Cyberdog?
Given "mailbox:Valentina" for example, which contains *two* messages:
Message two is <message:///Java/2>
The mailbox is <mailbox: Java>
count of contents of "mailbox:Java"
-->0
on the other hand:
count of "mailbox:Java"
-->17
This is what I need to do:
1 Get a list of the names (or indexes, or IDs) of the mailboxes.
2 Get the number of messages in each mailbox.
3 Read each message and copy to a file.
This script doesn't work first becuase I can't find a way to count the
messages (or get a list of mailboxes) and second because, for some reason
Cyberdog, does not return an error I can trap if a message doesn't exist. A
try statement doesn't trap the error either.
repeat with i from 1 to (count of messages in mailbox:Java)
set aMsg to "message:///Java/" & i
tell application "Cyberdog"
GetURL aMsg to ".../Cyberdog_MailExport"
end tell
end repeat
All ideas and suggestions welcome.
DW