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

Re: Targetting a specific Word version


  • Subject: Re: Targetting a specific Word version
  • From: email@hidden
  • Date: Wed, 28 May 2008 17:04:58 +0200

At 6:01 PM +0300 5/28/08, Sjur Moshagen wrote:
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.

I think you can just use the app's path, tell application "Macintosh HD:Applications:etc:Microsoft Word" etc. Maybe you have to explicitly write the ".app" suffix whenever it makes sense.


Emmanuel
_______________________________________________
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: Sjur Moshagen <email@hidden>
References: 
 >Targetting a specific Word version (From: Sjur Moshagen <email@hidden>)

  • Prev by Date: Targetting a specific Word version
  • Next by Date: as alias bug?
  • Previous by thread: Targetting a specific Word version
  • Next by thread: Re: Targetting a specific Word version
  • Index(es):
    • Date
    • Thread