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

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

Recommended Posts

Posted

I have a container field and I was trying to write a script to automate multiple file inserts. I noticed that I when I assign a result of a global field (in this form C:Apache24INSTALL.txt ) to where the file lives the dialog would pop up with an error that tells me that it could not find the file. The thing is that it was chopping the directory off of it every time (leaving off the drive letter). Currently to test it I am only trying to insert one file. After trying to get some help on the FileMaker forum I want to ask if anybody knows of this as a bug. I am using FileMaker 13 Advanced on Windows. I tried it on FileMaker 12 as well it does the same. I know that $Path is correct, because before it gets to the insert I use the Data Viewer and it is correct, but when the insert attempts to happen I get the error (message box 1). Then I started playing with the idea of prefixing it with the examples in the dialog box and eventually it reads what is supposed to but still does not insert the file (message box 2). Thanks for any help.

http://pctechtv.com/show/cantinsertfile.png

Posted

Seems to be that this format for the variable solved it:

"filewin:/" & Substitute("G:JulimyMov2.veg";""; "/") which results in filewin:/G:/Juli/myMov2.veg

Thanks

Posted

After trying to get some help on the FileMaker forum I want to ask if anybody knows of this as a bug. I

 

It's not a bug.  In order to keep things consistent on both Mac and Windows, FM has adopted their own path syntax. It is explained at each "insert" dialog box:

post-57725-0-40676700-1392923839_thumb.j

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