Jump to content
Sign in to follow this  
Stanley Tran

How to get the path of an exported file

Recommended Posts

Hi,

I have a filemaker script to perform exporting data to a file and then open the exported file in another application. The problem is after I exported the file, how can I store the path to that file so I can pass it to another application via apple script?

Thanks in advance for any help.

Share this post


Link to post
Share on other sites

This isn't going to be easy. FileMaker doesn't give access to the path in any form that AppleScript can use. So, if you must do this, I would suggest something like the following algorithm:

Use AppleScript to get user to select folder to export to and store this folder for later reference.

Use FileMaker to export the data to a known folder that is the same every time, independent from where the user asked to place the file.

Use AppleScript to copy the exported data to the folder selected by the user and delete the copy in the default location.

Use AppleScript to open the file in your other application.

Chuck

Share this post


Link to post
Share on other sites

Thank you Chuck for your help.

How can you tell FileMaker to export file to the same path and same file name everytime? If you can show how, it will solve my problem.

Thanx

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    cfmartinez1090 
×
×
  • Create New...

Important Information

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