August 12, 201015 yr Hello all, I am currently trying to save records with a naming system. I am able to achieve this on my desktop (having already set the $filename variable) using Set Variable [$fullpath; Value: Get(DesktopPath) & $filename] however I need to save this file on a remote volume. In the Set Variable script's Value field, I've tried substituting the Get function for filemac:/Volume/Folder But I am told that is not a table and cannot proceed. I have also tried substituting Volume for the Server's IP address and surrounding this part of the function with apostrophies. I am sure that the answer is shockingly simple, however my scripting/programming knowledge is very limited. Any help would be greatly appreciated.
August 13, 201015 yr I am unsure on a Mac. However, on Windows it would be something like: "filewin://computerName/folder/filename.xls"
August 13, 201015 yr Author thanks LaRetta for your response. I tried that too. My problem is with the exact sintax in the Set Variable function. With apostrophes I can put in any file path I want, however I always get the message "Disk full...". When I try it without apostrophes I am told by FMP that that The specified table cannot be found. If you have any insight that would great, if not, thank you for your time anyhow, I would not have gotten this far without you.
August 13, 201015 yr Can you post your script? Another method is to import a file from your network share as a reference. Then, use GetasText(container) to see the path necessary.
August 13, 201015 yr Author OK I finally got it after trying to smash a square peg in a round hole for 2 days I finally stopped trying to use Set Variable for $filepath and directly in the save as .pdf script put in filemac:/Volume/Folder/$filename and voilá! Wow, I knew it was simple but I am embarassed about how much so it was... PS. Thank you bcooney, I was thankfully able to avoid the SetVariable problem for the time being. I will keep that Getastext in my mind for the future. Edited August 13, 201015 yr by Guest
August 14, 201015 yr It would still be a good idea to learn to write an accurate path variable. That's the foundation for all kinds of file references, import, export, etc. It isn't that hard.
Create an account or sign in to comment