Giter Site home page Giter Site logo

smneedham / outlookmac-archive-exchangetolocal Goto Github PK

View Code? Open in Web Editor NEW
48.0 48.0 15.0 262 KB

An AppleScript for Outlook Mac 2011 that makes up for the missing auto archive functionality typically found in Outlook for Windows

Home Page: blog.7thdomain.com

AppleScript 100.00%

outlookmac-archive-exchangetolocal's People

Contributors

smneedham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

outlookmac-archive-exchangetolocal's Issues

Mac Outlook 2011

Appears to me that archived email is stored in the main identity file. My identity is now 9gb. This is causing Outlook to perform poorly and freezes roughly every 20 minutes. Is there away to separate the archive email to a different identity or local file?

Thanks, Leo

Online Archives (not an issue per se)

Hi there,

I was wondering if you've been able to get this script working for online archives in newer versions of Outlook / Exchange. As I understand it, the Online Archive is supposed to function as a separate Exchange account, and yet, when you get a handle to a list of accounts, it isn't included.

Haven't been able to discern much from the internet on this particular challenge.

Thoughts?

Thanks in advance.

Adam Rice

Script not compiling

When I open the script in the AppleScript editor it's not showing any syntax highlighting, and when I try to compile (CMD-K), it gives the following error:

Expected end of line but found identifier.

On the following line:

        set exchangeAccount to item 1 of exchange accounts

Platform: Mac OSX Mavericks

Expected end of line but found identifier

Hi,

I am trying to run the script on Office 2011 14.4.6 Outlook and I get the "Syntax Error Expected end of line but found identifier" on exchange accounts on the second line of the below code... I am not changing any Global configuration settings.

if exchangeAccountDescription is "" then
set exchangeAccount to item 1 of exchange accounts
if exchange type of exchangeAccount is not primary account then
error "Please set an exchange account which is not delegated or another users folder account"
end if

OS Version: OS X 10.10.1
Outlook 14.4.6

Thanks & Regards,
Karthikeyan M

Feature: Per folder archive periods

Allow the number of days before archiving to be configured on a per folder level.

Example:

  • Inbox archive after 80 days
  • Sent Items archive after 7 days

Error Number -10004 on Script Execution

At some point, possibly after upgrading to OS X 10.8.2, the archive script stopped working for me. The root of the issue was that the (current date) method was returning "error number -10004" rather than the appropriate date.

I fixed this by moving the (current date) method outside of the tell block. For example:

on archiveExchangeFolders(exchangeFolders, excludedFolders, archiveRootFolder, daysBeforeArchive)
    set dateNow to (current date)

    tell application "Microsoft Outlook"

        -- Calculate the earliest date of mail that must remain on exchange server
        set earliestDate to (dateNow - (daysBeforeArchive * days))
        log "Earliest Date - " & earliestDate

Unable to find folder structure.

This is an incredible tool. I do have an issue and it may just be user error. After each run when I look for the Archive folder structure it is not there. I have looked on the blog for similar issues and have seen several that point to "outlook identities" folder but all I see in there is the DB and data records, following path: ~/Documents/Microsoft User Data/Office 2011 Identities/Main Identity. I've used Spotlight and HoudahSpot to search for it with no luck. I also see an error in the logs "a privilege violations occurred (errAEPrivilegeError-1004)". My current configuration is:

iMac 27-inch, Late 2012

processor: 3.4 GHz Intel Core i7
memory: 32 GB 1600MHz DDR3
software: OS X 10.9 (13A598 GM)

Editing and compiling using Script Debugger 5 - v5.0.6 (592) 64-bit Intel

I know the script is working because my mailbox items are removed based on the days parameter of which I've used 3 different integers for that variable.

Thanks again for this wonderful tool.

Max ~m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.