• 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
Applescript newbie trying to do something easy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript newbie trying to do something easy


  • Subject: Applescript newbie trying to do something easy
  • From: Edward Ned Harvey <email@hidden>
  • Date: Mon, 16 Mar 2009 19:02:30 -0400
  • Thread-topic: Applescript newbie trying to do something easy

Title: Applescript newbie trying to do something easy
Not sure which question is more appropriate –
    What is wrong with my script?
    or
    How would an applescript guru approach this problem?

After reading the mail in my Entourage inbox, I want to move the messages to other folders.  
        
-- This works fine as long as the folder is local.  Doesn't work for an IMAP folder (or Exchange?)
      -- I am using an IMAP server on google right now.  But I can get an exchange account
      -- for testing, if needed.
       tell application "Microsoft Entourage"
           set theSelectedMessages to selection
           display dialog "Choose a mailbox." default answer ""
           set theFolder to (text returned of result) as string
           repeat with theMessage in theSelectedMessages
               -- move theMessage to folder theFolder in exchange account "foo goo"
               move theMessage to folder theFolder
           end repeat
       end tell
This allows me to move messages around from folder to folder, as long as the folders are “On My Computer”

The following modification doesn’t seem to do any good:
        
move theMessage to folder theFolder in IMAP account "foogoo"

Thank you, everyone, for either helping me solve my problem, or for pointing me toward some kind of language reference out there ... Or debugging tools ... Or something.

At present, the above script simply terminates, and doesn’t give any error message.  I would love to know how to get an error message out of there.  Or insert break points.  Or to simply know how to find the “move” language reference, so I can look up the command syntax.  Or anything because I am stuck.

Thanks again.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Applescript newbie trying to do something easy
      • From: Jakob Peterhänsel <email@hidden>
  • Prev by Date: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Next by Date: Re: Applescript newbie trying to do something easy
  • Previous by thread: Re: AppleScript Language Guide: 404 Not Found
  • Next by thread: Re: Applescript newbie trying to do something easy
  • Index(es):
    • Date
    • Thread