• 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: Setting Data Source for Microsoft Word mail merge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Data Source for Microsoft Word mail merge


  • Subject: Re: Setting Data Source for Microsoft Word mail merge
  • From: Stan Cleveland <email@hidden>
  • Date: Wed, 29 Sep 2010 14:29:22 -0700

On Sep 21, 2010, at 2:31 PM, Jim Skibbie wrote:

I’m trying to automate a mail merge in Microsoft Word (2008) via Applescript....

...a dialog box called “Edit Labels” pops up in Word. If the user does not cancel or “OK” this dialog box, the script eventually times out.

Is there a way to get around this? I’m not sure why this dialog box pops up and I cannot find any parameter in the “open data source” command to say I want to ignore this dialog.

Hi Jim,

I'm not familiar with mail merging in particular, but adding the following command to the top of your script might just do the trick. Give it a try.

tell application "Microsoft Word"
display alerts alerts none
-- then the rest of your code
end tell

HTH, 
Stan C.

 _______________________________________________
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

References: 
 >Setting Data Source for Microsoft Word mail merge (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: Setting Data Source for Microsoft Word mail merge
  • Next by Date: Re: Spotlight & UI Scripting
  • Previous by thread: Re: Setting Data Source for Microsoft Word mail merge
  • Next by thread: Let's Try Again - InDesign CS4 Script to Make Fractions
  • Index(es):
    • Date
    • Thread