February 15, 200619 yr 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
February 15, 200619 yr 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
February 16, 200619 yr Author 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
March 3, 200619 yr 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.
Create an account or sign in to comment