• 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
Targetting a specific Word version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Targetting a specific Word version


  • Subject: Targetting a specific Word version
  • From: Sjur Moshagen <email@hidden>
  • Date: Wed, 28 May 2008 18:01:21 +0300

Hello,

I have both MS Office 2004 and Office 2008 installed on my Mac, and need to programmatically target one of the Word applications in a tell statement, but have so far not been able to find a working solution.

tell application "Microsoft Word"

will "tell" whichever one is running at the moment; if both or neither are/is running, it will usually pick the newest one (2008). Likewise, variants like:

tell application id "MSWD"
or
tell application id "com.microsoft.Word"

are just as imprecise.

The only option left is to pick one or the other based on the path, but I haven't been successfull in that attempt. Any help would be appreciated.

Best regards,
Sjur N. Moshagen
Samediggi ยท Sametinget
Project Manager for the Divvun project
http://www.divvun.no/
http://www.samediggi.no/
+358-9-49 75 29 (w)
+358-505 634 319 (m)

_______________________________________________
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
  • Follow-Ups:
    • Re: Targetting a specific Word version
      • From: email@hidden
  • Prev by Date: Re: AppleScript-Users Digest, Vol 5, Issue 324
  • Next by Date: Re: Targetting a specific Word version
  • Previous by thread: Re: AppleScript-Users Digest, Vol 5, Issue 324
  • Next by thread: Re: Targetting a specific Word version
  • Index(es):
    • Date
    • Thread