Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7779667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:41:51+00:00 2026-06-01T18:41:51+00:00

I am going nuts here. I have tried countless permutations/variations of save as active

  • 0

I am going nuts here. I have tried countless permutations/variations of “save as active document file format PDF” but none seem to work. I get AppleScript errors with all of them.

So can anyone tell me:

What is the exact syntax to save the active document as a PDF file in AppleScript, using Word?

It seems that there is no coherence whatsoever in the Office for Mac scripting, as I have this working for Excel and PowerPoint and even there the syntax is different:

excel

save active workbook in 'MyFile.pdf' as PDF file format

PowerPoint

save active presentation in 'MyFile.pdf' as save as PDF

What is the correct syntax for Word?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:41:52+00:00Added an answer on June 1, 2026 at 6:41 pm

    It seems I found it after all:

    set myDoc to "/Users/X/Desktop/test.docx"
    set pdfSavePath to "Users:X:Desktop:test.pdf"
    
    tell application "Microsoft Word"
            activate
            open myDoc
            set theActiveDoc to the active document
            save as theActiveDoc file format format PDF file name pdfSavePath
        end tell
    

    I am no AppleScript expert. I had slashes instead of : as path separators. With : it works

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am going nuts here, I have an array of checkboxes from a form
I think I must be going nuts here. I have a UINavigationController and in
I'm going nuts trying to find the problem here. I have a main window,
I've been going nuts about PDF downloads to mobile devices. Here's the next madness,
I'm going nuts here, trying to get my system configured. I have a laptop
I'm going nuts on this. (as most people posting here lol) I have a
i'm going nuts here with this and i have a deadline. So i have
I'm kind of going nuts here. I have a function something like the following.
I am going nuts here trying to resolve a cascading update/delete issue :-) I
Going round in circles here i think. I have an activity called Locate; public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.