ron G Posted February 23, 2012 Posted February 23, 2012 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: The OSX part (top) works. The Windows portion (bottom) produces this 'mess': 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
E.J. Sexton Posted June 5, 2012 Posted June 5, 2012 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 []".
Recommended Posts
This topic is 4880 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 accountSign in
Already have an account? Sign in here.
Sign In Now