Lupo09
asked on
Applescript: open word file on remote server
Hi experts,
I have the task to open Word files that are located on a Windows 2008 Server from an Apple iMac using Applescript.
Opening locally stored Word files is no problem, that works like:
tell application "Microsoft Word"
open file "Macintosh HD:test.docx"
end tell
But in my case the file is located on a remote Server, so I tried:
tell application "Microsoft Word"
open file "smb://myRemoteServer/Path /filename. docx"
end tell
trying that I get the Error message:
file \"smb://myRemoteServer/Pat h/filename .docx\"" does not understand the message "open"
the same Comes up when trying
open "smb://myRemoteServer/Path /filename. docx"
(without "file")
The path is correct: when I try to open the path in Finder, it works well:
tell application "Finder"
open Location "smb://myRemoteServer/Path /filename. docx"
end tell
then I get the finder with the highlighted file "filename.docx"
Does anybody know how to open Word files that are located on a smb share using Applescript ???
Thanks a lot!!
I have the task to open Word files that are located on a Windows 2008 Server from an Apple iMac using Applescript.
Opening locally stored Word files is no problem, that works like:
tell application "Microsoft Word"
open file "Macintosh HD:test.docx"
end tell
But in my case the file is located on a remote Server, so I tried:
tell application "Microsoft Word"
open file "smb://myRemoteServer/Path
end tell
trying that I get the Error message:
file \"smb://myRemoteServer/Pat
the same Comes up when trying
open "smb://myRemoteServer/Path
(without "file")
The path is correct: when I try to open the path in Finder, it works well:
tell application "Finder"
open Location "smb://myRemoteServer/Path
end tell
then I get the finder with the highlighted file "filename.docx"
Does anybody know how to open Word files that are located on a smb share using Applescript ???
Thanks a lot!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
mounting the smb share first was the solution.
Thanks!