• 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: MS Word: "open file" vs. "open file name" vs. ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MS Word: "open file" vs. "open file name" vs. ???


  • Subject: Re: MS Word: "open file" vs. "open file name" vs. ???
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 16 Nov 2017 23:35:26 -0600

On 11/16/2017, at 09:39, Michael Grant <email@hidden
<mailto:email@hidden>> wrote:
> Now I keep going back and forth between two commands to open the files, and
> each one (often but not always) fails in a different way.


Hey Michael,

Well, that sucks.

Try this, and see if it works:

------------------------------------------------------------------------------
tell application "Finder"
    set finderSelectionList to selection as alias list
    if length of finderSelectionList = 0 then error "No files were selected in
the Finder!"
end tell

tell application "Microsoft Word"
    repeat with theFile in finderSelectionList
        open theFile
    end repeat
end tell
------------------------------------------------------------------------------

And for the record — what versions of macOS and Microsoft Word are you using?

--
Best Regards,
Chris

 _______________________________________________
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: MS Word: "open file" vs. "open file name" vs. ???
      • From: Michael Grant <email@hidden>
References: 
 >MS Word: "open file" vs. "open file name" vs. ??? (From: Michael Grant <email@hidden>)

  • Prev by Date: MS Word: "open file" vs. "open file name" vs. ???
  • Next by Date: Applescript Command(s) To Correctly Capture Excel Comments Of Cell
  • Previous by thread: MS Word: "open file" vs. "open file name" vs. ???
  • Next by thread: Re: MS Word: "open file" vs. "open file name" vs. ???
  • Index(es):
    • Date
    • Thread