Skip to content

Instantly share code, notes, and snippets.

@jordanmerrick
Created December 19, 2013 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanmerrick/8039354 to your computer and use it in GitHub Desktop.
Save jordanmerrick/8039354 to your computer and use it in GitHub Desktop.
Microsoft Office 2011 utilises the 'TemporaryItems' folder of Mac OS X, much like any other app. If there are any permissions issues within this folder, it can cause a number of problems with Office's Autosave function or prevent the function of emailing documents from within apps, such as Excel. While the path to the folder can be almost random…
set tFolder to path to temporary items
display dialog "Clear Temporary Items?" buttons {"Yes", "No"} default button 2
if the button returned of the result is "Yes" then
tell application "Finder"
delete tFolder
end tell
else
error number -128
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment