Jump to content

Export Txt Field


This topic is 2370 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Screen Shot 2015-12-29 at 12.18.42 AM.png

Screen Shot 2015-12-29 at 12.28.28 AM.png

Link to comment
Share on other sites

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] 

 

 

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This topic is 2370 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.