Jump to content
Server Maintenance This Week. ×

select a file


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

Recommended Posts

Hi I want to select a file through a windows diolog and set the path to a field in Filemaker. Being a Mac guy I have no idea how would I script it and implement in scriptmaker?

thanks

This is my applescript equivalent.

tell application "Finder" to set filename to (choose file) as text

tell application "FileMaker Pro Advanced" to set cell "setup::file choose" of current record to filename

Link to comment
Share on other sites

A cross-platform way of presenting a select file dialog is to do it natively in FileMaker Pro.

Create a global container field (e.g. gScriptFileIO)

In a script navigate to a layout containing that field.

Use the script step

Insert File[Reference;MyTable::gScriptFileIO]

without specifying a source file.

Then GetAsText() on the container field to parse the file reference.

Link to comment
Share on other sites

This topic is 4922 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
×
×
  • Create New...

Important Information

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