Re: MS Word: "open file" vs. "open file name" vs. ???
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