Now it works fine. Problem solved, thanks.
Glad to hear it!
But then it did not work, so I looked in the Dictionary, where it says: To work with Unix "use the shell function instead"
I had never used "launch document"
Launch will also work on 'nix, but for some things, like a .pdf file for instance, you would have to add the application using "with". For instance,
launch "'~/.runrev/components/livecodecommunity-6.5.2/Release Notes.pdf'" with okular
... would also work. {If your on a current Mac, you would probably need to add the .app to whatever program your calling.}
To use shell to open a .pdf (or most things, really) like you would in windows on 'nix, you'd have to refer to the most generic format to call the default set in the OS, which would be "xdg-open".
Code: Select all
shell("xdg-open '~/.runrev/components/livecodecommunity-6.5.2/Release Notes.pdf'")
You might notice that if there are any spaces in the path to the file, such as are between "release" and "notes", you have to enclose the path in single quotes, like 'my path', within the quotes around the shell command. I would say just for safety, do that anyway, if not needed it doesn't present an issue, if needed, it may save your sanity
If you want the file to open in a specific application instead of the default, you would simply place that application name in front of the path instead of xdg-open, like so {the following assumes Okular is installed, substitute whatever program your looking for instead}...
Code: Select all
shell("okular '~/.runrev/components/livecodecommunity-6.5.2/Release Notes.pdf'")
So, to wrap up, if your launching something like an .html file, it is probably ok to just use 'launch', but if it is a document, either include what app it should be launched with, or use 'launch document'.
On 'nix at least, to launch it from shell, try "xdg-open" first, or test to see if there is a specific program you want it to open in by throwing "put" or "get" in front in the message box, like so...
Code: Select all
put shell("xdg-open '~/.runrev/components/livecodecommunity-6.5.2/Release Notes.pdf'")
...which will tell you any problems you might have opening the file.
Have fun