"... you mean these fans?" Posted December 29, 2015 Posted December 29, 2015 Hi, I am trying to "Name" my text file when I export "A" field content. However "Filemaker" uses the data within the "Field" to "Name" the .txt file ?? Please see attached script steps and pic of .txt file exported. How can I export the "Contents" of a "Field" where I can "Name" the file. My normal naming conventions for lets say "PDF's" doesn't work for a .txt file ?? Thank you. Tom
comment Posted December 29, 2015 Posted December 29, 2015 6 minutes ago, Snozzles said: However "Filemaker" uses the data within the "Field" to "Name" the .txt file ?? Well, why do you include the field itself in the path?
"... you mean these fans?" Posted December 29, 2015 Author Posted December 29, 2015 Hi Comment, Well, I tried that ... but I get this error see pic. Why do I have to use my "Field Name" twice, I never could understand that ?? Any suggestions I would be grateful. Thank you. Tom :-)
comment Posted December 29, 2015 Posted December 29, 2015 17 minutes ago, Snozzles said: Well, I tried that ... but I get this error see pic. What exactly is "that"? 17 minutes ago, Snozzles said: Why do I have to use my "Field Name" twice, I never could understand that ?? Who said you have to use it twice? My point was exactly the opposite: you should not use it in the path at all. Try: Set Variable [ $path; Value:Get ( TemporaryPath ) & "TestName.txt" ] Export Field Contents [ Clients::Notes; “$path”; Automatically open]
"... you mean these fans?" Posted December 29, 2015 Author Posted December 29, 2015 Hi Comment, That worked ? The "File:" prefix is what was recommend to me a while ago and it works. Why is it not require in this case ? Thank you. Tom :-)
comment Posted December 29, 2015 Posted December 29, 2015 23 minutes ago, Snozzles said: The "File:" prefix is what was recommend to me a while ago and it works. Why is it not require in this case ? Strictly speaking, the prefix should be either "filemac:" or "filewin:", depending on the platform - since the path is an absolute one. On OS X, paths work just as well without any prefix - I am not sure about Windows.
Recommended Posts
This topic is 3321 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