I’m trying to set up my computer each morning with the correct shared files, opened in the correct sequence. I have created the following script in Script Debugger and saved it as an application, but when I run it I get the error “Database “Macros.pandb” does not exist”. Macros is in fact listed as one of the databases in Server Administration. Suggestions?
tell application "PanoramaX"
activate
run code "OpenServerFile “Macros””
end tell
I’m mainly guessing here, but I think OpenServerFile assumes that it is running in the context of a file that is already opened. You may need to setup one file to activate on startup, and then open the rest from its .InitializeServer procedure.
OpenServerFile is for use solely on a web server. If you have a site using Panorama Enterprise and the active file that is responding to an HTML hit needs to access another file. OpenServerFile is what you use.
If you’re opening shared files in Panorama, you stick with the usual OpenFile.
DUDE, THAT’S GREAT! When opening a shared file on a computer that’s different from the one it originated on, I thought I was going to have to employ some complicated PanTalk magic like OpenServerFile. But I tried it and you’re right; I can just open the shared file on the new computer with OpenFile or OpenDatabase, even though the shared file is not located where the original file was. Delightful!