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

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

Recommended Posts

Posted

Hi all

I try to open file by 'openurl', following is my path.

H:coh-itAdminDomain Names RegistrationDomain Name in PDFDN (.com.xx)xxx.pdf

Actually I was still working on the file, but few days back I have managed to do this right already. But today my openurl dun works. After playing with it I realise it only opens up to 2 path. e.g. H:xxx.pdf then it will works.

If more then 2 path e.g. H:coh-itxxx.pdf, it wont works the file wont be able to open. And oddly H:xxx.pdf works.

I have access to these files, i can manually go into these folders then file to open it but not through my 'openurl' button.

Can someone help me with this..?

Thanks a lot

Kelvin

Posted

Kelvin,

Personally, I would use Send Event rather than Open URL. Why? I guess because you are not really trying to open a URL. (Uniform Resource Locator. i.e. a web page) You're opening a file or folder on your PC right?

To open a folder try something like this:

Send Event ["explorer.exe " & Quote ("c:folderfolderfolder")]

To open a file:

Send Event

Posted

Hi Ted

Thanks for your response. I manage to find the cause of the problem already. Filemaker is not able to open file by reading its shortcut.

And I tried both 'openurl' and 'sendevent', and oddly openurl works but not sendevent. It prompts me this error,

"The file "H:coh-ITAdminDomain" could not be found and is required to complete this operation".

But nvm sice my 'openurl' can work already ???

I have another problem now. My file will be park in server, Users will access it through IWP. And thats actually the reason why i use 'openurl' :

But the problem comes now, though it works in filemaker client, but it can't works in iwp. The file wont be launched. It shows the normal error browser page.

Anyone know what to do..? Else my file wont be a perfect solution already.

Thanks a lot

Kelvin

  • 2 weeks later...
Posted

I expect the reason you are seeing the error on SendEvent is due to the space in your file path. Try putting quotes around the entire path in your script.

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