Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

This isn't exactly a 'custom function' but perhaps someone who deals with functions can help.

I have a script that first determines if the user is running in OSX or Windows.

Then it creates a path to a file. (Using in part 360Works Select File() function)

Here is the script:

post-72145-0-35799100-1329969013_thumb.j

The OSX part (top) works. The Windows portion (bottom) produces this 'mess':

post-72145-0-65137600-1329969052_thumb.j

I thought the problem might be in the get(systemDrive) function so I replaced it with C: . But, it still didn't work.

What am I missing? (Yes, I tried putting filewin: in front without a good result.)

Thanks

Ron

  • 3 months later...
Posted

It looks like the 360Works SelectFile() function is returning the network path of the file. With a bit of manipulation, you can use this value in FileMaker:


Set Variable [$$SelectImportFile; Value:SelectFile]

Show Custom Dialog ["Windows"; "filewin:" & Substitute($$SelectImportFile; "\\"; "/")]

This should yield the following result:

filewin://psf/Home/Documents/FileMaker docs/_Projects/Lodge Membership/LodgeMembership888.fp7

This value can then be used in various script steps like "Import Records []" and "Export Records []".

  • 2 weeks later...

This topic is 4546 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.