December 29, 201510 yr 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
December 29, 201510 yr 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?
December 29, 201510 yr Author 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 :-)
December 29, 201510 yr 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]
December 29, 201510 yr Author 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 :-)
December 29, 201510 yr 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.
Create an account or sign in to comment