Have you tried using Open URL instead of Send Event?
I hadn't tried open URL, but Ive tried it now, with no joy.
I have however managed to work out why the open specifically named file forgot the directory routing, there seems to be some sort of length limit to the directory path.
Question to any expert. Is what I'm trying for impossible?
To open a variably named USR file from within another USR file? Has anyone actually done it and got it working?
What I would like to do is have the user select from a categpry list, and then select from list of names from within that category. The selection process all works fine, what dosen't work so far is the part where it opens/Sends Event/Open URL with a variable.
As it stands I either let the user open the file by selecting the un-named file from a drop down list of USR files, or have a selection panel of about thirty buttons with each USR file hard coded into the open command.
George Humphries Very Novice User
Using Filemaker 10 advanced and XP
Open URL should work if you can specify the Filepath with the correct syntax.
Here's one that works for me:
Open URL [no dialog ; "E:/Test DBS/Advanced Filter Demo.fp7" ]
note that I used / characters instead of \.
But Open URL only works when you do not use a variable to specify the file name.
I'm trying to use the $$ variable.
George Humphries Novice user using FM10 advanced and XP
Set Variable [$$GlobalVariable ; Value: "E:/Test DBS/Advanced Filter Demo.fp7"]
Open URL [no dialog ; $$GlobalVariable ]
Opens the file just fine.
I've now gotten open URL to open an fp7 file with a variable, but I can't get it to open a USR file.
Am I doing something wrong?
It's 03:35 and I'm tired.
I dug up a USR file and ran some experiments on my XP system.
I found that if I double clicked a USR file, I got a dialog asking me to identify the application to be used to open it. Once I selected the correct application and clicked the check box so that opening USR files automatically launch the runtime's exe file, the Open URL step would work to open the file.
Careful, after making this change to your system settings. All USR files will attempt to launch this same exe file when double clicked. That could result in some unwelcome suprises if you have more than one runtime solution with the default USR extension.
Thanks for your time and help.