• 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
Scripting Outlook 2011
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Outlook 2011


  • Subject: Scripting Outlook 2011
  • From: Michael Slomski <email@hidden>
  • Date: Thu, 18 Aug 2011 10:17:18 +0200
  • Thread-topic: Scripting Outlook 2011

Dear scripters,

The following script worked nice with Entourage 2004 & 2008 but Outlook 2011 throws an error at the line "open theFolder" (mail folder doesen't understand the message "open"). Any hints how to get a new window where "mail folder" is selected so that all mails of this folder are shown?

tell application "Microsoft Outlook"

-- aktuell ausgewählte Nachricht bzw. Nachrichten übertragen

set selectedMessages to current messages

-- Benutzer warnen und Vorgang beenden, wenn keine Nachrichten ausgewählt sind

if selectedMessages is {} then

display dialog "Bitte wählen Sie zuerst eine Nachricht aus, bevor Sie dieses Skript ausführen." with icon 1

return

end if

if (count of selectedMessages) = 1 then

set theMessage to item 1 of selectedMessages

set theFolder to folder of theMessage

open theFolder 

end if

end tell



Best reagrds
Michael Slomski
 _______________________________________________
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

  • Prev by Date: Re: Run Only Scripts
  • Next by Date: Test to see if extra crap is added to the end of this email
  • Previous by thread: Re: errors
  • Next by thread: Test to see if extra crap is added to the end of this email
  • Index(es):
    • Date
    • Thread