Open file on an internal server?

Hello -

I try to open an Adobe® Illustrator® file hosted on our XServe®.
For this, I encode below lines.
The server is mounted on my desktop, but ‘AppleScript Editor’ shows me the following errorAdobe Illustrator CS3 got an error: Bad name for file. some object:frowning:

Could, please, someone help me on this?


tell application "Finder"
	mount volume "afp://192.168.1.10/XServe_1/Jobs/" as user name "" with password ""
	tell application "Adobe Illustrator"
		open file "afp://192.168.1.10/XServe_1/Jobs/Basic CMYK.ai"
	end tell
end tell

Thanks you for any help, have a nice day.

  • Dimitri

Hi dimitri,

try this

mount volume "afp://192.168.1.10/XServe_1/Jobs/" as user name "" with password ""
tell application "Adobe Illustrator"
	open file "XServe_1:Jobs:Basic CMYK.ai"
end tell

the path in the open file line should start with the volume name

I will add though that if you are in a colabrative environment where someone else may want to access that file I would not work on Adobe documents directly from the server.

Just my ,02

Hello StefanK -

Cool, cool, coool :smiley:
It works like a charm!

Thanks a lot.