• 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
AS syntax for Cyberdog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Trouble with double arrow script
  • Next by Date: Re: Compact Handlers Togo!
  • Previous by thread: Re: Trouble with double arrow script
  • Next by thread: Can't read text file from 0
  • Index(es):
    • Date
    • Thread