OneTime Posted August 12, 2010 Posted August 12, 2010 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.
LaRetta Posted August 13, 2010 Posted August 13, 2010 I am unsure on a Mac. However, on Windows it would be something like: "filewin://computerName/folder/filename.xls"
OneTime Posted August 13, 2010 Author Posted August 13, 2010 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.
bcooney Posted August 13, 2010 Posted August 13, 2010 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.
OneTime Posted August 13, 2010 Author Posted August 13, 2010 (edited) 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, 2010 by Guest
bruceR Posted August 14, 2010 Posted August 14, 2010 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.
Recommended Posts
This topic is 5214 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now