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

Re: Re: Applescript newbie trying to do something easy


  • Subject: Re: Re: Applescript newbie trying to do something easy
  • From: "Edward Ned Harvey" <email@hidden>
  • Date: Mon, 23 Mar 2009 17:33:15 -0500

Yes!  That did it ... For Exchange accounts, and local folders I'm good now.  I still have no way to do this on IMAP, but fortunately for me, I don't care about IMAP.
 
I am curious though - when it fails for IMAP, there's simply no response.  No error, no nothing.
I am a computer engineer (half software developer, half hardware engineer) and I can't find anything I would call an API for applescript, or a manual, or language reference...  Can't find any way to get any logging out of it, or insert breakpoints or anything.  
 
Nothing tells me the "type of" for any variable or object ... or what additional arguments are valid ... Basically I just stink at applescript.
 
How does one go about figuring out that "main_account" was actually a list? 
 
How does one go about looking up the syntax that's available for the "move" command in a specific context ...  For example ...
    move aMessage to theFolder
        is what I already had.
        How should I know that this exists:
    move aMessage to theFolder in item 1 of every Exchange account
        How should I know that this doesn't exist:
    move aMessage to theFolder in item 1 of every IMAP account
 
Thanks a million ...
 
 
 
 
----- Original Message -----
From: Steve Thompson
To: email@hidden
Sent: Wednesday, March 18, 2009 8:46 AM
Subject: Re: Re: Applescript newbie trying to do something easy

I think this is what you're missing. It doesn't do exactly what your script aims to do but only because I'm lazy :-) It shows the missing bits.

tell application "Microsoft Entourage"
set main_account to item 1 of every Exchange account
set theFolder to "Some Folder"


set theSelectedMessages to selection
repeat with aMessage in theSelectedMessages
move aMessage to theFolder in main_account
end repeat
end tell

Hope this helps

Steve
----------------------------
http://www.stetho.co.uk


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

This email sent to email@hidden
 _______________________________________________
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: Steve Thompson <email@hidden>
References: 
 >Re: Re: Applescript newbie trying to do something easy (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: Targeting a frame in Safari
  • Next by Date: Re: Applescript newbie trying to do something easy
  • Previous by thread: Re: Re: Applescript newbie trying to do something easy
  • Next by thread: Re: Applescript newbie trying to do something easy
  • Index(es):
    • Date
    • Thread